Page 1 of 1

PHP stopped working in some virtual hosts

PostPosted: 18. August 2008 02:07
by guischarf

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>
    DocumentRoot "C:/Sites/"
    ServerName mysite.loc
    ServerAlias www.mysite.loc
    <directory "C:/Sites/">
        AllowOverride FileInfo AuthConfig Limit Indexes
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        <limit GET POST OPTIONS>
            Order allow,deny
            Allow from all
        <limitexcept GET POST OPTIONS>
            Order deny,allow
            Deny from all

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.