• I was working in this wordpress install customizing a child theme when suddenly after I uploadad via FTP a css file, I got this error message:

    Internal Server Error

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

    Please contact the server administrator, root@localhost 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.
    Apache/2.2.3 (CentOS) Server at blog.xxxxx.com Port 80

    The error log via SSH i got is the following:

    [root@web1 logs]# tail -f error_log
    [Thu Dec 19 11:53:49 2013] [error] [client xx.xxx.xx.xx] Premature end of script headers: index.php
    [Thu Dec 19 11:54:18 2013] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
    [Thu Dec 19 11:54:18 2013] [error] [client xx.xxx.xx.xx] Premature end of script headers: index.php
    [Thu Dec 19 11:54:19 2013] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
    [Thu Dec 19 11:54:19 2013] [error] [client xx.xxx.xx.xx] Premature end of script headers: index.php
    [Thu Dec 19 11:54:27 2013] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
    [Thu Dec 19 11:54:27 2013] [error] [client xx.xxx.xx.xx] Premature end of script headers: index.php
    [Thu Dec 19 11:55:24 2013] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
    [Thu Dec 19 11:55:24 2013] [error] [client xx.xxx.xx.xx] Premature end of script headers: index.php
    [Thu Dec 19 11:55:25 2013] [error] [client xx.xxx.xx.xx] File does not exist: /home/xxxxxx/public_html/favicon.ico

    Chrome shows something strange:
    Could it be that the website has been hacked??? When I try to pen it with Chrome in the status bar in the bottom of the browser I can see a long list of suspicious URLs that appear and change very fast.

    This is the url
    http://goo.gl/LuITpI

    The cloud hosted server lacks of tech support to solve the problem and I’ve been hours wondering around the net to solve it , without success… Re uploaded wp files, deleted .httaccess, plugins are all removed, themes that I was using removed, but can’t fix it…

    According to the little support “it’s a php issue” and “[Support] Oh your index.php file doesnt have a full script in the headers. [Support] From that error there is a script in the header of that file and it’s incomplete.”

    But I re-uploaded the index.php file and nothing changed…
    (Before I re uploaded i checked Inside of the file and both had the same content and Kb size)

    Pleeease help meee!!

    It is hacked? what can I do?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Try:
    – switching to the default theme by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    resetting the plugins folder by FTP or phpMyAdmin.

    Thread Starter gaucho code

    (@glowzar)

    Hi Esmi, thanks for your help. I tried both things…
    Doesnt come back… i’mv very worried, it was working everything smooth until this problem arised just by uploading a CSS file 🙁

    What else do you suggest?

    Kind regards

    Try re-uploading all files & folders – except the root wp-config.php & .htaccess files and the the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    Thread Starter gaucho code

    (@glowzar)

    I cannot figure out what is going on…
    If I try to enter a HTML file it works.
    but PHP files dont work. /wp-admin doesnt work either… 🙁

    Look the screenshot where I show this “not normal” behavior while loading the index.php file in the status bar some strange attempts to load something – i dont understand what is this-

    Link to screenshot of the strange problem

    anyone can help to understand the situation?
    Many thanks!!!

    this might be a clue?

    Thread Starter gaucho code

    (@glowzar)

    Tried what you recommended before my last post, but no positive results. everything is the same. 🙁 I’ve scanned the website with no results.

    Talk to your host. I’ve seen this problem many times, but it often happens when an error log gets so fat it takes up too much space. This is actually pretty common on shared hosting. The issue may not even be your site, it might be another site on shared hosting (if that is what you are using).

    When you see an error like this, it is always a good idea to involve your host’s tech support on the fix. In the past when I’ve had it, they needed to go into the server and do nothing more exciting than clear a cache out.

    I know how said that the company lacks tech support, but I don’t really see anyway around it unless you have full access to the server itself (since the issue might not be you to begin with).

    You could also check the size of the error logs and cache fails that are available to you via FTP or cPanel and empty them (or at least reduce them) if they are large.

    Thread Starter gaucho code

    (@glowzar)

    There is no Cpanel or support… it’s a rackspace cloud server shared with another domain that works Ok. I have root access via SSH/putty but I’m not an specialist. I can learn, but i’m stuck. what do you recommend to empty the cache via SSH?

    Thread Starter gaucho code

    (@glowzar)

    I did a check of the log folder size, it’s only 1.3 mb.

    [root@web1 xxxxxxx]# du -sh *
    4.0K cgi-bin
    52K etc
    8.0K fcgi-bin
    4.0K homes
    1.3M logs
    139M Maildir
    99M public_html
    4.0K tmp

    I feel kinda hopeless…

    HTML files work, but not PHP… 🙁 thanks for your help, please shot any other idea so I can try , many thanks!!

    Doesn’t Rackspace provide tech support? I thought that was part of their service that they are so proud of.

    Try re-installing WordPress from a fresh download. On the server keep wp-content, your htaccess file and your wp-config file intact. Replace everything else. Delete everything first, then reupload. The techinique I use to do this is to download a fresh version of WP, extract it on my local computer, remove the wp-content folder, and the wp-config-sample.php, rezip it and then upload the compressed file to my server and extract it there. Uploading the zipped file is faster than uploading an umcompressed file directory.

    Then, ensure that your plugins folder is deactivated by changing the name to something like /plugins-hold/. Try loading the site. In doing so, you will be loading the site with only WordPress Core and whatever theme you have activated (by changing the name of the plugins folder, WP won’t load the plugins because it can’t find them).

    If it loads, then change the plugin folder name back and start reactivating your plugins one at a time. This might fix your issue, it might not, but at least you are moving another really solid step through the trouble shooting process.

    Thread Starter gaucho code

    (@glowzar)

    Thanks Prometheus. I will post updates soon.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Sudden Internal server error 500’ is closed to new replies.