Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP nuke not working correctly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Wed Oct 23, 2002 9:15 am    Post subject: PHP nuke not working correctly Reply with quote

Okay so im wanting to mess around with php-nuke. I install mysql(apache and mom_php allready there) and untar all the stuff to /home/httpd ... first thing i do is change doccument root to /homt/httpd/html and when i try to go to localhost it says i dont have permission to access / on this server. So i go through change all the ownershipd to bob.apache and chmod them to 666 and yes i did this with the -R flag. All the perms are correct. It still says i cant access it. So i give up and just copy everything over to /home/httpd/htdocs and change it back. Dont get that error no more. Now i get a mysql error ...
Code:
Fatal error: Failed opening required 'includes/sql_layer.php' (include_path='.:/php/includes:') in /home/httpd/htdocs/mainfile.php on line 48

I go searching and find a few things, one suggested the file isn't there, which it is. Another suggested changing MySQL to mysql in config.php which also didn't work. Another suggested permissions which are correct. Another suggested it wasn't in the includes path. so i edited php.ini and added /home/httpd/htdocs/includes to the path ... still doesn't work. Another one suggested uncommenting the line for the sql server i use in sql_layer.php ... also didn't work. Does anyone have any idea what might be causing this error? Also if anyone knows why i cant run doccumentroot from anywhere but /home/httpd/htdocs please clue me in :) I saw a post about having to set it in apache.conf AND in commonapache.conf which also did not work. BTW im VERY VERY sorry for the lousy formatting and writing skills and grammer and probably spelling etc ... Its not my strong point =/
Back to top
View user's profile Send private message
RebelYell
n00b
n00b


Joined: 28 Jun 2002
Posts: 41

PostPosted: Thu Oct 24, 2002 10:26 am    Post subject: Re: PHP nuke not working correctly Reply with quote

You may want to edit the php.ini file.
I have a gentoo machine running phpnuke without problems here

Good luck!
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Oct 24, 2002 3:49 pm    Post subject: Reply with quote

I'd recommend phpWebSite over php-nuke. Especially their upcoming 0.9 branch.
Back to top
View user's profile Send private message
Messiah
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2002
Posts: 139

PostPosted: Thu Oct 24, 2002 6:54 pm    Post subject: Reply with quote

Euhmm....I run a webhosting business on Gentoo with a lot of phpnuke sites, so the problem is definitely not with Gentoo. Just the plain old problems with paths not being set correctly, configurations that are not right and so on and so on

[edit]
And ofcourse permission problems. Remember: php always runs as the user apache runs as (on Gentoo it's user and group apache)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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