cgi-bin

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
KinetiX
Forum Newbie
Posts: 6
Joined: Thu Oct 04, 2007 2:18 pm

cgi-bin

Post 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..
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post 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?
KinetiX
Forum Newbie
Posts: 6
Joined: Thu Oct 04, 2007 2:18 pm

Post 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
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post 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
There are 10 types of people in this world, those who understand binary and those who don't
KinetiX
Forum Newbie
Posts: 6
Joined: Thu Oct 04, 2007 2:18 pm

Post 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...
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post 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
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply