cgi with apache

They have: 426 posts

Joined: Feb 2005

I have installed php dev, but i want to allow for me to use cgi programs (i have a cgi scritp i want to test) How can i activate my server to allow this to happen?

Thanks.

They have: 14 posts

Joined: Dec 2005

assuming your apache install has cgi support...

you'll need a line in your apache conf (httpd.conf, or whatever your distro uses) that looks something similar to: ScriptAlias /cgi-bin/ /var/www/cgi-bin/

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Are you talking about your own personal server, or one you're paying someone else to use?

They have: 426 posts

Joined: Feb 2005

Hi, yes i have installed phpdev on my computer and added the pearl add-on. When i launch apache it does tell me however that pearl is running.

I have checked the shebang path and looks ok, although should it say localhost, or full path to pearl (c:\..etc)

Thanks for the reply.

They have: 14 posts

Joined: Dec 2005

so usually there is one particular directory where cgi scripts are allowed to execute from. you'll want to check your configuration for where this is (or add it if it's not there)

apache has a help tutorial on this - http://httpd.apache.org/docs/2.0/howto/cgi.html

They have: 426 posts

Joined: Feb 2005

Thanks for your help! Will have a read up.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.