LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-31-2003, 01:30 PM   #1
sam00
LQ Newbie
 
Registered: Sep 2003
Posts: 26

Rep: Reputation: 15
Cool PHP problem


Hi,

I have setup and installed the following:

Aapache 2.0.48 Runs fine with no errors
PHP 4.3.4 server Runs fine with no errors
PHP-Nuke 6.9 installed but have not got it to work
MySQL Runs fine with no errors

All this stuff is installed and working.
My problem is when I go to my http://localhost/admin.php
it just says
"Not Found
The requested URL /admin.php was not found on this server
___________________________________________
Apache/2.0.48 (Unix) PHP/4.3.4 Server at 'localhost' Port 80


Everything appears to be setup right its just not pointed in the right spot or something??
 
Old 12-31-2003, 01:34 PM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
That is because admin.php is not in the top web root dir. It is probably in something like ./nuke/admin/admin.php. Just do a search for it.
 
Old 12-31-2003, 01:45 PM   #3
sam00
LQ Newbie
 
Registered: Sep 2003
Posts: 26

Original Poster
Rep: Reputation: 15
Question

Your right it is,
but where is the top root web directory? how do I set the top root web directory? I assume its just /apache2/htdocs?
can I change that?
 
Old 12-31-2003, 01:48 PM   #4
sam00
LQ Newbie
 
Registered: Sep 2003
Posts: 26

Original Poster
Rep: Reputation: 15
so its sounds like i need to copy all the files from the html direcotry that was created when i extracted php-nuke to /apache2/htdocs?
I would have thought it would have done that for me or something when I installed php-nuke.

?
 
Old 12-31-2003, 01:51 PM   #5
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
How did you install it? Source, ports, rpm? Usually the web root will be /usr/local/www/data or something like that. Maybe /usr/local/httpd/htdocs? Look in your /etc/httpd.conf file and it will tell you what the web root is.
 
Old 12-31-2003, 01:57 PM   #6
jef17
Newbie
 
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
sam00

Is the file admin.php supposed to be in the /var/www/html directory? If the file location is OK, make sure the permissions are set correctly. I imagine the php file will need to be set like this: rwxr-xr-x
you might also want to substitute your IP address for localhost when attempting to browse

hope this helps....
 
Old 12-31-2003, 03:14 PM   #7
sam00
LQ Newbie
 
Registered: Sep 2003
Posts: 26

Original Poster
Rep: Reputation: 15
Thumbs up

yes I just put 'localhost' in instead of my when i post in forums because I dont want to post my IP. but yes I do http://ip/admin.php or wherever.

I installed all this by source.

I think my webroot must most definetly be /usr/local/apache2/htdocs

and I just found it in my httpd.conf and it was exactly as above..
can I have more then one webroot? its called document root on my btw..

I am very close to getting php nuke working now!, i can feel it
 
Old 12-31-2003, 03:32 PM   #8
sam00
LQ Newbie
 
Registered: Sep 2003
Posts: 26

Original Poster
Rep: Reputation: 15
welp, now I cant connect mysql database to the apache web server..?

Fatal error: Call to undefined function: message_die() in /home/user/nuke/html/db/db.php on line 88

mysql database is up and running just not talking with apache2
that line it directly refers to is this

if(!$db->db_connect_id) {
message_die(CRITICAL_ERROR, "Could not connect to the database");

any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php apache or php cgi - php learner rblampain Linux - Security 3 12-18-2004 12:10 AM
New to PHP and Postgressql. Is this a PHP problem or a sql problem. Please help sendas4 Linux - General 2 11-05-2004 02:54 PM
Problem getting PHP to recognize MySQL, Using PHP 4.0 and MySQL 4.0.20 d2army Programming 4 06-27-2004 09:54 PM
RH9: PHP session problem (or Apache problem) fengcn Red Hat 0 12-01-2003 07:32 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration