Running PHP from cgi-bin

For reading php script inside cgi-bin.

==========

AllowOverride All
Options FollowSymLinks ExecCGI
Order allow,deny
Allow from all

==========

Add the above entries in you apache virtual host entry and also change ‘ScriptAlias’ to ‘Alias’ for cgi-bin in your virtual host.

Alias “/cgi-bin” “/user/*/public_html/cgi-bin/”

Also Please make sure to add AddHandler in httpd.conf

AddHandler cgi-script .cgi .pl .plx .ppl .perl

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: