Secure PHP with PHP's disable_functions?

Rand al'Thor

Member
Registered
Joined
May 25, 2016
Messages
23
Points
0
After installed a free hosting control panel, I was recommended to Secure PHP with PHP's disable_functions but they didn't show me guides

What are PHP's disable_functions and it can affect my site work normally?
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
It disables functions for security reasons. Yes turning of needed functions in php could cause a lot of problems.
Before you go changing anything you need to know exactly what you need to change. Check the documentation for the control panel.
 

jmlopez

Member
Registered
Joined
Jul 11, 2016
Messages
24
Points
3
After installed a free hosting control panel, I was recommended to Secure PHP with PHP's disable_functions but they didn't show me guides

What are PHP's disable_functions and it can affect my site work normally?
Here's a guide

On your terminal, login to root account on your hosting

Code:
nano /etc/php.ini
Find disable_functions and set new list as following:

Code:
disable_functions =exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
I also recommend to disable allow_url_include and allow_url_fopen for security reasons:

Code:
allow_url_fopen=Off
allow_url_include=Off
Save and close the file. Restart the httpd server by tying the following command:
Code:
service httpd restart
The rest is you should follow LJSHost's advice

It disables functions for security reasons. Yes turning of needed functions in php could cause a lot of problems.
Before you go changing anything you need to know exactly what you need to change. Check the documentation for the control panel.
 
Newer Threads
Replies
8
Views
2,512
Replies
6
Views
4,490
Replies
19
Views
10,947
Latest Threads
Recommended Threads
Replies
4
Views
2,555
Replies
2
Views
4,741
Replies
4
Views
3,969
Replies
0
Views
1,150
Replies
10
Views
6,930

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top