I've got a nice fresh install of 6.5, fixed all the problem analyze.php came up with, including upgrading MySQL to the latest from mysql.com. Prior to the MySQL upgrade, everything was going just fine, since however, after logging in as Admin, everything is "Access Denied"... Not one of the Icons on the page does anything but "Access Denied", even trying to edit the default stories, etc... "Access Denied".
I'll admit I know jack about MySQL other than the little bit of walking through I've done for PHP-Nuke and phpMyAdmin. This is on my personal box sitting on my desk (to be co-located once I get it configured), so I can try just about anything needed to get this working. The only down side is that until I get it colocated no one out in the real world can hit the box (i.e. for you guys to see my analyze output)... so I'm going to include the analyze.php output in this msg in case it helps....
Your config.php valuesType Value
dbhost localhost
dbname nuke
dbuname root
prefix nuke
user_prefix nuke
dbtype MySQL
GD Library Information Extension Status
Loaded
MySQL Connection Transcript for PHP-Nuke Powered SiteDestination Result
MySQL Health Check Successful
MySQL Server: localhost Successful
MySQL Datbase: nuke Successful
MySQL Username: root Successful
PHP Specific Values for PHP-Nuke Powered SiteCategory Value
PHP Version 4.2.2
Operating System Data for PHP-Nuke Powered SiteType Value
OS Type Linux amdsim7 2.4.19 #1 Mon Oct 28 13:34:58 UTC 2002 i686 unknown
MySQL Specific Values for PHP-Nuke Powered SiteCategory Value
Server Version 3.23.56
Client Version 3.23.52
Host Information Localhost via UNIX socket
Protocol Information 10
phpBB2 Port Values for PHP-Nuke Powered SiteTheme ID Style Name Template Name Version
1 subSilver subSilver 2.0.4
PHP-Nuke Values for PHP-Nuke Powered SiteDefault_Theme Version Locale Language
DeepBlue 6.5 en_US english
All Available MySQL DatabasesDatabase Name
mysql
nuke
test
Module Data for PHP-Nuke Powered SiteModule Active Code View Code
Addon_Sample disabled Registered Users
AvantGo active All Visitors
Community disabled All Visitors
Content disabled All Visitors
Downloads active All Visitors
Encyclopedia disabled All Visitors
FAQ disabled All Visitors
Feedback active All Visitors
Forums disabled All Visitors
Journal active All Visitors
Members_List disabled Registered Users
MS_Analysis disabled All Visitors
News active All Visitors
NuCalendar disabled All Visitors
Nuke_Tools disabled All Visitors
Private_Messages active All Visitors
Recipes disabled All Visitors
Recommend_Us active All Visitors
Reviews disabled All Visitors
Search active All Visitors
Sections disabled All Visitors
Statistics active All Visitors
Stories_Archive active All Visitors
Submit_News active All Visitors
Surveys active All Visitors
Top active All Visitors
Topics active All Visitors
WebMail active Registered Users
Web_Links active All Visitors
Your_Account active All Visitors
Block Data for PHP-Nuke Powered SiteBlock Active Code View Code
Administration active Administrators
Amazon active All Visitors
Big Story of Today active All Visitors
Categories Menu disabled All Visitors
Information active All Visitors
Languages active All Visitors
Login active Anonymous
Modules active All Visitors
Old Articles active All Visitors
Random Headlines disabled All Visitors
Search disabled All Visitors
Survey active All Visitors
User's Custom Box active Registered Users
Who's Online active All Visitors
Member Special Ranks for PHP-Nuke Powered SitephpBB2 Rank Title PHP-Nuke Rank Level Member Name Member UID
Catch-All Administrators for PHP-Nuke Powered SitePHP-Nuke Rank Level Member Name Member UID
Catch-All Moderators for PHP-Nuke Powered SitePHP-Nuke Rank Level Member Name Member UID
php.ini location for PHP-Nuke Powered Sitephp.ini location
/etc/php.ini
php.ini Configuration for PHP-Nuke Powered SiteGlobal / Local / Access : php.ini data
The Key for [access]
Constant Value Meaning
PHP_INI_USER 1 Entry can be set in user scripts
PHP_INI_PERDIR 2 Entry can be set in php.ini, .htaccess, or httpd.conf
PHP_INI_SYSTEM 4 Entry can be set in php.ini, or httpd.conf
PHP_INI_ALL 7 Entry can be set anywhere
Array
(
[allow_call_time_pass_reference] => Array
(
[global_value] => 1
[local_value] => 1
[access] => 6
)
if you have access to your php.ini then activate register_globals (you'll need to restart apache for this to take affect)
if not, then let us know
Sledge Guest
Posted:
Wed Apr 09, 2003 11:08 am
I made the change, restarted the server (and init 6'd the machine for good measure), to no effect.
Odd thing, I went through and tried all the Admin links, they all give my the Access Denied page except Backup DB (which tries to send me the backup file of the sql db), and the Forums which sends me over to the Forums admin menu.
Sledge Guest
Posted:
Wed Apr 09, 2003 12:00 pm
After digging around all the forums here and back at PHP-Nuke, I finally tried something that shouldn't have worked, and it did.
Since I'm using MySQL 4.0.12 I figured I need to set $dbtype = "mysql4" in config.php, this would make sense no? However, once I set it back to "MySQL" it began working perfectly.
Seems like this might be a bug that may need correcting somewhere, but this appears to be the quick fix.
Worked both for my W2K/MySQL4.0.12/PHP4.3.1/Apache2.0.45 setup, and my SuSE8.1 setup...
Metroman Guest
Posted:
Wed Apr 09, 2003 12:25 pm
Thanks, had the same problem, access denied for admin on all except Forum. (never tried backupDB)
The solution worked for me as well.
However as a note, I had to set config.php to mysql4 to get it to launch admin.php. Initially nothing worked with MySQL setting. (Lots and Lots of errors) I figured my mistake was the MySQL setting, after changing everything worked except as mentioned. So never bothered to change until I saw this post.
Works now like a charm.
Windows 2000, Mysql 4.0.12, Apache 2.0.45, PHP4.3.1
aussiedude Guest
Posted:
Sun Jul 06, 2003 12:23 am
Sorted it for me too, thanks.
So much for following instructions
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Sun Jul 06, 2003 1:05 am
Yep. I have posted on several occasions that you should not use mysql4. It flat out doesn't work and I haven't had time to dig into the code to figure out why. MySQL works for ALL MySQL releases.
I still get the access denied messages. I had to remove the security code feature just to log in, and now that I am logged in, I can't access anything. In case it matters, I moved this site from windows xp platform to a unix platform. I also get 'this module not working' messages.
Stuck Guest
Posted:
Tue Jul 22, 2003 4:25 pm
After takeing a close look at my analyse.php... I notice my provider is useing MySql v3.23
If this is not the obvious answer.. I qould apreciate any other suggestions as well.
Stuck Guest
Posted:
Thu Jul 24, 2003 3:20 pm
Ok, checking one of my other sites, I notice that has the same MySQL server my site. I can not even use te backup DB or forum admin options.
I'm trying to figure out what is going on, I know the line that fails is
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
I'm not sure what this line is doing, but it occurs in just about every file in the admin section. If I could figure out what is suppose to make the eregi() call return true, I could try to fgure out what the problem is. Again, I am looking for any information somebody can give me.
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Thu Jul 24, 2003 3:48 pm
Load this script and post back the link/results. Are you on a Zeus host perchance?
Thats what the script produces. Not very much . It is a CIHost shared unix server.
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Fri Jul 25, 2003 8:17 am
They are not populating the PHP_SELF variable and nuke requires it. Nuke will not work. Contact them and ask them to populate it. They will, no doubt tell you that it is the application's responsibilty blah-blah-blah and that it's a security risk. They are wrong but I think other users have been down this path and lost. You will need to manually change all instances of $_SERVER[ to $HTTP_SERVER_VARS[ for nuke to work in your environment. Better yet, change hosts.
Well, the host is really out of my control. But changeing every instance of that would not be a huge problem.. (looks up man page for SED). But I did notice that neither echo returned any data. So I am wondering, replacing one empty pointer with another doesn't seem like it would do a whole lot. I will try it, but I would appreciate some education on why/how this works. I am not new programing, but have yet to master the little details of PHP
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Fri Jul 25, 2003 8:34 am
Then they have blocked it altogether. That is a host issue unless something else is happening that I am not aware of. They need to turn register_globals On. You can try adding this line to .htaccess file
PHP_FLAG register_globals On
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum