PHP.ini

zoom

Account Disabled
Hi could anyone tell me how to arrive to php.ini via whm cpanel?

I want to enable exec and shell_exec in whm cpanel please provide full path:smash:
 
If you have root access to the server you can likely use the path of /usr/lib/php.ini to modify the main system php.ini file.

From inside WHM, as long as you are logged in as the root user and not a reseller account, you can use the PHP Configuration Editor from under the Service Configuration section to modify the system php.ini file.
 
Ye I have that thank you and have used php config editor but I can not find there where to enable exec and shell_exec do you know the path?
 
Why do you want it enabled?

Having that enabled is an absolute gaping security hole, your server can and will be compromised extremely fast.
 
thankis dougy ,I have seen disable_functions on php config and it can be setted to on off mode but I havent seen there how you enable exec and shell_exec

oh ye dougy well I want to enable exec and shell_exec for whmcs status server purpuses since the green circle in uptime dont appear
 
If your site is running in cgi mode, I think you can put a custom php.ini within you sites public_html directory.

You may also want to try to enable this using a php_admin_flag setting in your .htaccess. This way you can keep it off at the server level.
 
If your site is running in cgi mode, I think you can put a custom php.ini within you sites public_html directory.

You may also want to try to enable this using a php_admin_flag setting in your .htaccess. This way you can keep it off at the server level.

This is about the best suggestion you will get, I'd go with it! :thumbup:
 
Ye because if I enable in server is like Im a hole,well then I first must learn how to put php.ini in my public_html,
could you give me the incentives brother?
first i dunno how
you say is in ht access can you provide path and instructions brother well THANK YOU vary vary much brother
 
Ye because if I enable in server is like Im a hole,well then I first must learn how to put php.ini in my public_html,
could you give me the incentives brother?
first i dunno how
you say is in ht access can you provide path and instructions brother well THANK YOU vary vary much brother

If you have ssh, try: cp /usr/local/lib/php.ini ~/public_html/php.ini

Then edit that file
 
yes dougy thank you brother but couldnt you provide the full path to put php.ini in my public_htm via ht access using whm or cpanel instead of ssh?
 
Im thinking in solving this via ht access but not ssh so Im in a shiverin pit right know you know and I might close this thread to solve things diferently thank you
 
Im thinking in solving this via ht access but not ssh so Im in a shiverin pit right know you know and I might close this thread to solve things diferently thank you
 
Back
Top