How to edit virtualhost of a domain in WHM?
Hello,
my aim is to allow shell_exec for one domain or one account.
adding directive into php.ini did not worked (which is good for security)
but whn removed shell_exec from disabled function in WHM PHP config. editor, the website still not work and shows its disabled..
So i found these guides:
they mention need to edit Virtual host of a domain, but im not able to find it via WHM nor via command line.
This folder contains not all domains folders, only a few:
/usr/local/apache/conf/userdata/std/2/
Please where i can (preferrably from WHM) edit certain domain virtual host file?
-
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 -
[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 -
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 -
It was referenced earlier in this thread and is documented here: Changes Contained Within A VirtualHost Directive Thank you. 0 -
I already read and dont understand above mentioned configuration. Please read my previous post. 0 -
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 -
I dont know which structures and why. 0 -
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 -
[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.
Comments
11 comments