Php in cgi-mod & per-site binary
| From: | Haj | Date: | Tue, 17 Sep 2002 04:24:37 +0000 |
| Subject: | Php in cgi-mod & per-site binary | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8481@lists.php.net to get a copy of this message | ||
Hello php-install,
I use a E-smith distribution (base on redHat 7.3)
I want to compil PHP in Cgi mod so head virtual host on my
hosting server can have is own build of php.
Compilation with success:
[root]# /usr/local/lib/bin/php-config --version
4.2.3
Here what I have
<VirtualHost 0.0.0.0:80>
ServerName mySite.com
ServerAlias mySite.com
User haj ## virtual host administrator
Group site1
DocumentRoot /home/e-smith/files/ibays/vhost1/html
ScriptAlias /cgi-bin /home/e-smith/files/ibays/vhost1/cgi-bin
Alias /files /home/e-smith/files/ibays/vhost1/files
ScriptAlias /php-bin/ /etc/httpd/conf/vhosts/mySite.com/php-bin/
Action php-script /php-bin/php
AddHandler php-script .php .php3 .phtml
[...]
I have copied my php binarie from /usr/local/lib/bin/php to
/etc/httpd/conf/vhosts/mySite.com/php-bin/php
/etc/httpd/conf/vhosts/mySite.com/php-bin/php have permissions
set to: haj.site1 0700
Should work Isn't it ??
Why do I get:
Forbidden
You don't have permission to access /php-bin/php/info.php on this server.
when accessing http://mysite.com/info.php ?
--
Regards,
Haj
root@haj.ht.st