Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

500 Internal Server Error - When accessing admin page


  • You cannot reply to this topic
12 replies to this topic

#1 johnwvg

  • Community Member
  • 29 posts
  • Real Name:John Walter

Posted 15 September 2008, 15:30

I need some help. I moved servers recently and have everthing working nicely EXCEPT my admin panel I can't log into. I go to www.mystore.com/catalog/admin and type in my username and password just to get this error:

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

Please contact the server administrator, webmaster@airlessusa.com 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.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
-------------------------------------

and thats it. :-( So I checked my server's log for any error's recently and here's the only error's I can find:

Route segment ":name" cannot be optional because it precedes a required segment. This segment will be required.
Route segment ":userID" cannot be optional because it precedes a required segment. This segment will be required.
Route segment ":token" cannot be optional because it precedes a required segment. This segment will be required.

Can anyone help me make sense of this? And any ideas on a possible solution? Thanks so much for any help you can provide.

#2 web-project

  • Community Member
  • 4,310 posts
  • Real Name:Alex
  • Gender:Male
  • Location:Hertfordshire, UK

Posted 15 September 2008, 18:11

can be incorrect chmod/permission files set...
Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!
8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.
Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.
Any issues with oscommerce, I am here to help you.

#3 johnwvg

  • Community Member
  • 29 posts
  • Real Name:John Walter

Posted 16 September 2008, 04:01

On which file?

#4 johnwvg

  • Community Member
  • 29 posts
  • Real Name:John Walter

Posted 16 September 2008, 23:01

Anyone have any input on this? Is it a chmod/permissions issue? If so, what file(s) would it be that I need to modify.

Any other ideas as to what it could be? Please, I'm starting to pull my hair out on this issue. Thanks for any advice ANYONE can give me.

John

#5 Vger

  • Community Member
  • 16,978 posts
  • Real Name:R Anthony
  • Gender:Not Telling

Posted 16 September 2008, 23:09

I'm guessing that you have an old .htaccess file in the 'admin' folder of your site which was used to password protect the admin folder on the old server your site was on, and that this is what is causing the Internal Server error.

Go to your web hosting control panel and use the Password Protect or Directory Protect link to apply new password protection to your 'admin' folder and it should overwrite any old .htaccess file.

Vger

#6 johnwvg

  • Community Member
  • 29 posts
  • Real Name:John Walter

Posted 17 September 2008, 01:44

Hey thank you so much! That was it. I re-did the .htaccess file through the use of my hosting providers utilities and it worked great. Thank you! You solved my headache, you're like a little Asprin pill. B)

#7 mafadmin

  • Community Member
  • 11 posts
  • Real Name:Lance Olenik
  • Gender:Male
  • Location:Nampa, ID

Posted 01 October 2008, 17:38

View PostVger, on Sep 16 2008, 05:09 PM, said:

I'm guessing that you have an old .htaccess file in the 'admin' folder of your site which was used to password protect the admin folder on the old server your site was on, and that this is what is causing the Internal Server error.

Go to your web hosting control panel and use the Password Protect or Directory Protect link to apply new password protection to your 'admin' folder and it should overwrite any old .htaccess file.

Vger

This did not work for me. All I get is a blank white page when I go to my admin (www.mafgiftshop.org/admin). When I view the source I see the 500 error. Any thoughts?

I've gone through my CPanel and added password protection. I've also deleted the .htaccess file altogether. Nothing works. (FYI, I've restored the .htaccess file). Thanks for any help you can offer.

#8 dubz99

  • Community Member
  • 44 posts
  • Real Name:dub

Posted 01 October 2008, 18:10

View Postmafadmin, on Oct 1 2008, 06:38 PM, said:

This did not work for me. All I get is a blank white page when I go to my admin (www.mafgiftshop.org/admin). When I view the source I see the 500 error. Any thoughts?

I've gone through my CPanel and added password protection. I've also deleted the .htaccess file altogether. Nothing works. (FYI, I've restored the .htaccess file). Thanks for any help you can offer.

Sounds like you have an error on the page, and error reporting is not on.

A quick fix open /catalog/admin/index.php and add the following lines.

Below
<?
Add:
error_reporting(E_ALL);
ini_set('display_errors', 1);

I believe that's the right code (I am doing it from memory).
dubz

#9 vakondweb

  • Community Member
  • 19 posts
  • Real Name:Varkondi Laszlo
  • Gender:Male
  • Location:Budapest

Posted 27 November 2010, 16:57

I had the same problem after moving to new server, and have found the problem:
It is very important to write the RIGHT document root to configure.php files.
You can find it with:
<?php echo $_SERVER['DOCUMENT_ROOT'];?>
I have forget to add a slash in admin/includes/configure.php at row DIR_FS_ADMIN
so it generated internal server error in admin...

I hope it helps to others.

#10 TheShadowKnows

  • Community Member
  • 18 posts

Posted 09 February 2012, 20:24

View Postvakondweb, on 27 November 2010, 16:57, said:

I had the same problem after moving to new server, and have found the problem:
It is very important to write the RIGHT document root to configure.php files.
You can find it with:
<?php echo $_SERVER['DOCUMENT_ROOT'];?>
I have forget to add a slash in admin/includes/configure.php at row DIR_FS_ADMIN
so it generated internal server error in admin...

I hope it helps to others.

Sorry to bump an old post, but just wanted to say thanks. I added ssl and was getting the 500 error on the admin panel. Putting the correct doc root into the admin config was the solution.

#11 Komal

  • Community Member
  • 3 posts
  • Real Name:Komal

Posted 22 April 2012, 12:33

I have tried all the mentioned tricks, but I am unable to login to admin panel. It is still showing internal server error. Here is the code of configure.php in admin/includes folder:

<?php
define('HTTP_SERVER', 'http://kozmosynk.com/demo/cottonsnshades');
define('HTTP_CATALOG_SERVER', 'http://kozmosynk.com/demo/cottonsnshades');
define('HTTPS_CATALOG_SERVER', 'http://kozmosynk.com/demo/cottonsnshades');
define('ENABLE_SSL_CATALOG', 'false');
define('DIR_FS_DOCUMENT_ROOT', '/public_html/demo/cottonsnshades/oscommerce/');
define('DIR_WS_ADMIN', '/oscommerce/admin/');
define('DIR_FS_ADMIN', '/public_html/demo/cottonsnshades/oscommerce/admin/');
define('DIR_WS_CATALOG', '/oscommerce/');
define('DIR_FS_CATALOG', '/public_html/demo/cottonsnshades/oscommerce/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'europe_usercotto');
define('DB_SERVER_PASSWORD', 'cotton123');
define('DB_DATABASE', 'europe_cotton');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>

Please tell me what is the solution? I have tried all the options but nothing worked

#12 Komal

  • Community Member
  • 3 posts
  • Real Name:Komal

Posted 22 April 2012, 12:36

This is the code of configure.php for front site. which is working fine
<?php
define('HTTP_SERVER', ' http://kozmosynk.com/demo/cottonsnshades');
define('HTTPS_SERVER', 'http://kozmosynk.com/demo/cottonsnshades');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', '');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/oscommerce/');
define('HTTPS_COOKIE_PATH', '/oscommerce/');
define('DIR_WS_HTTP_CATALOG', '/oscommerce/');
define('DIR_WS_HTTPS_CATALOG', '/oscommerce/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/public_html/demo/cottonsnshades/oscommerce/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'europe_usercotto');
define('DB_SERVER_PASSWORD', 'cotton123');
define('DB_DATABASE', 'europe_cotton');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>

#13 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 22 April 2012, 17:59

@Komal

See my reply in the other thread you posted.

Please don't create duplicate posts on a single issue. :blink:
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.