LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-27-2006, 02:15 PM   #1
Grey Mouser
LQ Newbie
 
Registered: Jul 2006
Distribution: FreeBSD, Debian
Posts: 9

Rep: Reputation: 0
apache 1.3 + mod-php4 = empty /var/www


Hello!

I'm setting up a debian server for my friend, who lives in Colorado.
He's got a Sun Netra T1, which I've installed debian etch onto.

When I do apt-get install apache libapache-mod-php4, it goes fine...
the webserver works but the document root is empty. Usually I'm used
to seeing "Congrats! You did it".. you know the screen?

Is there another package I have to install to get the base document root?
-Ryan
 
Old 07-27-2006, 02:34 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 62
Quote:
Originally Posted by Grey Mouser
Hello!

I'm setting up a debian server for my friend, who lives in Colorado.
He's got a Sun Netra T1, which I've installed debian etch onto.

When I do apt-get install apache libapache-mod-php4, it goes fine...
the webserver works but the document root is empty. Usually I'm used
to seeing "Congrats! You did it".. you know the screen?

Is there another package I have to install to get the base document root?
-Ryan
Do you mean that loading a php file for the server is not working because you should have an index.html file in the /var/www that shows up when you access either http://127.0.0.1 or http://localhost on the machine. You need to look into the /etc/apache/modules.conf and make sure that the mod_php?.so line is in there then you have had to restart the server for it to be loaded. You would also want to make sure that index.php is at the start of the DirectoryIndex line in the /etc/apache/httpd.conf for it to be used as the default on the web server.
 
Old 07-27-2006, 02:46 PM   #3
Grey Mouser
LQ Newbie
 
Registered: Jul 2006
Distribution: FreeBSD, Debian
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by HappyTux
Do you mean that loading a php file for the server is not working because you should have an index.html file in the /var/www that shows up when you access either or on the machine. You need to look into the /etc/apache/modules.conf and make sure that the mod_php?.so line is in there then you have had to restart the server for it to be loaded. You would also want to make sure that index.php is at the start of the DirectoryIndex line in the /etc/apache/httpd.conf for it to be used as the default on the web server.

Nono, if I toss an index.php or index.html in /var/www they both work fine.

I was just curious why the default "hey you did it!" url (along with a link to documentation) wasn't there.

 
Old 07-27-2006, 04:27 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 62
Quote:
Originally Posted by Grey Mouser
Nono, if I toss an index.php or index.html in /var/www they both work fine.

I was just curious why the default "hey you did it!" url (along with a link to documentation) wasn't there.

That is a good question the index.html should be there already at least it was last time I installed when I upgraded to 64bit last August from the looks of the time stamp.

Code:
>$ ls -l /var/www/index-orig.html
-rw-r--r-- 1 www-data www-data 5258 2005-08-22 01:10 /var/www/index-orig.html
 
Old 07-28-2006, 07:07 PM   #5
Grey Mouser
LQ Newbie
 
Registered: Jul 2006
Distribution: FreeBSD, Debian
Posts: 9

Original Poster
Rep: Reputation: 0
fixed it somehow.. heh
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apache 403 for dir in /var/www/html/ m3rajk Linux - Networking 7 10-11-2005 01:31 PM
Debian 3.1 sarge, Apache and /var/www/images directory fiddelm3742 Linux - Software 7 06-30-2005 11:02 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Newbie 7 09-28-2004 04:18 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Software 3 09-25-2004 02:38 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - General 2 09-25-2004 01:29 AM


All times are GMT -5. The time now is 05:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration