php doesn't execute in some directories

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 : <...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-03-2005
ang-st
 
Posts: n/a
Default php doesn't execute in some directories

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
  #2 (permalink)  
Old 03-03-2005
NSpam
 
Posts: n/a
Default Re: php doesn't execute in some directories

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
  #3 (permalink)  
Old 03-04-2005
ang-st
 
Posts: n/a
Default Re: php doesn't execute in some directories

> 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.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0