joshreynolds2

Member
Sep 19, 2021
16
2
3
Dayton
cPanel Access Level
Root Administrator
I am trying to enable Shell Exec () for software that I am using on my site but when I go to the PHP.ini file in WHM or through cPanel I don't find it by the disable_functions section where its supposed to be, how can I enable this option ? either through CLI or WHM/cPanel ?
 

PenguinInternet

Well-Known Member
PartnerNOC
Jun 20, 2007
196
27
78
Cardiff, UK
cPanel Access Level
DataCenter Provider
Twitter
Assuming that you don't have access to WHM and just have a hosting account, this is likely disabled by your host at the server level as it can pose a security issue, in which case you won't be able to enable it yourself and will need to speak to them about it
 
  • Like
Reactions: joshreynolds2

dolla_indra

Registered
Sep 20, 2020
4
1
78
Indonesia
cPanel Access Level
Root Administrator
Assuming that you don't have access to WHM and just have a hosting account, this is likely disabled by your host at the server level as it can pose a security issue, in which case you won't be able to enable it yourself and will need to speak to them about it
if i have access to whm and want to active only for one account, what sholud i do?
i am using cloudlinux 6 and whm 98.0.8

sorry @joshreynolds2 because comment here
 

quietFinn

Well-Known Member
Feb 4, 2006
2,041
551
493
Finland
cPanel Access Level
Root Administrator
I am trying to enable Shell Exec () for software that I am using on my site but when I go to the PHP.ini file in WHM or through cPanel I don't find it by the disable_functions section where its supposed to be, how can I enable this option ? either through CLI or WHM/cPanel ?
Go to WHM -> Software -> MultiPHP INI Editor,
there select Editor Mode, then select PHP version you want to change, it opens the config file for that version, then find the disable_functions line, remove shell_exec from that line and click Save.
 
  • Like
Reactions: joshreynolds2

joshreynolds2

Member
Sep 19, 2021
16
2
3
Dayton
cPanel Access Level
Root Administrator
I do have access , I am running my own server. but in the php.ini settings on line 304 theres nothing just the disable functions, but nothing next to it.
Assuming that you don't have access to WHM and just have a hosting account, this is likely disabled by your host at the server level as it can pose a security issue, in which case you won't be able to enable it yourself and will need to speak to them about it
 

joshreynolds2

Member
Sep 19, 2021
16
2
3
Dayton
cPanel Access Level
Root Administrator
Unfortunately its not located there somehow. Ill post a screen shot.

Go to WHM -> Software -> MultiPHP INI Editor,
there select Editor Mode, then select PHP version you want to change, it opens the config file for that version, then find the disable_functions line, remove shell_exec from that line and click Save.
 

Attachments

quietFinn

Well-Known Member
Feb 4, 2006
2,041
551
493
Finland
cPanel Access Level
Root Administrator