Hello devinfo,
Lets resume. I want to build rpms that will enable a virtual
hosting panel to enable adding web site easily from
e-smith-manger.
I want each virtual host have its own php build. So php will be
compiled in cgi mode and copied in a specific directory for each
virtual host ( /etc/httpd/conf/vhosts/domain.com/php-bin/ )
I've already modified the templates to obtain that:
exemple with vhost.nc :
<VirtualHost 0.0.0.0:80>
ServerName www.vhost.nc
ServerAlias vhost.nc
DocumentRoot /home/e-smith/files/ibays/vhost1/html
user www
group www
ScriptAlias /cgi-bin /home/e-smith/files/ibays/vhost1/cgi-bin
ScriptAlias /php-bin /etc/httpd/conf/vhosts/vhost.nc/php-bin
Action php-script /php-bin/php
AddHandler php-script .php .php3 .phtml
Alias /files /home/e-smith/files/ibays/vhost1/files
# skipping SSL directives
# skipping ProxyPass directives
# webmail aliases
Alias /webmail /home/httpd/html/horde/imp
Alias /horde /home/httpd/html/horde
# alias for Apache icons
Alias /icons/ /var/www/icons/
</VirtualHost>
So, that works and I am know running php4.2.3 on all e-bay. I can
also compil an other version of php (using for exemple an other
php.ini file) and copied it in proper directory. :-)
Ther is my problem:
As user and group running apache is always www:www, one
virtual host running php can run other virtual host scripts. To
avoid that I will create a user 'vhost1_admin' of group site1.
That user will be my virtual host administrator.
Now the matter is to run apache under that user wich works for
html pages but not for PHP
( Internal server error
[Thu Sep 19 13:30:50 2002] [error] (13)Permission denied: exec of
/etc/httpd/conf/vhosts/vhost.nc/php-bin/php failed
[Thu Sep 19 13:30:50 2002] [error] [client 192.168.0.254] Premature end of script
headers: /etc/httpd/conf/vhosts/vhost.nc/php-bin/php )
For exemple for virtual host vhost.nc :
=> Ebay : vhost1 (group site1 write: group ; read: group)
=> group: site1
=> Virtual host admin: vhost1-admin (member of site1 group)
So in httpd.conf:
user vhost1-admin
group site1
For testing /etc/httpd/conf/vhosts/vhost.nc/php-bin/php is
chmod 777 & chgrp vhost1-admin:site1
But doesn't work for PHP Cgi (see below)
Help will be really, really appreciated !
--
Regards,
Haj
[EMAIL PROTECTED]
--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org