Page 1 of 1
cgi-bin
Posted: Sat Oct 06, 2007 1:29 pm
by KinetiX
How to set the server to make the ScriptAlias directory to :/home/user/public_html/cgi-bin each time i add a domain ?
for example from my domain the site can`t execute files in:
http://domain.com/cgi-bin/file.pl
it sais that there is no such file there
you can check at:
Code: Select all
http://doothething.com/cgi-bin/uber_uploader.pl?cmd=debug
wich sould display some settings but not working..
Posted: Sat Oct 06, 2007 4:24 pm
by neophyte
Setting up PHP as CGI is not fun. I've set it up a time or two. Luckily I rarely need it. What does your apache set up look like?
Posted: Sat Oct 06, 2007 4:27 pm
by KinetiX
Code: Select all
#
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
#
# "/usr/local/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>
# End of aliases.
this is the cgi-bin part in httpd.conf
Posted: Sun Oct 07, 2007 4:28 am
by VladSun
@neophyte - KinetiX didn't say that he wanted to run PHP as CGI
KinetiX: I think you need this:
Dynamically configured mass virtual hosting
Posted: Sun Oct 07, 2007 5:06 am
by KinetiX
i read it..didn`t understood to much...
i`l need so that ScriptAlias is set to something like /home/*/public_html/cgi-bin/ each time i add a domain from WHM...
Posted: Sun Oct 07, 2007 5:16 am
by VladSun
Did you try any of the examples?
You can find more of them at
http://httpd.apache.org/docs/2.2/mod/mo ... alias.html