Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing from HTTP to SSL install


Gary_101

Recommended Posts

Hi,

 

I'm new to OSC and fairly new to tweaking server-side stuff, but coping with the learning curve generally.

 

I had a small "test" store configured in my HTTP folder, and, since my client wants to take credit card info from clients, decided to move the store over the SLL folder. That was a disaster. So I opted to do a new install in the SSL folder ("HTTPSDOCS"). That generally went okay. Created a new "user" and pw for the database because it wouldn't let me use the old one.

 

But one snag: in the setup instructions, I was asked to change the name of the "admin" folder to something 'secret' (which answered my question of how to secure the admin login! - something I never did on my HTTP site). The install went okay, except at the very last screen, it gives you buttons to access your store and your admin. Store came up okay (with default "movies", etc), but my admin option still seeks the admin path using the word "admin" in the path, rather than the "secret" name I had changed the admin folder to.

 

I changed this line in CONFIG.PHP, adding "secretname" as the path to admin,

 

define('DIR_WS_ADMIN', '/secretname/');

 

but of no avail. I get the following error:

 

Warning: Access denied for user: 'mysql@localhost' (Using password: NO) in /home/httpd/vhosts/mydomain.com/httpsdocs/catalog/secretname/includes/functions/database.php on line 19

 

Warning: MySQL Connection Failed: Access denied for user: 'mysql@localhost' (Using password: NO) in /home/httpd/vhosts/mydomain.com/httpsdocs/catalog/secretname/includes/functions/database.php on line 19

Unable to connect to database server!

 

 

LINE 19 says this: $$link = mysql_connect($server, $username, $password);

 

not sure how to remedy this? should I be replacing $server, username, password with their real values?

 

 

thanks for any pointers...

 

Gary_101

Link to comment
Share on other sites

You really don't need a separate installation, or a separate directory to put your SSL pages in. You just need to install a SSL certificate, enable SSL in catalog/includes/configure.php, and osC will take care of the rest.

 

-jared

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...