cgi with apache
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.
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.
lamad posted this at 15:50 — 2nd December 2005.
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 posted this at 16:23 — 2nd December 2005.
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?
benf posted this at 13:47 — 4th December 2005.
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.
Good Value Professional VPS Hosting
lamad posted this at 09:09 — 5th December 2005.
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
benf posted this at 14:01 — 5th December 2005.
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.