H-Sphere Documentation Sysadmin Guide

For more information contact us at info@psoft.net

PHP Safe Mode Configuration

 

PHP safe mode is turned off by default in the original H-Sphere configuration.

To turn it on, set safe_mode=On in the php.in file (usually, in /usr/local/lib directory).

To use default H-Sphere configuration for PHP with safe mode on, download default php.ini, turn the safe mode on and copy that file to the PHP installation directory (usually, /usr/local/lib).

Read more on PHP safe mode configuration in PHP documentation.

To turn the safe mode off for an individual account, edit/add the following directive in the /hsphere/local/config/httpd/httpd.conf Apache configuration file on the Web server:

<Directory /hsphere/local/home/wwwuser>
<IfModule mod_php4.c>
php_admin_flag safe_mode off
</IfModule>
</Directory>

To have Horde web mail working when the safe mode is on, set the following directive in /hsphere/local/config/httpd/httpd.conf on the Web server:

<Directory /hsphere/shared/apache/htdocs/horde>
<IfModule mod_php4.c>
php_admin_flag safe_mode off
</IfModule>
</Directory>

To configure Webshell 3 so that it would work with the safe mode globally on:

<Directory /hsphere/shared/apache/htdocs/webshell3>
<IfModule mod_php4.c>
php_admin_flag safe_mode off
</IfModule>
</Directory>

Restart Apache after performing necessary modifications.



Home   Products   Services   Partners   Support   News   Contact   Forum
© Copyright 1998-2003. Positive Software Corporation.
All rights reserved.