Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OS COMMERCE ADMIN LOGIN ISSUE


TheTechDev

Recommended Posts

14 hours ago, TheTechDev said:

Hello, I just installed OSCommerce and installation was successful but when i click on the admin button it goes to /admin/login and then says the requested url was not found on this server.

Thanks for the screenshot. I don't see the admin folder and other important folders in your screenshot. Probably an error occurred while unpacking zip file.

I suggest that you delete all unpacked files, check free space on your disk and retry installation.

And let us know the version of your installation (you can see it in the top left corner of the install page). I'm guessing it's not the latest version 4.06.51797.

Edited by pandrei
Link to comment
Share on other sites

On 10/17/2022 at 1:06 AM, pandrei said:

Thanks for the screenshot. I don't see the admin folder and other important folders in your screenshot. Probably an error occurred while unpacking zip file.

I suggest that you delete all unpacked files, check free space on your disk and retry installation.

And let us know the version of your installation (you can see it in the top left corner of the install page). I'm guessing it's not the latest version 4.06.51797.

if you noticed at the top of the screen shot that is the admin folder i am in. :)

Link to comment
Share on other sites

16 minutes ago, TheTechDev said:

if you noticed at the top of the screen shot that is the admin folder i am in. :)

Sorry for that 🙂

Please send me the log files from lib/backend/runtime/logs/*.log

Also please send me admin/includes/local/configure.php file

11 minutes ago, gheimlinger said:

I am facing the exact same issue with a fresh install.

Hi Gerhard! Could you send me the above log files too?

Edited by pandrei
Link to comment
Share on other sites

lib/backend/runtime is empty. There is no subfolder logs.

The admin/includes/local/configure.php is as follows:

 

<?php
define('HTTP_SERVER', 'http://192.168.176.77:8086');
define('HTTPS_SERVER', 'https://192.168.176.77:8086');
define('HTTP_CATALOG_SERVER', 'http://192.168.176.77:8086');
define('HTTPS_CATALOG_SERVER', 'https://192.168.176.77:8086');
define('ENABLE_SSL', false);
define('ENABLE_SSL_CATALOG', false);

define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']);
define('DIR_WS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
define('DIR_WS_CATALOG', '/');
define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
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_CATALOG_XML', DIR_FS_CATALOG . 'xml/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_WS_DOWNLOAD', DIR_WS_CATALOG . 'download/');
define('DIR_FS_CATALOG_FONTS', DIR_FS_ADMIN . 'includes/fonts/');
define('DIR_WS_TEMPLATES', DIR_WS_CATALOG . 'templates/');
define('DIR_FS_TEMPLATES', DIR_FS_CATALOG . 'templates/');

define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '--- username removed ---');
define('DB_SERVER_PASSWORD', '--- password removed ---');
define('DB_DATABASE', 'oscommerce4');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');

Link to comment
Share on other sites

Thanks, Gerhard.

Could you open any sales channel like "watch" and go to any product category like "for all". I guess you will get the same error - 404 Not Found.

If I am right, you have to check configuration of your Apache: https://wiki.oscommerce.com/index.php?title=Installing_osCommerce_4_on_Dedicated_Server,_Cloud_Server_or_VPS

Most likely missing "write" apache mod or "AllowOverride All" directive for your web site.

Link to comment
Share on other sites

3 hours ago, pandrei said:

Thanks, Gerhard.

Could you open any sales channel like "watch" and go to any product category like "for all". I guess you will get the same error - 404 Not Found.

If I am right, you have to check configuration of your Apache: https://wiki.oscommerce.com/index.php?title=Installing_osCommerce_4_on_Dedicated_Server,_Cloud_Server_or_VPS

Most likely missing "write" apache mod or "AllowOverride All" directive for your web site.

Hello Pandrei,

Thank you for your support. Yes, you were right, also the sales channels also behaved as you described.

The hint with the configuration was the key to success. Adding just the Apache settings was not sufficient. I also found out that some software packages were missing. I didn't look there in the first place as the Pre-installation Check did not show any missing parts. Now the channels and the backend access work as expected.

Regards,
Gerhard

Link to comment
Share on other sites

I am glad to hear it works well.

43 minutes ago, gheimlinger said:

I didn't look there in the first place as the Pre-installation Check did not show any missing parts.

Unfortunately, there is no guaranteed way to check installed apache modules.

Link to comment
Share on other sites

8 hours ago, pandrei said:

Thanks, Gerhard.

Could you open any sales channel like "watch" and go to any product category like "for all". I guess you will get the same error - 404 Not Found.

If I am right, you have to check configuration of your Apache: https://wiki.oscommerce.com/index.php?title=Installing_osCommerce_4_on_Dedicated_Server,_Cloud_Server_or_VPS

Most likely missing "write" apache mod or "AllowOverride All" directive for your web site.

adding FPM fixed it for me.

Link to comment
Share on other sites

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...