PHP stopped working in some virtual hosts

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP stopped working in some virtual hosts

Postby guischarf » 18. August 2008 02:07

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 ?
guischarf
 
Posts: 11
Joined: 10. January 2008 21:54

Postby Nobbie » 18. August 2008 10:17

Is there a .htaccess file in the DocumentRoot, which (probably) disables PHP processing?
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Postby guischarf » 18. August 2008 15:00

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.
guischarf
 
Posts: 11
Joined: 10. January 2008 21:54

Postby guischarf » 18. August 2008 15:01

Ignore the previous. It is interpreting fine now.

Thanks so much.
guischarf
 
Posts: 11
Joined: 10. January 2008 21:54


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 108 guests