PHP Safe Mode Configuration

 
Important: PHP safe mode is not supported by psoft.net, you can use it at your own risk.

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.ini file (usually, in the /usr/local/lib directory).

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
php_admin_value upload_tmp_dir "/tmp"
php_admin_value session.save_path "/tmp"
</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
php_admin_value upload_tmp_dir "/tmp"
php_admin_value session.save_path "/tmp"
</IfModule>
</Directory>

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

<Directory /hsphere/shared/apache/htdocs/webshell4>
<IfModule mod_php4.c>
php_admin_flag safe_mode off
php_admin_value upload_tmp_dir "/tmp"
php_admin_value session.save_path "/tmp"
</IfModule>
</Directory>

Restart Apache after performing necessary modifications.







Home   Products   Services   News
© Copyright. . PSOFT. All Rights Reserved. Terms | Site Map