Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't log in to admin section


marcusdiddle

Recommended Posts

I've been searching the forums for an hour or so now, and am coming up empty. I've got a GoDaddy Virtual Server where all of my domains are hosted. One of the pre-packaged apps on the server is osCommerce. Decided to try it out, so I selected a domain, and installed osCommerce to it. The install went well, except I got one error message at the end.

 

sappmng: /usr/local/psa/var/cgitory/osCommerce-2.2ms2-a3/scripts/postinstall execution failed: /usr/bin/htpasswd: 
unable to create temporary file 'htpasswd.tmp.Z0G2Zz'
Unable to create file '.htpasswd'

 

The install itself works fine. I can access the page, browse categories, look at item details, add them to the cart. I just have no way of accessing the Admin page. I go to www.mydomain.com/admin and am prompted to enter a username and password. I try 'admin' and the password that I set during setup, but it just doesn't work. I gather from the error message that the app was unable to successfully set my password within the htpasswd file.

 

Any tips or suggestions would be appreciated!

Link to comment
Share on other sites

Ok, I'm slowly working my way through this. I deleted the initial install, and opted to download the osCommerce package from here and manually install it.

 

First error I ran into was the "enable register_globals" in php.ini. So I downloaded Putty and learned how to log in and edit the php.ini file. Score one for me.

 

After that, installation went well. Store is up and running. However I cannot access the Admin page. My store is on a subdomain, shop.mydomain.com. When I hit shop.mydomain.com/admin, I get an error stating:

 

Forbidden

You don't have permission to access /admin/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

 

I tried deleting the .htaccess file within the admin folder, and I still get the same error.

 

Would really appreciate some advice here!

Link to comment
Share on other sites

Here's my configure.php file from admin/includes, in case that helps any:

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://shop.vintagejewelryplus.com'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://shop.vintagejewelryplus.com');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/vintagejewelryplus.com/subdomains/shop/httpdocs/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/httpd/vhosts/vintagejewelryplus.com/subdomains/shop/httpdocs/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/httpd/vhosts/vintagejewelryplus.com/subdomains/shop/httpdocs/'); // absolute path required
 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 our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'vintagejewelry');
 define('DB_SERVER_PASSWORD', 'xxxxxxxx');
 define('DB_DATABASE', 'oscommerce');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

Link to comment
Share on other sites

Ok, I'm slowly working my way through this. I deleted the initial install, and opted to download the osCommerce package from here and manually install it.

 

First error I ran into was the "enable register_globals" in php.ini. So I downloaded Putty and learned how to log in and edit the php.ini file. Score one for me.

 

After that, installation went well. Store is up and running. However I cannot access the Admin page. My store is on a subdomain, shop.mydomain.com. When I hit shop.mydomain.com/admin, I get an error stating:

 

Forbidden

You don't have permission to access /admin/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

 

I tried deleting the .htaccess file within the admin folder, and I still get the same error.

 

Would really appreciate some advice here!

 

 

sounds like permissions.

chmod your admin direcotry and your index file to 755

 

The upload your .htaccess file - it should contain the username and password for the admin/

 

d

Link to comment
Share on other sites

sounds like permissions.

chmod your admin direcotry and your index file to 755

 

The upload your .htaccess file - it should contain the username and password for the admin/

 

d

I've got permissions set up properly. admin dir is at 755, and index.php is 644 (tried 755 but still no luck).

 

I've deleted all .htaccess files. There should be nothing stopping me from viewing the admin dir, but it just won't let me!

 

I've seriously been at this since 9am this morning...

Link to comment
Share on other sites

Ok, I completely deleted everything and attempted setting it up in the root instead of on a subdomain. I'm still having the exact same problem!

 

.htaccess files are already there by default, but deleting them does nothing.

 

It seems like everyone else is having problems keeping people out of their admin section, and I'm the only one having trouble getting in! :huh:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...