Maarten de Vries wrote:

Hi,

I would like the php scripts that are hosted on my Apache server (FreeBSD 4.8), to run under the UID/GID's that belong to the useraccounts in question; not the webservers'.
Before, I patched Apache so it ran php's under SuExec, but now the php standalonebinary port has disappeared, so that seems to be not an option anymore.


Any pointers to set it all up in a safe manner again would be much appreciated!



php now includes a cgi-binary as part of the install

you can happily use it with SUEXEC

I have a server here set up just that way :

[EMAIL PROTECTED]/home/matt %echo '<? phpinfo() ?>' | php | head -n 10
phpinfo()
PHP Version => 4.3.1

System => FreeBSD alf.proweb.net 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Fri Jan i386
Build Date => May 16 2003 11:42:10
Configure Command => './configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-regex=system' '--without-gd' '--without-mysql' '--with-gd=/usr/local' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-zlib' '--with-bz2=/usr' '--with-pdflib=/usr/local' '--with-zlib-dir=/usr' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-tiff-dir=/usr/local' '--with-mysql=/usr/local' '--with-pgsql=/usr/local' '--with-expat-dir=/usr/local' '--with-xmlrpc' '--with-dom=/usr/local' '--enable-ftp' '--with-curl=/usr/local' '--with-iconv=/usr/local' '--with-ming=/usr/local' '--prefix=/usr/local' 'i386-portbld-freebsd4.7'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/home/www/php.ini
PHP API => 20020918





_______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to