Solved

How do I include information about the error on the 500.shtml page on an apache server so I can see what the error is?

Posted on 2010-09-09
7
390 Views
Last Modified: 2012-05-10
I have a cgi script that has vbeen running just fine on my client's apache server. I am a developer working on the scripts. today the script is erroring out with a standard error page and I can't tell why. I restored a formerly working backup copy, and it does not work. I then delteted everything except Print "Hello World", and that doesn't work!\

So, something is going on with the server, I guess, or I triggered some anti-malware code and all my scripts are disabled. I don't know.

What i would like is to know what the error actually is. When I access the error log in cPanel, I get nothing. Well, this is what I get:L

[Thu Sep 09 20:37:56 2010] [client 74.76.45.211] File does not exist: /home/healsrev/public_html/500.shtml, referer: http://www.healsreview.com/NewAuthTest.html

I think the file that didn't exist was 500.shtml. But now that I have created that file, I get that page when I run the script, as expected.

So, my question is: How do I get the error page to include the error information? Is this possible? What other error log could I look at?
0
Comment
Question by:jkurant
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 

Author Comment

by:jkurant
ID: 33643181
I now know that the file that didn't exist, as shown in the error log, was a file linked on the error page. with that fixed, the scripts still do not run and do not write anything to the log. i think my scripts are just disabled somehow, but i can't find anything in cPanel to change that might fix it.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 33643606
I don't think it's possible.  I went looking all thru the Apache docs online today for another question and all they say about errors is that you can change the error message page.  I don't have a site with Cpanel right now so I can't check.  Are you able to set or check permissions for the 'cgi' directory from cpanel?
0
 
LVL 6

Expert Comment

by:DalHorinek
ID: 33645155
Check how your LogLevel is set, it should be at least

LogLevel error

If it won't do anything, try the debug one
http://httpd.apache.org/docs/2.2/mod/core.html#loglevel
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

Author Comment

by:jkurant
ID: 33646574
I was afraid it might not be possible, DaveBaldwin. The only access I have to the server is via cPanel.

In fact, I have found out what was the problem. The scrips lost their execute permissions and I had to have the server admins use "chmod 755" the scripts. The problem is that I am using Microsoft Visual Studio 2010 or even FrontPage to edit the website and these tools don't seem to know anything about file permissions. I cannot set the execute permission, as with chmod, from these tools.

Does anyone know of a good tool for editing files on an apache server with the ability to set the unix permissions? Really, all I need is to be able to set the permissions of the files on the server when they somehow get changed. I wonder if I could ftp into the server and change the permissions using WinFTP? (I am running Windows 7). Does anyone know how to set these permissions using cPanel or any other way?
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 33647867
I not surprised that VS and FP can't change permissions since you can't do that 'remotely' on Microsoft IIS.  I use CuteFTP for file transfer and setting permissions on Linux/Unix servers.  Some Control Panels have a File Manager or Web-based FTP in them.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 33647896
Sorry, that should have been CoreFTP.  Filezilla is another popular FTP program.
0
 

Author Closing Comment

by:jkurant
ID: 33647904
Ah ha! So that's what cPanel means: Control Panel.  I will get CuteFTP and use that to change the permissions. Thanks.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question