Jump to content

Recommended Posts

Hey all,

 

So, I've had this Integrated Services system running off a laptop using WampServer, and it's time to move it onto the brand new server our organization just had donated to us. But, I'm running into an issue. Upon trying to access the system, I get a 500 Internal Server Error. The error log is telling me that sys_cpanel directory is missing in the cPanel account's and yet, I've NEVER heard about this directory before in the years I've worked with cPanel and webhosting. Continuing on, I checked to make sure the PHP alert (or PHP info or whatever it's called) setting is on in php.ini to push and errors to the page, and the only error coming through is The request could was not completed. The server met an unexpected condition. I found that upon removing the section of the script that includes the Membership and Membership Class files, and the Database file, including where it completes the login process, the page loads fine. And upon reapplying it, it pushes a 500 Internal Error. I have included links below to the PasteBin files for the following files, all permissions are set to 755:

Take care and thanks in advance to everyone who helps!

Link to comment
https://forums.phpfreaks.com/topic/274131-login-script-500-error/
Share on other sites

Assuming the 500 http response isn't due to a php syntax/parse error in your main file (edit: or something in a .htaccess file), you can set php's error_reporting/display_errors in your script and get any php detected errors to be displayed. Add the following two lines of code, immediately after the first opening <?php tag on the main page being requested -

 

ini_set("display_errors", "1");
error_reporting(-1);

Edited by PFMaBiSmAd

What does the error log for the web server say?

 

Also, have you tried creating the folder it's complaining about? Generally speaking, ignoring error messages isn't conductive to getting things to work. No matter how insignificant you may think said error message is.

This is the error log:

[Thu Feb 07 15:51:53 2013] [error] [client **.**.***.***] File does not exist: /home/isoub/public_html/sys_cpanel, referer: http://**.**.***.***/~isoub/login.php

 

I did some reading up on the sys_cpanel thing and it is usually because the mod_userdir security feature is enabled, and it was, but I disabled it, and still am getting a 500 error, but there is nothing going into the error log now.

Edited by neverforget98
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.