473,383 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

CGI scripts are not working. Getting failed with Internal Server Error

1
Errors in error log are:

[Mon Dec 31 13:22:31 2012] [error] [client 57.219.108.65] (13)Permission denied: exec of '/var/www/cgi-bin/first.cgi' failed
[Mon Dec 31 13:22:31 2012] [error] [client 57.219.108.65] Premature end of script headers: first.cgi

Script is working fine when tried to execute manually using perl interpreter.

It has 755 permission as well.

SELinux is disabled.

Apache settings

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

Expand|Select|Wrap|Line Numbers
  1. <Directory "/var/www/cgi-bin">
  2. AllowOverride None
  3. Options +ExecCGI
  4. Order allow,deny
  5. Allow from all
  6. </Directory>
Below are version details:

[root@atl-mc-vjb002 logs]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

[root@atl-mc-vjb002 logs]# httpd -version
Server version: Apache/2.2.3
Server built: Feb 22 2012 10:54:44
[root@atl-mc-vjb002 logs]# perl -v

This is perl, v5.8.8 built for x86_64-linux-thread-multi


[root@atl-mc-vjb002 logs]# sestatus
SELinux status: disabled
I have tried disabling suexec as well but it also did not help.

Same cgi page is working fine on other server.
Dec 31 '12 #1
1 2904
Luuk
1,047 Expert 1GB
[quoot]Script is working fine when tried to execute manually using perl interpreter. [/quoot]

Did you try that under the same user as the owner of the apache process?
Feb 9 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Ben | last post by:
hi when I try to excecute an ASP (either JS or VB) script to say, access a database record, I get an Internal Server Error HTTP 500.100 Why? and HOW CAN I FIX THIS? Thanks
0
by: quitaxe | last post by:
hi i have tomcat 3.3,jdk1.4 setup and running perfectly on my win 98 pc.i have tried to install apache cocoon on this but have failed.i'm getting the following error when i startup tomcat(after it...
1
by: vighneswar | last post by:
Hi All I am working on a project in which i have to upload files to an remote server via HTTPS. For that i have written the following lines of code,but when i execute it I am getting an HTTP:500...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
4
by: Terry | last post by:
Hello, I am trying to get a response for an .aspx page in my current project (same virtual directory) by using WebRequest.GetResponse but I keep getting a exception with "500 Internal server...
4
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and...
11
by: Lieven | last post by:
Hey, I had a hard disc problem last week on my server. I replaced the disc and copied al the files to the new hard disc, everything works fine again except some php scripts that are using the...
1
by: BethH | last post by:
Hello! I'm developing a webpage locally. I originally started it on PHP 5 and XP (where it was working). We've recently changed my machine to a dual boot with most of the important stuff on...
2
by: pedalpete | last post by:
Hey All, Yesterday I had this error pop up on my production server. Strangely, I haven't made any changes to the server. The error is Warning: file(filename):failed to open stream:HTTP...
3
by: guillaume.braux | last post by:
Hello, I am running WS2008 + IIS7 + FASTCGI + ZendCore. I have not modified the default ZendCore php.ini configuration file. Actualy, any kind of PHP error, warning or notice gives me...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.