cgi-bin folder per-user folder


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web

Setup your Web server with PHP engine plus MySQL database connection is pretty easy and straightforward. I have done this many times. Usually when I am installing server, I just choose apache, php and mysql and later CentOS installer (or YUM) will add requires additional packages like php-mysql, etc and you can add more PHP modules later.

But this time, I got asked by my colleague to provide apache that can execute Perl script. Actually this pretty easy if he got root access to put this perl script on /cgi-bin/ ScriptAlias which located on /var/www/cgi-bin/. But then he only has user access and I have implement mod_userdir on apache, no way he can put his script on /var/www/cgi-bin/

So what I need to do is configure each users has a cgi-bin folder on their public_html, then they can put perl script there and execute it.

This setup requires and make sure you install them (I am not to describe how to install each of them)

  • Linux (I am still using CentOS - other distro should be fine)
  • Apache (default webserver package in CentOS) - the httpd.conf will be tweaked
  • perl (and its modules you need)
  • mod_perl (dont you forget this)

Okay, let's start!!



[ more.. ]


Page :  1