logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: [SOLVED] CGI not running under 2.4
Author
shawnhcorey



Joined: 23 Jan 2014
Posts: 2
Location: Canada

PostPosted: Thu 23 Jan '14 21:56    Post subject: [SOLVED] CGI not running under 2.4 Reply with quote

I've upgrade Apache to 2.4 and the CGI that worked under 2.2 are not working. Instead of executing the CGI, it just displays them.

Code:
$ uname -a
Linux sage 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ sudo apache2 -v
Server version: Apache/2.4.6 (Ubuntu)
Server built:   Dec  5 2013 18:32:22
$ cat /etc/apache2/conf-enabled/shawn.conf

# UserDir enabled shawn
#   to be symlinked in /etc/apache2/conf-enabled/

<Directory /home/shawn/public_html>
  AllowOverride None
  Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch +Includes
  AddHandler cgi-script .cgi .pl
  Order allow,deny
  Allow from all
</Directory>
$


Last edited by shawnhcorey on Tue 18 Feb '14 18:52; edited 1 time in total
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Thu 23 Jan '14 22:02    Post subject: Reply with quote

Do you use mod_access_compat? I see the Order allow,deny and Allow from all, You should upgrade that!

However the AddHandler cgi-script .cgi .pl is correct.
So if the .cgi or .pl script to 0777 for trial?

Did you enable mod_actions and mod_cgi ?
Back to top
shawnhcorey



Joined: 23 Jan 2014
Posts: 2
Location: Canada

PostPosted: Tue 18 Feb '14 18:54    Post subject: Reply with quote

I discovered I didn't add a module. This fixed it.

Code:
sudo a2enmod cgi
sudo service apache2 restart
Back to top


Reply to topic   Topic: [SOLVED] CGI not running under 2.4 View previous topic :: View next topic
Post new topic   Forum Index -> Apache