Web Hosting Talk







View Full Version : How to create a cgi-bin on a Raq3


ML2008
06-10-2001, 08:31 AM
How can I create a cgi-bin on a Raq3, can I also create a cgi-bin that all the domains on the server can access?

Chicken
06-10-2001, 01:17 PM
You don't need a cgi-bin per se, as you can run scripts in any directory. you can however create a folder called 'cgi-bin' if it makes you feel better :)

The universal bin has been discussed before but Mike posted this way a bit ago...


via telnet as admin

mkdir /home/sites/home/web/cgi-pub/

chmod 755 /home/sites/home/web/cgi-pub/

Change to root (su -)

edit /etc/httpd/conf/httpd.conf with your favorite text editor

add this line anywhere in there:
ScriptAlias /cgi-pub/ /home/sites/home/web/cgi-pub/

then type: /etc/rc.d/init.d/httpd restart

Any scripts you want to allow other users to add must be uploaded as admin.

ML2008
06-11-2001, 10:25 PM
Thanks. But is there an easier way to do it by FTP ?

Chicken
06-11-2001, 10:50 PM
Nope, and I don't think you could ask for anything easier than a step by step, line by line guide like the one above. If you are afraid of screwing something up, you either have to dive into the deep end of the pool, or just don't do it.