Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2007
    Posts
    22
    Plugin Contributions
    2

    help question 500 Internal Server Error on Entire Site

    Hi all, I am getting a 500 error whenever I try to access any page on my site. The problem started Monday and wasn't there at all on Sunday. No changes have been made to the site between those times. The exact text of the error is

    "Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.42 Server at caroofikus.com Port 80

    I contacted my hosting company, LunarPages, to get the cause of the error and was informed that the log file states the following:
    [Mon Dec 6 13:48:50 2010] [alert] [client (IP)] (filepath)/public_html/.htaccess: Invalid command '

    Warning: Cannot modify header information - headers already sent by (output started at (filepath)/public_html/admin/zones.php:1) in (filepath)/public_html/admin/zones.php(11) : regexp code(1) : eval()'d code on line 721

    When I attempt to check these files, I find two things. First, there is no .htaccess in the folder stated. Second, line 721 does not exist in the zones.php file I have as it is only 12 lines long. I'm not certain what the ":1" or "(11)" mean after the file name, but no files exist with those name (only "zones.php").

    Also, when I originally installed my Zen Cart, I changed the name of my admin folder. It appears to be intact on the server, but like the rest of the site it is not accessible.

    I am currently using Zen Cart v1.3.9, unsure of which one, but certainly not the latest. I have installed the Google Feeder, Image Handler 2, and Product Info Display (Justified). I have not experienced any problems with these addons.

    Any help/suggestions you can provide would be greatly appreciated. I'm thinking that maybe I'm just missing the .htaccess main folder, but I couldn't fathom where it's gone.

    Thank you all in advance!

    ~~Caroofikus

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: 500 Internal Server Error on Entire Site

    I'm not certain what the ":1" or "(11)
    That is the line number and as line 1 it is most likely a corrupt upload

    https://www.zen-cart.com/tutorials/index.php?article=63
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: 500 Internal Server Error on Entire Site

    Add me to skype jake.nunka


    I can walk you through a solution.

  4. #4
    Join Date
    Jan 2007
    Posts
    22
    Plugin Contributions
    2

    Idea or Suggestion Re: 500 Internal Server Error on Entire Site

    kobra,

    Thank you for the fast reply. I had read the tutorial but couldn't make heads or tails of what my problem may be based upon the information. And, as it turns out, my .htaccess wasn't gone. It was a hidden file (something in the new cPanel I suppose).

    I was able to fix the problem by deleting the following code at the top of the .htaccess file:

    Code:
    <!----><br />
    <b>Warning</b>:  Cannot modify header information - 
    headers already sent by (output started at 
    (filepath)/public_html/admin/zones.php:1) in 
    <b>(filepath)/public_html/admin/zones.php(11) :
     regexp code(1) : eval()'d code</b> on line 
    <b>721</b><br />
    Any idea what may have caused it to appear, and, more importantly, how I may prevent that in the future?

    Thank you again.

    ~~Caroofikus

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: 500 Internal Server Error on Entire Site

    Any idea what may have caused it to appear, and, more importantly, how I may prevent that in the future?
    No clue as that is not a valid entry for htaccess
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Jan 2011
    Posts
    9
    Plugin Contributions
    5

    Default Re: 500 Internal Server Error on Entire Site

    Quote Originally Posted by Caroofikus View Post
    kobra,

    Thank you for the fast reply. I had read the tutorial but couldn't make heads or tails of what my problem may be based upon the information. And, as it turns out, my .htaccess wasn't gone. It was a hidden file (something in the new cPanel I suppose).

    I was able to fix the problem by deleting the following code at the top of the .htaccess file:

    Code:
    <!----><br />
    <b>Warning</b>:  Cannot modify header information - 
    headers already sent by (output started at 
    (filepath)/public_html/admin/zones.php:1) in 
    <b>(filepath)/public_html/admin/zones.php(11) :
     regexp code(1) : eval()'d code</b> on line 
    <b>721</b><br />
    Any idea what may have caused it to appear, and, more importantly, how I may prevent that in the future?

    Thank you again.

    ~~Caroofikus
    I have seen the htaccess automatically comment out certain commands that aren't valid and I have seen them logg errors that cause 500 internal server errors. Your server has write permissions to the htaccess. If there is a bug in the zones.php it could be logging that error in the htaccess file causing your site to be inoperable. The thing to do is to look at the zones.php and find the buggy section of the code that causes this Or replace it with an uncorrupted file as Kobra stated
    Last edited by jnunka; 3 Feb 2011 at 01:04 PM.

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: 500 Internal Server Error on Entire Site

    Anytime unauthorized changes have been made to an .htaccess file you should treat it has a hack attempt on your site. A well known .htaccess hack is to change the file so that anyone coming to your site from a Search Engine link is redirected to another site. By default, the .htaccess file permissions are 644. You can them to 444 and help to prevent unauthorized changes. Just remember to change permissions when 'you' want to add changes.

    Best to start checking your site for hacker files.

 

 

Similar Threads

  1. v151 Internal server error 500
    By carlman in forum General Questions
    Replies: 1
    Last Post: 27 Mar 2015, 01:45 PM
  2. Replies: 14
    Last Post: 2 Jan 2011, 11:13 PM
  3. Replies: 6
    Last Post: 9 Mar 2008, 08:05 AM
  4. 500 Internal Server Error
    By deanwj in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 29 Nov 2007, 05:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR