MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How can I disable user Custom PHP.INI files ?  (Read 3811 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
How can I disable user Custom PHP.INI files ?
« on: September 01, 2014, 11:53:05 AM »
Hello guys,

If you would like to disable user unwanted custom php.ini file in your cpanel server then you can do this with the help of suPHP.

suPHP is a module that enhances overall server security. When you have Mod suPHP installed, you can configure your server to force the use of the main server wide php.ini file and disable the use of custom php.ini files to adjust certain php settings. Below are the steps.

1. Login to your server as root via SSH

2. Open the following file:

Quote
vi /opt/suphp/etc/suphp.conf
3. Search for [phprc_paths] and then uncomment the following lines:

Quote
;application/x-httpd-php=/usr/local/lib/
;application/x-httpd-php4=/usr/local/php4/lib/
;application/x-httpd-php5=/usr/local/lib/

4.Save the file and  restart Apache

Quote
#service httpd restart

Enjoy !!!
MilesWeb.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.

MilesWeb Hosting Forum

How can I disable user Custom PHP.INI files ?
« on: September 01, 2014, 11:53:05 AM »