Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with accessing admin tools


jbb

Recommended Posts

I have installed osCommerce and dealt with the error messages at the top.

 

When I try to access the admin page I get the following message:

 

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in ......./admin/includes/functions/database.php on line 19

Unable to connect to database server!

 

What is going on here?

Link to comment
Share on other sites

Admin has its own configure.php, did you set the database defines in it?

 

Admin/includes/configure.php

 

charles

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

Thanks for the replies

 

I did come across the the information about this in the knowledge base, but had 2 problems. 1. I am a complete noob and I had no idea what I was doing.

2. I see this message in my host 'SSH manager': "Your hosting plan's limits do not allow SSH service to be added. Please refer to the 'Account Usage' table." -does this mean I can't do these kinds of checks? (I am using freestarthost.com for testing).

 

I checked the defines in admin/includes/config.php as suggested. I had to put in hostname, db name, password, etc.. Shouldn't this have automatically generated when I installed? I assume I have to set permissions to 400 on this file now?

 

Now I am getting to the admin page, but I still need to figure out why I get dumped to my host account admin tools when I click on anything....

Link to comment
Share on other sites

Agh! Lightbulb ignites!! I think what's happening is that your 'admin' folder is still named 'admin', and access to your web hosting control panel is also via /admin You need to FTP to your website and rename the osCommerce 'admin' folder (you should do this anyway), and then go to admin/includes/configure.php and change file pathways to /admin/ to /newname/

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...