Can't Save Files After SSL Install
My hosting provider just installed my SSL and now I can edit define pages and EZ pages but when I press save I am taken to the admin page.
I have changed the settings for SSL in the config files. I noticed that my file permissions seemed to have changed since the install. I had them all on 777 but they have changed to 644
I changed a couple of define pages to 777 and tried again to edit but have the same problem.
Not sure if it is relevent but my hosting company did a redirect for http://www to www
They did this by "I've setup the redirect rule in apache config"
They did it that way because it did not work using cpanel domain redirect options.
Any ideas?
Re: Can't Save Files After SSL Install
Re: Can't Save Files After SSL Install
My host is infrenion..the ssl is from rapidssl but purchased through my host
Re: Can't Save Files After SSL Install
Does this host locate the SSL installation inside a different set of folders?
Some (cheap) hosts have both:
httpdocs
and
httpsdocs
... main folders.
If they do not have symlinking installed, you will need to REPLICATE your site into both the httpdocs and httpsdocs folder.
My advice, get out of that hosting environment and host with people who know zencart. See the CERTIFIED HOSTS link above.
Re: Can't Save Files After SSL Install
There seems to be only one set of files.
Do i need permission settings open for any other pages/config files to edit define pages or just the define page that I want to edit?
Re: Can't Save Files After SSL Install
Quote:
There seems to be only one set of files
There would only be one set of files if you started off without SSL, and all the files in a folder called httpdocs or similar. What schoolboy is saying is that some hosts use an antiquated system where SSL files have to be located in another folder, usually called httpsdocs or similar. This means that you have to upload all files in the httpdocs folder to the new httpsdocs folder, and when you edit one file you have to edit both to keep them in sync.
Files should have permissions of 644, except for the two configure.php files which should have permissions of 644, 444 or 400 (depending on the server configuration). Files should never have permissions of 777.
Vger
Re: Can't Save Files After SSL Install
Hi Vger
I think I understand what schoolboy was saying. I use the folder public_html and since the install there are no additional folders like public_html_ssl or anything like that. So to answer the question..I only have one folder available for all www files.
I have been using this hosting comapny for a couple of years and this ssl is in its second year due to expire in a couple of months.
Previously I had been using oscommerce and leaving all the customizing to a programmer (well he called himself a programmer) but I found out after that he left all the file permissions open and I had big problems with hacking etc with bank security contacting me regarding phising emails etc.
So this is a first install of zencart for me and I am doing it myself this time. What I meant regarding the file permissions was that when you first install zencart and have to open all the file permissions to set it up, I thought that maybe one of those permissions had been affected with the install of the ssl.
I didn't mean do I leave the config file on 777 all the time but just while I am trying to trouble shoot the problem.
I just thought it strange when the ssl was installed some file permissions seemed to have changed which could be why I am having trouble writing to file.
I would be the first to start complaining to my hosting company if I think it is something they did but I need to be confident that it is not a configuration issue or file permission issue with zencart first.
That is why I am asking for peoples thoughts on the problem. All feedback is appreciated but schoolboy asks me a question then answers it himself and then provides the solution of changing providers.
His comment gave me something to check but his answer is incorrect in my case.
Re: Can't Save Files After SSL Install
At this point we need your web address (leave spaces to not get it spidered) and post your includes/configure.php file minus all db info.
Vger
Re: Can't Save Files After SSL Install
Here is the includes/configure.php
<?php
/**
* @package Configuration Settings circa 1.3.9
* @copyright Copyright 2003-2010 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* File Built by zc_install on 2011-02-24 10:08:58
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://www.globalsilverfactory.com');
define('HTTPS_SERVER', 'https://www.globalsilverfactory.com');
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
define('DIR_WS_PHPBB', '/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/gsf069/public_html/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
The url is globalsilverfactory dot com
Is it helpful to see the admin/includes/configure.php file aswell?
Thanks
Re: Can't Save Files After SSL Install
Quote:
Not sure if it is relevent but my hosting company did a redirect for
http://www to www
Well, as your site shows as "Down For Maintenance" there's little checking I can do. What you said your hosts had done (quoted above) doesn't make sense. The redirect would either have been from http://www. to http:// or from http:// to http://www.
However, there's one thing that is apparent and that is that all requests are being redirected to https://
As your includes/configure.php file appears to be okay I suggest that your problems are down to something your hosts did and that it's best to ask them exactly what they did.
Vger