Suexec issue
I just install apache on my server.
I also installed suexec. But when i run command suexec -v output of this command is: suexec policy violation: see suexec log for more details and output of suexec error log is: [2011-12-19 08:42:59]: too few arguments. What is the problem can anyt one help me? I install apache with following command: yum install httpd-devel. |
Hi and welcome to LQ
You have to use the capital "V": Code:
suexec -V |
Can you tell me how to change the AP_DOC_ROOT
|
Quote:
You can use google to search how it's done for your distro Regards |
Thanks for your help.
But i don't want to compile apache. So i cant give the path at the compile time. Do you any alternative to change doc_root manually. |
No you can't.
While you can change the apache docroot from httpd.conf, it's not possible to do the same with suexec as it's hardcoded into it. But you can use the homedir as an alternative if you want Regards |
Thanks.
Do you know apache configuration to support perl script(with suexec user group). I tried but always gives the error that cmd is not in doc root. |
Quote:
Or you should create a new cgi-bin (or whatever you want to call it) directory under the apache docroot, configure apache to execute scripts from that directory, use 755 attributes (or else suexec will complain) and test. Regards |
Yes I am trying using ~/public_html/cgi-bin to install movable type script
But when I access the mt.cgi page it shows entire code of mt.cgi instead of it is acctuall output. I have given the permission 0755 to that folder. In that I run php file it work fine. |
You need to tell apache to execute scripts from that directory
Code:
<Directory /home/*/public_html/cgi-bin> |
Thanks a lot.
It works i just have to add php handler to ron php file. |
All times are GMT -5. The time now is 04:28 AM. |