View previous topic :: View next topic |
Author |
Message |
Leachim n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1112722312480a85326f2fc.jpg)
Joined: 25 Feb 2007 Posts: 66
|
Posted: Thu Apr 17, 2008 2:53 am Post subject: php.ini for each user |
|
|
Hi, I want to provide a webhosting for few domains and I need to disable safe_mode for one domain.
How can I do it?
The best will be, if Ill can make php.ini for each user.
Example: owner of the /data/domain/index.php is root, so php.ini wil be /root/php.ini
Ty |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
elgato319 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 15 Sep 2005 Posts: 546
|
Posted: Thu Apr 17, 2008 6:37 am Post subject: |
|
|
You can use your vhost conf for this.
Code: |
<Directory "/var/www/some/dir/">
PHP_ADMIN_VALUE safe_mode off
</Directory>
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bradp_84 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Nov 2004 Posts: 48 Location: Australia
|
Posted: Thu Apr 17, 2008 9:29 am Post subject: |
|
|
If you use mod_fcgid, you can load a different php.ini for each vhost. Your fcgi-bin/php5 script for each domain needs to look something like this:
#!/bin/sh
export PHPRC="/var/www/1/<domain>/conf/php5"
exec /usr/lib/php5/bin/php-cgi
Cheers,
Brad |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|