cgi-bin for WebServer/

Originally posted by zots
how can i configure my system for a cgi-bin in my webserver directory?

It's already there, just put your cgi's in the "CGI-Executables" folder, make sure to make them executable.
 
thank you for the help. i've decided i would rather use PHP and i did a test to echo a variable and it does not work. can someone explain how to set-up my webserver for PHP?
 
Its really simple..

What you have to do is to go to /etc/httpd/

then type: sudo pico ./httpd.conf

Then you have to take away the # characters on these:

#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

so they look like this:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Then it should be fine, PHP 4.

(don´t forgett to have the latest version of OS X)

- Mika
 
Then again, in an ironic (IMO) twist, I've found on some servers that you cannot run php scripts in the cgi-bin directory, nor serve html pages.

So if you are having trouble running php script, check the location first.

Mike
 
If you're using PHP exclusively, you shouldn't need the cgi-bin. Its only purpose is to segregate dangerous executables from the static code...but if no code is static, then hey!

Still, I keep all shared PHP code totally off-line, above the Documents dir (like /Library/WebServer/phplib). It just makes much more security sense.
 
Hi everbody

I was browsing your post regarding cgi, i found very usefull information. Thanks. I'd like to ask you a question related with cgi.

I am running Cumulus Web Publisher on classic mode and i have cgi installed in cgi-bin. But my cgi can not communicate with web publisher which is running on classic mode. Any suggestions?

Thanks
 
Interesting problem... I'm sure that there must be, though I admit I don't know or have heard of Cumulus Web Publisher.

What is it? I assume it is a wysiwyg editor?
 
Thanks for response.

Cumulus is a Media Asset Management Sytem. Cumulus Web Publisher is a CGI application designed for publishing and distributing media assets over the internet.

Web publisher serves as a communication channell between Cumulus server and the Web Server. Web Pub. server component, which manages the catalogs you want to publish and set of HTML templetes that Web Pub. uses to display results to the user, the CGI program, which serves as an interface between Web Pub. server component and Web Server Software (Apachi for me)
 
Thanks

I missed that FAQ, thanks.

What i reliaze (looks like i am re-inventing the wheel) if you try to access Appachi from classic mode using explorer, it is freezing the mac. So there is a bug, i hope it has been sorted out. (I am running Mac OS X 10.1.2.) I will try to find out if there is anything about this.

Thank you very much again. It was great help.

Sel:)
 
Back
Top