neverforget98 Posted February 7, 2013 Share Posted February 7, 2013 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: login.php membership.class.php membership.php Take care and thanks in advance to everyone who helps! Quote Link to comment https://forums.phpfreaks.com/topic/274131-login-script-500-error/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 7, 2013 Share Posted February 7, 2013 (edited) 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 February 7, 2013 by PFMaBiSmAd Quote Link to comment https://forums.phpfreaks.com/topic/274131-login-script-500-error/#findComment-1410609 Share on other sites More sharing options...
neverforget98 Posted February 7, 2013 Author Share Posted February 7, 2013 I attempted this and I am still getting the same thing, no errors being displayed besides the request was not completed. Quote Link to comment https://forums.phpfreaks.com/topic/274131-login-script-500-error/#findComment-1410635 Share on other sites More sharing options...
Christian F. Posted February 7, 2013 Share Posted February 7, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/274131-login-script-500-error/#findComment-1410753 Share on other sites More sharing options...
neverforget98 Posted February 7, 2013 Author Share Posted February 7, 2013 (edited) 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 February 7, 2013 by neverforget98 Quote Link to comment https://forums.phpfreaks.com/topic/274131-login-script-500-error/#findComment-1410820 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.