note 43197 added to security.cgi-bin

From: Date: Sun, 13 Jun 2004 12:26:31 +0000
Subject: note 43197 added to security.cgi-bin
Groups: php.notes 
Request: Send a blank email to php-notes+get-71017@lists.php.net to get a copy of this message
PHP works with Apache and suEXEC like this: (Assuming that suEXEC ist allready installed and working) Install PHP as CGI binary (e.g. in /usr/local/bin/php) (compile with --enable-force-cgi-redirect) Create a Link inside cgi-bin directory to make php-cgi accessable: cd /usr/local/apache/cgi-bin ln /usr/local/bin/php php Edit your httpd.conf file: AddHandler php4-script .php Action php4-script /cgi-bin/php <VirtualHost 123.456.789.0:80> User exampleuser Group examplegroup ... </VirtualHost> Restart Apache PHP-scripts are now called under the user-id of exampleuser and group-id of examplegroup. ---- Manual Page -- http://www.php.net/manual/en/security.cgi-bin.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43197 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43197&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43197&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71017) next »