Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Access denied after install


R08

Recommended Posts

Hi,

 

I've just installed osCommerce for the first time, whenever I try to access any of the links from the Admin page I get the error below...

 

Forbidden

You don't have permission to access /admin/://localhost/admin/configuration.php on this server.

 

 

--------------------------------------------------------------------------------

 

Apache/2.0.54 (Win32) Server at localhost Port 80

 

Further to this, on the main page, none of the images are displayed and none of the links lead anywhere.

 

Can anyone please help me with this, I thought osCommerce was supposed to simplify the site-building process... >_<

 

Cheers,

 

Rob.

Link to comment
Share on other sites

Ah!

 

/admin/://localhost/admin/configuration.php

 

I've just noticed that wierd URL, if I change it manually to ...

 

/admin/coniguration.php

 

then it works fine,

 

any ideas what could be appending the extra ://localhost/admin to the string?

 

Cheers,

 

Rob.

Link to comment
Share on other sites

Your admin/includes/configure.php file is set up incorrectly.  Post it here, minus the db user name and password.

 

Vger

 

Thanks for the quick response to my my dumb noob question guys. Here is my includes.php:

 

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', '://'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', '://');

define('HTTPS_CATALOG_SERVER', '://');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', 'D:/Websites/dvdthunder/www/'); // where the pages are located on the server

define('DIR_WS_ADMIN', 'localhost/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'D:/Websites/dvdthunder/www/admin/'); // absolute pate required

define('DIR_WS_CATALOG', 'localhost/'); // absolute path required

define('DIR_FS_CATALOG', 'D:/Websites/dvdthunder/www/'); // 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', '******');

define('DB_SERVER_PASSWORD', '******');

define('DB_DATABASE', 'dvdthunder');

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

What do I need to change?...

 

Cheers,

 

Rob.

Link to comment
Share on other sites

OK,

 

I changed the top 3 lines to:

 

define('HTTP_SERVER', 'http://localhost/'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://localhost/');

define('HTTPS_CATALOG_SERVER', 'http://localhost/');

 

and I can now access my Admin pages etc...

 

However, I still have no images on my main page, if I right click the image and choose 'Properties' in my browser then the URL shows the '://' twice, i.e. http://://localhost/images/oscommerce.gif?

 

Sorry to be such a pain with this but I just want to get this site working so I can start playing around customizing it (and probably breaking it some more).

 

Rest assured, all your help is greatly appreciated.

 

Cheers,

 

Rob.

Link to comment
Share on other sites

Okay, can't wait for an answer - other things to do. So this is for a local (Intranet) install.

 

define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', 'D:/Websites/dvdthunder/www/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'D:/Websites/dvdthunder/www/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', 'D:/Websites/dvdthunder/www/'); // absolute path required

 

This is for an install into the root of the server.

 

If this is an online install then exhcange 'localhost' with your domain name.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...