B
bigtank
Guest
Hi
I run Plesk 8.3 under RedHat RHEL 4 and I installed suPHP from
http://dag.wieers.com/rpm/packages/mod_suphp...
The file /etc/httpd/conf.d/suphp.conf just contains the line
"LoadModule....."
(phpinfo tell's me that the module mod_suphp is loaded)
After I added the following to the file vhosts.conf:
<Directory /var/www/vhosts/<domain>/httpdocs>
<IfModule sapi_apache2.c>
<IfModule mod_suphp.c>
RemoveHandler x-httpd-php
php_admin_flag engine Off
suPHP_AddHandler x-httpd-php .php
suPHP_Engine on
AddHandler x-httpd-php .php
suPHP_UserGroup <Username> psacln
</IfModule>
</IfModule>
</Directory>
Then I made the file "id.php" with the following input:
<?php
system('id');
?>
When I run http://domain/id.php apache tell's me:
uid=48(apache) gid=48(apache) groups=48(apache),2523(psaserv)
If mod_suphp would work correctly shouldn't I get back uid=(<Username>)
instead of uid=48(apache)????
Thnx for help
bt
I run Plesk 8.3 under RedHat RHEL 4 and I installed suPHP from
http://dag.wieers.com/rpm/packages/mod_suphp...
The file /etc/httpd/conf.d/suphp.conf just contains the line
"LoadModule....."
(phpinfo tell's me that the module mod_suphp is loaded)
After I added the following to the file vhosts.conf:
<Directory /var/www/vhosts/<domain>/httpdocs>
<IfModule sapi_apache2.c>
<IfModule mod_suphp.c>
RemoveHandler x-httpd-php
php_admin_flag engine Off
suPHP_AddHandler x-httpd-php .php
suPHP_Engine on
AddHandler x-httpd-php .php
suPHP_UserGroup <Username> psacln
</IfModule>
</IfModule>
</Directory>
Then I made the file "id.php" with the following input:
<?php
system('id');
?>
When I run http://domain/id.php apache tell's me:
uid=48(apache) gid=48(apache) groups=48(apache),2523(psaserv)
If mod_suphp would work correctly shouldn't I get back uid=(<Username>)
instead of uid=48(apache)????
Thnx for help
bt