WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Server error (11 posts)

  1. annu.rigved@gmail.com
    Member
    Posted 1 year ago #

    The website encountered an error while retrieving http://mandir.co/. It may be down for maintenance or configured incorrectly.

    Here are some suggestions:
    Reload this webpage later.

    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

    this problem is coming in my website, and can't figure out why ?
    Please help.
    Thank you

  2. xlancealotx
    Member
    Posted 1 year ago #

    500 has a bunch of reasons, do you have access to the weblogs?

    If so, post the last few entries in the server's/websites -error.log and that will be a huge help.

  3. annu.rigved@gmail.com
    Member
    Posted 1 year ago #

    My website is hosted on Amazon cloud service. Where can I find weblogs ?

  4. xlancealotx
    Member
    Posted 1 year ago #

    in linux you can ssh into the server using any ssh client and the pem security file. From there, you can do the following;

    sudo su
    cd /var/log/apache2
    ls -l |grep error

    (that will show you all your error files). Not sure if there broken by host name, etc. Once you know what file you want, you can do;

    tail -n 20 filename and it will spit out a bunch of stuff.

    Now on Windows, simply RDP into the box, goto windows explorer, navigate to the IIS logs and take the latest one. Haven't used windows in a while, but normally there under c:\inetpub\logs\logfiles. From there you may have a few folders based on how many vhosts you have, but look around in there, you will find them.

    That should be enough to get you started ...

  5. annu.rigved@gmail.com
    Member
    Posted 1 year ago #

    Yeah I have SSH access. Let me try this out.

  6. annu.rigved@gmail.com
    Member
    Posted 1 year ago #

    Yeah, I got all the error log files on SSH client, now what should be my next step, Please ? Shall I remove these files or what ?

  7. xlancealotx
    Member
    Posted 1 year ago #

    since you have access to the box, I would simply do this. Goto the apache2 log folder.

    Type tail -f *error*. That will show a few things, hit enter a few times to clear the screen a bit.

    Then in a browser, hit that URL. Something should be written to that error log immediately with your IP, the time and the error. You could also look at the other error logs you have there, but might as well start with the current one.

    Post back the error and we can probably get it fixed once we know what's wrong.

  8. annu.rigved@gmail.com
    Member
    Posted 1 year ago #

    Yeah, I got the error. There was something "<" in my function.php file in line 236, it showed me this. let me fix this first.
    If it doesn't work, will get back to you.

    Thank you so much buddy.. :)

  9. xlancealotx
    Member
    Posted 1 year ago #

    Cool. .. Glad things worked out.

  10. annu.rigved@gmail.com
    Member
    Posted 1 year ago #

    It works..
    Thank you.. :)

  11. xlancealotx
    Member
    Posted 1 year ago #

    Great ... have a good one :)

Topic Closed

This topic has been closed to new replies.

About this Topic