suPHP problem, cannot use user
I have compiled suPHP for apache to be able to run php scripts as a user other than apache, but I cannot make it to use my user to run the php script.
I have read and followed all of these: Documentation in suphp.org a wiki on a blog that I cannot paste here it seems and all the documentation that comes with the suphp.tar.gz ( at least 4 times ) This is how I configured suphp before make && make install: ./configure --prefix=/usr --with-setid-mode=paranoid --with-apr=/usr/bin/apr-1-config I Have these lines in httpd.conf: LoadModule suphp_module /usr/lib/httpd/modules/mod_suphp.so AddType application/x-httpd-php .php AddHandler application/x-httpd-php .php <Location /> SuPHP_AddHandler x-httpd-php </Location> NameVirtualHost *:80 <VirtualHost *:80> ServerName blaj.foo ServerAlias *.blaj.foo DocumentRoot /var/www/html/test suPHP_ConfigPath /etc/ suPHP_UserGroup nemie users </VirtualHost> I have tested with a test-script that php does work: cat test.php <? system("id"); ?> It gives me: uid=48(apache) gid=48(apache) groups=48(apache),488(nagios) It's on that line ( I suppose ) I want to see that it uses my user and not apache. Have I missed something? Or is something really wrong with what I have done? Thanks! |
All times are GMT -5. The time now is 02:32 PM. |