BigBadaBoom
May 16th, 2005, 01:24 PM
Hi! I'm currently running an apache2 on my ubuntu server with the following modules installed:
apache2-mpm-prefork
apache2-prefork-dev
libapache2-mod-php4
php4-dev
php4-mysql
php4-pear
phpmyadmin
It works perfectly and does exactly what I want/expect it to do. Now a problem's come up though. I need one VirtualHost to run its php scripts as a different user.
I wanted to switch over to the apache2-mpm-perchild module since I found out that with that you can define the user and the group the php scripts are executed as for each VirtualHost and not just the entire server like with prefork.
When installing via apt-get it removes the php modules aswell though (they're dependent on prefork), and I just can't seem to get php to work again with perchild running.
Can anyone tell me what I'm doing wrong, what I have to do to get it to work (please don't tell me I have to compile php or install it with something else than apt-get... I'm not that good) or even better some other (easy ;)) way to execute some php scripts (well - one single site to be precise) as a different user.
Thanks a million in advance!
- BBB
apache2-mpm-prefork
apache2-prefork-dev
libapache2-mod-php4
php4-dev
php4-mysql
php4-pear
phpmyadmin
It works perfectly and does exactly what I want/expect it to do. Now a problem's come up though. I need one VirtualHost to run its php scripts as a different user.
I wanted to switch over to the apache2-mpm-perchild module since I found out that with that you can define the user and the group the php scripts are executed as for each VirtualHost and not just the entire server like with prefork.
When installing via apt-get it removes the php modules aswell though (they're dependent on prefork), and I just can't seem to get php to work again with perchild running.
Can anyone tell me what I'm doing wrong, what I have to do to get it to work (please don't tell me I have to compile php or install it with something else than apt-get... I'm not that good) or even better some other (easy ;)) way to execute some php scripts (well - one single site to be precise) as a different user.
Thanks a million in advance!
- BBB