Page 1 of 1

PHP stopped working in some virtual hosts

PostPosted: 18. August 2008 02:07
by guischarf
Hi,

I have 18 virtual hosts created in httpd-vhosts.conf. Up to now I had no problem running php in all of them. I created a new virtual hosts following the exact same pattern I used for the rest. This is the vhosts directives I used:

Code: Select all
<virtualhost *:80>
    ServerAdmin webmaster@mysite.com
    DocumentRoot "C:/Sites/www.mysite.org/"
    ServerName mysite.loc
    ServerAlias www.mysite.loc
    <directory "C:/Sites/www.mysite.org/">
        AllowOverride FileInfo AuthConfig Limit Indexes
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        <limit GET POST OPTIONS>
            Order allow,deny
            Allow from all
        </limit>
        <limitexcept GET POST OPTIONS>
            Order deny,allow
            Deny from all
        </limitexcept>
    </directory>
</virtualhost>


No matter what, the 19th site does not run php. Instead, tries to download the files.

I am using the latest version of XAMPP on windows XP SP2. Installed with the installer.

Any ideas how to start tackling this problem ?

PostPosted: 18. August 2008 10:17
by Nobbie
Is there a .htaccess file in the DocumentRoot, which (probably) disables PHP processing?

PostPosted: 18. August 2008 15:00
by guischarf
Thanks Nobbie.

Effectively, there is a .htaccess file with the following content:

Code: Select all
AddHandler application/x-httpd-php5 .php


Apparently placed in the server by the host provider and copied by me unnoticed to the local server. However, eliminating it did not fix the problem.

PostPosted: 18. August 2008 15:01
by guischarf
Ignore the previous. It is interpreting fine now.

Thanks so much.