Originally Posted by
DrByte
What exactly do you mean by "I cannot seem to access the new cart through the new IP address."? Does "cannot access" mean "I get a 404-not-found error"? or a red-screen with no content? Or an error in your browser, perhaps something like "unreachable"?
Or does it just mean "I can see my store, but I can't login or put something in my shopping basket"?
Let me clarify. On my Mac without the new server's dedicated IP address in the hosts file, I am unable to access the "http://111.111.111/" or "http://111.111.111/index.php" addresses. I also tried with a simple phpinfo file that does work perfectly on my PC that has the new IP address with the old domain name in the PC hosts file. All the attempts on the Mac come back with a 404. Looking on the cPanel on my host, there are no errors in the error log. Looking through through the filesystem via the cPanel, there are no error logs anywhere at the root directories or down in the Zen Cart filesystem (logs, cache, admin_renamed, etc).
Originally Posted by
DrByte
It's not unusual for "using an IP address as the domain name" to cause login challenges. More reliable is to edit your hosts file and assign a domain name to the IP address, and use that domain name.
Right, on the PC with the old domain mapped to the new server IP in the hosts file, the new server and Zen Cart work perfectly, including test transactions and a dummy test transaction went all he way through to my credit card processor and was successfully rejected. The new server successfully passed all my test and is ready for my hosting company to switch the domain name over when I tell them.
Originally Posted by
DrByte
And, yes, you are correct that the only place it must be configured in Zen Cart is HTTP_SERVER in the configure.php files (and since you probably don't have an SSL cert for that temporary domain, set ENABLE_SSL to 'false' temporarily while using that temporary domain name).
So, in the includes\configure.php file, I have the following:
PHP Code:
define('HTTP_SERVER', 'http://111.111.111'); // removed my actual IP address
define('HTTPS_SERVER', 'https://111.111.111'); // removed my actual IP address
define('ENABLE_SSL', ''); // will change this back to true when I go live
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', '/home/my_account/public_html/'); // removed my actual directory
define('DB_TYPE', 'mysql'); // always 'mysql'
define('DB_PREFIX', ''); // prefix for database table names -- preferred to be left empty
define('DB_CHARSET', 'utf8'); // 'utf8' or 'latin1' are most common
define('DB_SERVER', 'localhost'); // address of your db server
define('DB_SERVER_USERNAME', 'sql_account'); // removed my actual username
define('DB_SERVER_PASSWORD', 'sql_password'); // removed my actual password
define('DB_DATABASE', 'DB_Name'); // removed my actual DB name
define('SQL_CACHE_METHOD', 'none');
define('SESSION_STORAGE', 'temporary value added by zc_install');
And in the admin_name_changed\includes\configure.php file, I have the following:
PHP Code:
define('HTTP_SERVER', 'https://111.111.111'); // removed my actual IP address
define('HTTP_CATALOG_SERVER', 'http://111.111.111'); // removed my actual IP address
define('HTTPS_CATALOG_SERVER', 'https://111.111.111'); // removed my actual IP address
define('ENABLE_SSL_CATALOG', ''); // will change this back to true when I go live
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', '/home/my_account/public_html/'); // removed my actual directory
define('DB_TYPE', 'mysql'); // always 'mysql'
define('DB_PREFIX', ''); // prefix for database table names -- preferred to be left empty
define('DB_CHARSET', 'utf8'); // 'utf8' or 'latin1' are most common
define('DB_SERVER', 'localhost'); // address of your db server
define('DB_SERVER_USERNAME', 'sql_account'); // removed my actual username
define('DB_SERVER_PASSWORD', 'sql_password'); // removed my actual password
define('DB_DATABASE', 'DB_Name'); // removed my actual DB name
define('SQL_CACHE_METHOD', 'none');
define('SESSION_STORAGE', 'temporary value added by zc_install');
So, before I go live, I want to run the new server and Zen Cart through third-party tests. I was successful with my PCI compliance company to have them scan the new dedicated IP address for any PCI vulnerabilities, but I also want to run the new server website throught some PageSpeed and WebPageTests. I can't do that without the proper way to publicly get to the website through the IP address. I am sure there is something simple to fix this, but it is escaping me.
Bookmarks