php:disabling_dangerous_php_functions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
php:disabling_dangerous_php_functions [2016/10/14 23:09] – peter | php:disabling_dangerous_php_functions [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 55: | Line 55: | ||
+ | Locate your php.ini and then edit: | ||
+ | |||
+ | <code bash> | ||
+ | php -i | grep php.ini | ||
+ | </ | ||
+ | |||
+ | Returns something like | ||
+ | |||
+ | < | ||
+ | Configuration File (php.ini) Path => / | ||
+ | Loaded Configuration File => / | ||
+ | </ | ||
+ | |||
+ | Now edit the file using your favourite editor : | ||
+ | |||
+ | <code bash> | ||
+ | vi / | ||
+ | </ | ||
+ | |||
+ | Search for the following text within that configuration file & modify **disable_functions = "" | ||
+ | |||
+ | <file php / | ||
+ | disable_functions = " | ||
+ | </ | ||
+ | |||
+ | |||
+ | After modifying the PHP configuration, | ||
+ | |||
+ | If you find any problems with your web-applications after disabling these above mentioned functions, it's recommended to recheck your code & find an alternative solution, rather than risking the complete server for a mere application.. | ||
+ | |||
+ | Note that the above mentioned solution is applicable for both type of servers, Linux web hosting server & for Windows web hosting servers as well.. The PHP configuration on Windows is generally found in the C:\Windows folder.. Make sure you restart IIS web server PHP config modifications on windows servers too.. | ||
php/disabling_dangerous_php_functions.1476486556.txt.gz · Last modified: 2020/07/15 09:30 (external edit)