500 Internal Server Error

Discussion in 'Troubleshooting' started by molish, Mar 9, 2004.

Thread Status:
Not open for further replies.
  1. molish

    molish Guest

    I have tried installing the aMember Pro script myself and I have also asked CGI-Central to install it.

    However there is a problem with the installation.

    Upon accessing the setup.php script, a 500 Internal Server Error occurrs.

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

    CGI-Central said to contact my hosting provider and ask why it was happening.

    My host is telling me that the script is not configured correctly for the my server.

    CGI-Central tells me that there is no error in the script and that I should consider changing hosting providers.

    Again my host is telling me that there should be installation support from CGI-Central and that they should be able to reconfigure the script so that it will work on their servers.

    Please help! I've got no idea what I'm doing here. I've paid for my hosting and it is non-refundable. This is the first problem I have encountered with my host since I signed up at the beginning of the year - everything else has been fantastic.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Molish,
    I really don't understand how we can help while it is a problem with your host. I uploaded the following php script to your hosting:
    PHP:
    <? phpinfo(); ?>
    and it results to 500 error! I'm not asking your hosting to do anything, I ask them for a simple thing: go to Apache error log and find out corresponding error message!

    Have you any other PHP scripts running on this host? Why are you so sure that it is script and not hosting problem? Why do you believe into your hosting and not believe to the script and our support team?

    And finally, what is the hosting name?
  3. molish

    molish Guest

    Alex,

    I'm just trying to find out what the problem is. I have asked my hosting provider for the informatio that you require on the 1.php file. I am awaiting their response.

    It is not that I believe either the hosting provider or the script over the other. I'm just trying to find out what the problem is and why it is happening.
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    I'll bet that after their investigation they will be silent about "bugs in the script" and we will not see 500 errors anymore ;))
  5. molish

    molish Guest

    We can only hope
  6. molish

    molish Guest

    Error Log

    Heya Alex,

    I've searched through my server and managed to find an error log file.

    I have attached it so I hope it is of some use to you.
  7. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Error is
    Premature end of script headers: /home/virtual/site160/fst/var/www/interpreters/php-script

    Any comments from your hosting? Are they able to find any "bugs" in my one-line script (phpinfo)?

    And, I will ask again - have you any PHP scripts working on this hosting?
  8. molish

    molish Guest

    No comments from my hosting provider as yet.

    And I do not have any other scripts running on this server. I managed to get the setup.php file to work once - but upon hitting 'submit' I got the same 500 internal server error.

    That error has been appearing ever since
  9. molish

    molish Guest

    This just in from my hosting provider:

    Please make sure your permissions on each script is correct and also the headers in the script is correct.
  10. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    I don't understand - what are "correct permissions" ? From my point of view permissions are already quite correct.

    Could they upload and show us at least one (just ANY) working PHP script in your account? So we will have an example of "correct permissions" and so on.
  11. molish

    molish Guest

    I've just received this from my server's support forums:

    your syntax it wrong it should be <?php phpinfo();?>

    http://www.tvsched.com/misc/test.php

    mind you my site is not on one of these apache servers that everyone else seems to be on.

    i think you will find that the use of asp style taging is off, which means every PHP codeblock needs to be started with a <?php rather than the <? you used

    its good coding at any rate. the <?PHP codeblock start will work on any php enabled server, while the other relise on asp style taging to be enabled.


    So what do I do now?
  12. molish

    molish Guest

    This is weird

    I've uploaded a modified php info script that reads:

    <?php phpinfo(); ?>

    I uploaded this file to two locations on my server.

    Firstly, to:
    www.frontrowcomedy.com.au/1.php

    secondly to:
    www.frontrowcomedy.com.au/amember/1.php

    When going to the initial file (www.frontrowcomedy.com.au/1.php) it works correctly. I receive a reasonably long readout of the phpinfo on my server.

    However when accessing the same script from the second place (in the amember directory) I get the internal server error. The permissions for both locations of the script are the same (755). In fact the only thing that is different about each script is that they are in a different location. The second script which is an exact duplicate of the first is in a subdirectory.

    Why is the script working in the
    /var/www/html/ directory but not the /var/www/html/amember subdirectory?
  13. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It was permissions problem - strange server config, I have to say...
Thread Status:
Not open for further replies.

Share This Page