php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1508 Programs are not executed with uid of apache virtual host
Submitted: 1999-06-08 06:37 UTC Modified: 1999-06-20 09:28 UTC
From: koch at n-e-t dot de Assigned:
Status: Closed Package: Other
PHP Version: 3.0.7 OS: Solaris 2.5.1
Private report: No CVE-ID: None
 [1999-06-08 06:37 UTC] koch at n-e-t dot de
Programs executed with one of the program execution functions (e.g. passthru, system) are executed with
the uid of the main apache server (www), instead with the uid of the apache virtual host (www1).

Extract from httpd.conf:
 ...
 User www
 Group www
 ...
 <VirtualHost eule1.n-e-t.de:80>
 User www1
 Group www
 ...
 Options FollowSymLinks ...
 AddType application/x-httpd-php3 .php3
 Php3_Engine on
 Php3_Safe_Mode on
 Php3_Safe_Mode_Exec_Dir /NET/www/eule1.n-e-t.de/cgi
 Php3_Doc_Root /NET/www/eule1.n-e-t.de/doc
 Php3_Open_Basedir /ldsk/fs4/www/eule1.n-e-t.de/doc
 ...
 </VirtualHost>
 ...

Configured Modules:
 mysql, apache

There is no php.ini file in use.

/NET is a symbolic link to /ldsk/fs4.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-20 09:28 UTC] sas at cvs dot php dot net
The module version of PHP always runs with the UID of the main web server. 

Use the CGI version of PHP and the suexec feature of Apache, if you need a different behaviour.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 01 01:01:28 2024 UTC