Skip to main content

How to edit virtualhost of a domain in WHM?

Comments

11 comments

  • vanessa
    I guess this would depend on whether you run PHP as DSO (mod_php) or CGI (CGI, FastCGI, SuPHP). You can only really alter this in the vhost config if PHP runs as DSO. To add configuration withing a vhost:
    0
  • cPanelMichael
    You may also want to let us know why exactly "shell_exec" is required in this situation. There may be alternatives to enabling this function that we can provide information about. Thank you.
    0
  • postcd
    [quote="vanessa, post: 1636531">If PHP runs in CGI mode, you'll need to create a local php.ini for the website and change it there.
    Yes, i have CGI, Apache SuExec, php5. I already tried to set disallowed functions php variable to be empty in the client domain php.ini but it did not disabled "exec" not shell_exec as i typed) I veriffied calling it from test .php file and it failed being disallowed. Any idea why protection was not disabled please?
    0
  • cPanelMichael
    Are you using Suhosin? If so, or even if you are not, you may find this thread helpful: Disabling PHP Functions when Suhosin is enabled Thank you.
    0
  • postcd
    Where is virtual section of the domain? Need to enable php function for one cpanel account. Strange i cant do this via WHM simply? here is some tutorial.
    0
  • cPanelMichael
    It was referenced earlier in this thread and is documented here: Changes Contained Within A VirtualHost Directive Thank you.
    0
  • postcd
    I already read and dont understand above mentioned configuration. Please read my previous post.
    0
  • cPanelMichael
    Please note the following part of the document: [QUOTE]The include directory structure is not created automatically. You will need to create and use the following file structures:
    Thank you.
    0
  • postcd
    I dont know which structures and why.
    0
  • postcd
    It just dont works. tutorial says: "Apache 2.2 without SSL " /usr/local/apache/conf/userdata/std/2_2/$user/$domain/$includename.conf" php -v returns "Apache/2.2.27" i have conf file in proper user folder, tried both /2/ and /2_2/ but none makes the function enabled after httpd restart
    0
  • cPanelMichael
    [quote="postcd, post: 1639091">It just dont works. tutorial says: "Apache 2.2 without SSL " /usr/local/apache/conf/userdata/std/2_2/$user/$domain/$includename.conf" php -v returns "Apache/2.2.27" i have conf file in proper user folder, tried both /2/ and /2_2/ but none makes the function enabled after httpd restart
    I see you have opened another thread for assistance with this issue. I am closing this one to avoid duplicate discussions on the same topic. Thank you.
    0

Please sign in to leave a comment.