This is a discussion on php doesn't execute in some directories within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello , I try to set up a server with PHP enabled. i have 2 virtual hosts described as follow : <...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello ,
I try to set up a server with PHP enabled. i have 2 virtual hosts described as follow : <VirtualHost *:80> ServerAdmin webmaster@ang-st.ath.cx DocumentRoot /var/www/html/PST ServerName sam4el.info </VirtualHost> <VirtualHost *:80> ServerName ang-st.ath.cx DocumentRoot /var/www/html </VirtualHost> the directories directive are configured as follow: <Directory "/var/www/html/PST"> AllowOverride None Options Indexes FollowSymLinks Order allow,deny Allow from all </Directory> and for /var/www/html/ is the basic apache configuration . the fact is when i try to reach the main index of sam4el.info i have the index.php which is executed but when i try to reach the "ecrire" directory o have a 404 error whereas it is a subdirectory : #ls -l /var/www/html/PST | grep ecrire drwxr-sr-x 7 root root 4096 mar 7 11:50 ecrire in other hand if i try the following url : http://ang-st.ath.cx/PST/ecrire i see the source of the install.php3 file ... i have actually no clue about this, i try to find some info on google with no result ( maybe i don't use the right keyword :)) any help or advice would be appreciated ... thanks in advance |
|
|||
|
ang-st wrote:
> Hello , > > I try to set up a server with PHP enabled. > > i have 2 virtual hosts described as follow : > > <VirtualHost *:80> > ServerAdmin webmaster@ang-st.ath.cx > DocumentRoot /var/www/html/PST > ServerName sam4el.info > </VirtualHost> > > <VirtualHost *:80> > ServerName ang-st.ath.cx > DocumentRoot /var/www/html > </VirtualHost> > > the directories directive are configured as follow: > > <Directory "/var/www/html/PST"> > AllowOverride None > Options Indexes FollowSymLinks > Order allow,deny > Allow from all > </Directory> > > and for /var/www/html/ is the basic apache configuration . > > the fact is when i try to reach the main index of sam4el.info i have the > index.php which is executed but when i try to reach the "ecrire" directory > o have a 404 error whereas it is a subdirectory : > > #ls -l /var/www/html/PST | grep ecrire > drwxr-sr-x 7 root root 4096 mar 7 11:50 ecrire > > in other hand if i try the following url : http://ang-st.ath.cx/PST/ecrire > i see the source of the install.php3 file ... > > i have actually no clue about this, i try to find some info on google with > no result ( maybe i don't use the right keyword :)) > > any help or advice would be appreciated ... > > thanks in advance you got exaecute permissions set on for user and group that Apache runs as in the subdirectories that the virtual hosts run in ? Normally, this causes the type of problem you are describing |
|
|||
|
> you got exaecute permissions set on for user and group that Apache runs
> as in the subdirectories that the virtual hosts run in ? Normally, this > causes the type of problem you are describing all the directories are owned by the same user/group, this is the first thing i have checked, the script are all in 755.That's why i'm so ... perplex. |