Page 1 of 1

Problems to run PHP4 and PHP5 at the same time

PostPosted: 20. March 2008 07:24
by jacortijo
Hi all,

recently I installed XAMPP and I have to run two sites, a PHP5 and a PHP4 one.
Searching in the net I found a solution that was adding some parameters in the virtual host configuration
http://www.optimalworks.net/blog/2007/w ... he-windows


Code: Select all
<VirtualHost *:80>

DocumentRoot E:/xampp/htdocs/Degas
ServerName drivers
ScriptAlias /php/ "E:/xampp/php/php4/"
Action application/x-httpd-php4 "/php/php.exe"
AddHandler application/x-httpd-php4 .php

</VirtualHost>


but doing this I get an error
Code: Select all
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403


looks like it doesnt have enough rights to access that php4 directory.
Could someone tell me how to solve this problem?

Many thanks in advance.
Jose

PostPosted: 20. March 2008 07:47
by Milligan

httpd.conf also modified

PostPosted: 20. March 2008 07:50
by jacortijo
Hi, thanks for the reply
I have that directive in the httpd.conf.

Code: Select all
<Directory "E:/xampp/htdocs/Degas">
   Options Indexes FollowSymLinks Includes ExecCGI
   AllowOverride All
   Order allow,deny
   Allow from all
</Directory>


thanks again.
jose

Re: httpd.conf also modified

PostPosted: 20. March 2008 07:55
by Milligan

Solved!

PostPosted: 20. March 2008 09:47
by jacortijo
Hi, you were right.
sorry for all the messingup.
now is running smothly. many thanks.