Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default I broke my configure.php files

    My site is www.actionforms.ca/office_supplies

    I was trying to get my SSL certifcate stuff in there. This is what I did:

    Opened Admin -> Includes -> configure.php and changed the following lines:

    Code:
     
    define('HTTP_SERVER', 'http://localhost');
    define('HTTPS_SERVER', 'https://localhost');
    define('HTTP_CATALOG_SERVER', 'http://localhost');
    define('HTTPS_CATALOG_SERVER', 'https://localhost');
    // secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'false');
    [FONT=System]
    to

    [/FONT]
    Code:
     
    define('HTTP_SERVER', 'http://www.actionforms.ca');
    define('HTTPS_SERVER', 'https://www.actionforms.ca');
    define('HTTP_CATALOG_SERVER', 'http://www.actionforms.ca');
    define('HTTPS_CATALOG_SERVER', 'https://www.actionforms.ca');
    // secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'true');
    [FONT=System][FONT=System]
    Then I opened Includes -> Configure.php and changed

    [/FONT]
    [/FONT]
    Code:
     
    define('HTTP_SERVER', 'http://localhost');
    define('HTTPS_SERVER', 'https://localhost');
    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');
    [FONT=System][FONT=System][FONT=System]
    to

    [/FONT][/FONT]
    [/FONT]
    Code:
     
    define('HTTP_SERVER', 'http://www.actionforms.ca');
    define('HTTPS_SERVER', 'https://www.actionforms.ca');
    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');
    I FTPed everything to my server and now neither my Admin nor my store are working. I have switched everything back to the original, but it is still now working. It is showing my permissions at 644. I tried to change then to 444 to see if that was a problem, but it won't change them.

    My server has said that the certificate is installed and ready.

    I really need to stop breaking things! This is getting really tiresome!!

    Thanks
    Colleen

  2. #2
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Re: I broke my configure.php files

    I figure it might be useful to add the error messages and I think I added the wrong www. address above:

    http://www.actionforms.ca/index_officesupplies.html

    Not Found
    The requested URL /office_supplies/zc_install/index.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    is the error I get when going to the site.

    Warning: main() [function.main]: open_basedir restriction in effect. File(/includes/autoload_func.php) is not within the allowed path(s): (/home/actforms:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/actforms/public_html/office_supplies/admin/includes/application_top.php on line 147

    Warning: main(/includes/autoload_func.php) [function.main]: failed to open stream: Operation not permitted in /home/actforms/public_html/office_supplies/admin/includes/application_top.php on line 147

    Warning: main() [function.main]: open_basedir restriction in effect. File(/includes/autoload_func.php) is not within the allowed path(s): (/home/actforms:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/actforms/public_html/office_supplies/admin/includes/application_top.php on line 147

    Warning: main(/includes/autoload_func.php) [function.main]: failed to open stream: Operation not permitted in /home/actforms/public_html/office_supplies/admin/includes/application_top.php on line 147

    Fatal error: main() [function.require]: Failed opening required '/includes/autoload_func.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/actforms/public_html/office_supplies/admin/includes/application_top.php on line 147
    is the error I get when trying to go to admin.

    Thanks
    Colleen
    Last edited by margecc; 23 Mar 2007 at 09:13 PM. Reason: wrong quote marks

  3. #3
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: I broke my configure.php files

    Code:
    Not Found
    The requested URL /office_supplies/zc_install/index.php was not found on this server.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    If you are getting this error, there is probably something incorrect in your config. It's still looking for the installer and you're past that point.

    I don't know about SSL certificates, so someone else will have to chime in with that info.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  4. #4
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Re: I broke my configure.php files

    Thanks for the reply.

    I think that I figured out what I did but I am not sure exactly what to do other than a re-install. I changed the config files that were on my computer and uploaded them. I assume that during installation, there is some information written to those files during installation. I should have downloaded the config files first from the server, then changed them and re-uploaded.

    Does anyone know what is written to these files. Is it something that I can manually add myself, or is it best just to do a re-installation?

    If I am correct about what I did to the config files, then perhaps someone could add that bit of info about first downloading the files from you server before you change them to the FAQ (I think that is where I found the instructions). I know it may seem obvious, but I was having so many problems with other things I didn't even give it much thought.
    Thanks, Colleen
    www.af-company.com
    To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

  5. #5
    Join Date
    Jan 2006
    Posts
    420
    Plugin Contributions
    0

    Default Re: I broke my configure.php files

    You should not have to re install - make sure you have uploaded all the files from your test server where it is working , then check your config files on your live server . I have known these to not change after uploading , sometimes need to change them to 777 , upload them then restrict to 444 or whatever. also rename your zc_install to something else.

    I also assume you have uploaded your Mysql DB to the right place and have configured the settings to connect to that correctly too.

    depending where your test server is and how your cache is stored , you may need to run the cache cleaner to sort the sessions out , this has borked my sitre in the past when moving between different named hosts.

    hope all goes well
    Various Zen cart sites !

  6. #6
    Join Date
    Jan 2006
    Posts
    420
    Plugin Contributions
    0

    Default Re: I broke my configure.php files

    Onn the SSL stuff , just make sure that your host is pointing your public_html and your SSL directory to the same place.

    Some hosts have seperate directories for this , but can usually be changed for you , or by you in your control panel.

    other than that , the section of your config files to do with SSL was correct.
    Various Zen cart sites !

  7. #7
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: I broke my configure.php files

    Crazycucumber is right. You shouldn't have to reinstall. If you have the 1.3.7 files unzipped on your local machine, look for \includes\dist-configure.php and admin\includes\dist-configure.php. Those contain the original configure information ZC uses during the install to generate the configuration files. You can always use the information in them to recreate the info and start over.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  8. #8
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Re: I broke my configure.php files

    I did that on Friday. I renamed them both to configure.php and uploaded them to try and get it working again, without worrying about my SSL and it did nothing. The errors stayed the same. That is why I was wondering if there is anything extra actually written to the config files on the server during installation.

    Originally I just added the SSL information as above, which we seem to agree is correct, and uploaded them to the server and all has been crap ever since. I eventually went back to my zip file of Zen and picked out the 2 dist-configure files and uploaded them, with no results.

    By the Way, Thanks everyone for the help!
    Last edited by margecc; 26 Mar 2007 at 04:41 PM. Reason: Originally was spelled wrong
    Thanks, Colleen
    www.af-company.com
    To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

 

 

Similar Threads

  1. configure.php files
    By slater555 in forum General Questions
    Replies: 1
    Last Post: 1 Mar 2011, 10:02 PM
  2. Well, I broke it. (configure.php)
    By Mair C in forum Basic Configuration
    Replies: 1
    Last Post: 26 Feb 2008, 05:59 PM
  3. Cripes I broke it :( Help Please on Configure.php
    By woodlandsprite in forum General Questions
    Replies: 14
    Last Post: 26 May 2006, 05:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg