mehrdad abed

Well-Known Member
Mar 18, 2006
128
0
166
I just upgraded to apache ver 2, and now I've Suphp instead of phpsuexe, it seems php runs as a apache module in this way, but now i don't know how to change php.ini rules. i just added these for one of my vhost and it just dosent work:

was :
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/tomy:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>


is :
<IfModule mod_php5.c>
php_admin_value upload_max_filesize "10M"
php_admin_value open_basedir "/home/tomy:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>

I really need to be able to change the php directives over each account, so please let know where I'm wrong in.

Thanks
 

mehrdad abed

Well-Known Member
Mar 18, 2006
128
0
166
but i want to take some rules that shouldn't be overridden by .htaccess, on the other hand i try to force some rules over the clients.
 
Last edited:

mehrdad abed

Well-Known Member
Mar 18, 2006
128
0
166
It's kind of strange because it seems none of the applied apache rules work, even "php_admin_value open_basedir" is set as "no value" in the result of phpinfo() as i'd added it in php5 tags in httpd.conf.
i also used "suPHP_ConfigPath" in the middle of <IfModule mod_suphp.c>... </IfModule> something like this :

<IfModule mod_suphp.c>
suPHP_UserGroup tomy tomy
suPHP_ConfigPath /etc/httpd/conf/php_ini/php.ini
</IfModule>

but dosent work.

please help