Support Central » Knowledgebase » Knowledgebase Article Not logged in. Login
 
Announcements

Knowledge Base

Submit a Ticket

Client Login
Article » [How to] fix ini_set() has been disabled for security reasons

Rating:
Was this article helpful? YES NO MODERATELY
Views: 1737
Printable Version


1. Create php.ini file inside your public_html folder, OR the folder in which you have installed your script, and paste the following code into it:

__________________________________________
disable_functions = allow_url_fopen, escapeshellarg, escapeshellcmd, ini_alter, passthru, parse_ini_file, popen, proc_open, proc_close, proc_terminate, proc_get_status, proc_nice, readfile, show_source, system<hr>
__________________________________________If you already have the disable_functions line, just append the code to match what is above.

2. Open .htaccess file inside your public_html folder and append the following line:
__________________________________________
suPHP_ConfigPath /home/username/public_html/<hr>
__________________________________________where username is your Cpanel username. In case you don't have .htaccess file there, you need to create it.

The most popular and easy ways to create/edit files inside your account are FTP clients or Cpanel File Manager.

http://forums.glowhost.com/knowledge-base/how-create-edit-htaccess-file-2589.html
http://forums.glowhost.com/knowledge-base/how-create-edit-php-ini-file-2590.html
http://forums.glowhost.com/knowledge-base/how-load-php-ini-recursively-all-subfolders-2581.html


Hope it helps.

Follow-up and discuss this topic in our forums
Help Desk Powered By ProSupport v0.9.1