Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd January 2008, 15:36
loben loben is offline
Junior Member
 
Join Date: Dec 2007
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default Apache2 Public directory on Ubuntu server 7.10

Hi
Where do I find the Apache2 Public directory on my Ubuntu 7.10 server. Couldt
it be /var/www/ . When I'm installing an application for example PhpGdeView is it there where I save the application files??
Reply With Quote
Sponsored Links
  #2  
Old 4th January 2008, 00:23
petter5 petter5 is offline
Junior Member
 
Join Date: Mar 2007
Posts: 14
Thanks: 0
Thanked 2 Times in 1 Post
Default WWW location

Yepp, it's /var/www/ if you use a default config.
Reply With Quote
  #3  
Old 4th January 2008, 01:12
loben loben is offline
Junior Member
 
Join Date: Dec 2007
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default Apache2 Public directory on Ubuntu server 7.10

Hi thank's for answer
Ok, but why dosn't the server answer for index.php, couldt it be something whit my PHP configuration ?? The server answer for htm, and html but not for php.
The browser try to open a file instead of running the file and the database configuration he should open....why

Last edited by loben; 4th January 2008 at 01:15.
Reply With Quote
  #4  
Old 4th January 2008, 10:59
petter5 petter5 is offline
Junior Member
 
Join Date: Mar 2007
Posts: 14
Thanks: 0
Thanked 2 Times in 1 Post
Default

in the file /etc/apache2/apache2.conf

make shure that you have index.php in the DirectoryIndex statement:

example:



Code:
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml

/ Petter
Reply With Quote
  #5  
Old 4th January 2008, 13:04
loben loben is offline
Junior Member
 
Join Date: Dec 2007
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default /etc/apache2/apache2.conf

Hi Petter5
Thank's for answer.
I don't have the line
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
in my apache2.conf file, but where in that file should I put it in.

In my /etc/apache2/mods-available/dir.conf I have the lines

<IfModule mod_dir.c>

#DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml

</IfModule>


Isn't that enought for the server to know the index.php

Last edited by loben; 4th January 2008 at 13:52.
Reply With Quote
  #6  
Old 4th January 2008, 16:34
petter5 petter5 is offline
Junior Member
 
Join Date: Mar 2007
Posts: 14
Thanks: 0
Thanked 2 Times in 1 Post
Default

Well, the index.php is located inside a if module. Then IF you not load this module THEN index.php will not be valid.

You can try to add

Code:
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
outside the if statement, save the file and run
Code:
/etc/init.d/apache2 reload
to reload the configuration before you try once more

/ Peter
Reply With Quote
  #7  
Old 5th January 2008, 03:09
loben loben is offline
Junior Member
 
Join Date: Dec 2007
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Smile DirectoryIndex index and so on......

Hi
Ok but i dont understand the configuratin Where is the line for
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
comming in. In the HowTo it says that the line should bi in the file
/etc/apache2/mods-available/dir.conf: and I changed that line.

In the /etc/apache2/apache2.conf there is nothing about this
configuration htm or php. Did you meen that the line shuld be aut of
the if statement in /etc/apache2/mods-available/dir.conf
in that statement there alredy was a line with php and html after the installation.

sorry I don't get it and it dosn't work, but I will tray again........
Reply With Quote
  #8  
Old 5th January 2008, 14:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Please try this:
Code:
cd /etc/apache2
grep -R DirectoryIndex *
What's the output?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 5th January 2008, 15:08
loben loben is offline
Junior Member
 
Join Date: Dec 2007
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default

:/etc/apache2# grep -R DirectoryIndex *
mods-available/dir.conf: #DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
mods-available/dir.conf: DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml
mods-enabled/dir.conf: #DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
mods-enabled/dir.conf: DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml
Reply With Quote
  #10  
Old 6th January 2008, 14:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

Open mods-available/dir.conf and change
Code:
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml
to
Code:
DirectoryIndex index.php index.html index.htm index.shtml index.cgi index.php3 index.pl index.xhtml
Restart Apache afterwards.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installations Problem @ PHP thryb Installation/Configuration 1 7th November 2007 14:41
Error during installation on Debian 3, AMD64 processor nikola021 Installation/Configuration 1 6th October 2006 10:16
PHP error chrno Installation/Configuration 2 7th September 2006 14:27
Install Error on Debian 3.1 planet_fox Installation/Configuration 4 25th June 2006 18:03
Problems with Apache and Updating Jubalint Installation/Configuration 2 21st May 2006 20:50


All times are GMT +2. The time now is 06:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.