cgi script not working for all the users

activa

Well-Known Member
May 23, 2006
213
1
168
Morocco
cPanel Access Level
Root Administrator
Hello

i have find that all the custom cgi script not working in the users website . (not cpanel cgi script) , in the error log i found

Code:
script not found or unable to stat: /usr/local/apache/cgi-bin/test.cgi
the script is placed in the user directory /home/xxxxx/public_html/cgi-bin/test.cgi

in my httpd config i found

Code:
<IfModule alias_module>
    ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
</IfModule>
i have already cgi previlige added for the account .

from where the probleme ?
 

activa

Well-Known Member
May 23, 2006
213
1
168
Morocco
cPanel Access Level
Root Administrator
i have added this line in the http config for the directive of the user and it work now


Code:
ScriptAlias /cgi-bin/ /home/xxxxxx/public_html/cgi-bin/
i should add this line for every account manually ?
 

Aldweb

Well-Known Member
Feb 18, 2004
66
0
156
I'm having the same problem. I added in httpd.conf, the following domain settings:

<IfModule alias_module>
ScriptAlias /cgi-bin/ /home/amazonli/www/cgi-bin/

</IfModule>

It works, but when I upgrade the apache's httpd.conf configuration disappears. Would any way to fix this problem, because several times a week, I have to return the alias.

Thanks
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
Hello,

Do you have CGI enabled for the particular user? Naviagte to modify account >> select the particular user and you can see a "CGI check box", which will disbale / enable CGI for that user.

Thank you.
 
  • Like
Reactions: Takito