php.ini issue

mikelato

Verified User
Joined
Jan 25, 2010
Messages
74
Hi,

I have the function ini_set() disabled for security reasons on my server. I have enabled it for my main domain so that my billing system functions properly but I would prefer that it be disabled on every other account. This worked great for me until I realized that squirrelmail does not function without this feature. I get the following error with ini_set disabled.

Warning: ini_set() has been disabled for security reasons in /var/www/html/squirrelmail-1.4.19/functions/global.php on line 107

Warning: ini_set() has been disabled for security reasons in /var/www/html/squirrelmail-1.4.19/functions/global.php on line 118

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/squirrelmail-1.4.19/functions/global.php:107) in /var/www/html/squirrelmail-1.4.19/functions/i18n.php on line 439

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/squirrelmail-1.4.19/functions/global.php:107) in /var/www/html/squirrelmail-1.4.19/src/login.php on line 113

I would like to keep ini_set disabled for all of the users on the server with the exception of my domain, and the /var/www/html directory which squirrelmail runs from. What is the best way of doing this?

Thanks,
Mike
 
Change php.ini as you want and just put the code in the .htaccess and the point where your php.ini is. But do not include the file, only the dir. Upload .htaccess to /var/ww/html/ and will include all domain.

The modified php.ini have effect only in the folder that is in and subfolders

<IfModule mod_suphp.c>
suPHP_ConfigPath /own/dir
</IfModule>
 
Thanks for the advice but after I make that change I am still getting the error message. Is there another way?

-Mike
 
I haven't looked at ISOS6's method.

My suggestion would be to have your users use your domain name for squirrelmail.

Jeff
 
Back
Top