Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default another configure.php

    I am on a windows Xp box using a Linux server, hosting with Godaddy. I have gone through every configure.php thread and tried everything. I am getting this error during the installation:
    error encountered while writing /includes/configure.php
    I called Godaddy, and they told me the installation is writing to the php file, but it is not recongnizing the permissions. I tried deleting the entire zen cart and starting from scratch only to arrive at the same error. I have set the permissions on both files using fileZilla. They are set at 777. I even tried setting permissions on the entire directory. Here is my /includes/config.php


    <?php
    /**
    *
    * @package Configuration Settings
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


    /*************** 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.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    define('http://www.personalcareunlimited.com', 'http://www.personalcareunlimited.com');
    define('https://www.personalcareunlimited.com', 'https://www.personalcareunlimited.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // 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/content/t/i/d/tidusdesign/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/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'p50mysql21.secureserver.net');
    define('DB_SERVER_USERNAME', 'xxxxxxx');
    define('DB_SERVER_PASSWORD', 'xxxxxxxx');
    define('DB_DATABASE', 'tidusdesign');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/content/t/i/d/tidusdesign/html/cache');

    ?>

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: another configure.php

    Been some time since I messed with a GoDaddy setup process...tripple check that the permissions are maintained after setting - as on some servers you must set these through their file manager application & most particuarly when set to 644 or lower.

    Alternatively if you can manually set the params in an editor you can ftp them up to their respective locations.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2006
    Posts
    413
    Plugin Contributions
    0

    Default Re: another configure.php

    Have you tried setting the permissions from the control panel file manager?

    edit.. oh ya.. as per what him above said :)

  4. #4
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: another configure.php

    The only way that I see in the control panel that I can edit files is the Godaddy FTP client. This does not allow you to set permissions or check properties on files. There isn't even a console where I could type in FTP commands. Any other ideas? Is the file content ok? Is there any way I could bypass this part of the setup? Oh yeah, and the permission settings go back to 644 like 5-10 minutes after I run the database setup part of the zc_install.
    Last edited by tidusStylez; 4 May 2007 at 06:43 PM.

  5. #5
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: another configure.php

    Talked to Godaddy again, and they told me I had to write a php script to change the permissions. Here is the script I made. Still gave me the error after running the script.
    <?php
    /*
    Changing file rights with php, an alternative to changing rights with cPanel/ftp/shell.

    Pop this in a file named rights.php in you root directory for Zen-Cart, then execute it:

    http://{www.mydomain.com/somepath}/rights.php

    Be sure to delete the file when you're done!

    */
    chmod("admin/includes/configure.php", 0777);
    chmod("includes/configure.php", 0777);
    echo "Rights changed!<br><b>Delete this file! (" . $_SERVER["SCRIPT_NAME"] . ")</b>";
    ?>

  6. #6
    Join Date
    Sep 2006
    Location
    Ruckersville, VA, USA
    Posts
    286
    Plugin Contributions
    0

    Default Re: another configure.php

    Use this link for a pictorial:
    http://www.imagesbydavido.com/chmod.htm

    Don't know if this will help - but it sure worked for me...
    I use WS_FTP.

    All I do is get connected to the host... and go to the folder you have your configure.php (not configuration.php). Right click on the file (configure.php), select properties, and set the chmod to 444. Some have said that 644 will work - but, I have only been successful with 444.
    The control panels on many hosts provide a way to change chmod, but I have found that they are flawed... and the old WS_FTP trick works every time... even on Windows Servers where they do not use CHMODS... so once again, using a good FTP app (WS_FTP Pro is worth the investment)
    1. connect to your store
    2. select configure.php,
    3. right click on it,
    4. select properties,
    5. and set the CHMOD to 444.

    Use this link for a pictorial:
    http://www.imagesbydavido.com/chmod.htm

    Respectfully,
    jund

  7. #7
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: another configure.php

    wait set it to 444 or 644, wouldn't that not allow write permissions for the installer?

  8. #8
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: another configure.php

    This is the exact error, looks like the zencart install already accessed the file. It can't verify. I already tried deleted the entire zen cart and reuploading it.

    While attempting to save your settings, Zen Cart™ Installer was unable to verify successful writing of your configure.php file settings. Please check to be sure that your webserver has full write permissions to the configure.php files shown below.

    - /includes/configure.php
    - /admin/includes/configure.php

  9. #9
    Join Date
    Sep 2006
    Location
    Ruckersville, VA, USA
    Posts
    286
    Plugin Contributions
    0

    Default Re: another configure.php

    I apologize - I am sorry - you are correct, the information I provided allows you to RESET the permissions. I am wrong.

    However I do not understand your configure.php file - it shows this path for your catalog:
    define('DIR_FS_CATALOG', '/home/content/t/i/d/tidusdesign/html/');

    and above that is another the http path is:
    define DIR_WS_CATALOG, '/';
    am I confused about the location of your 'catalog?'


    For my site it looks like this:
    define('DIR_FS_CATALOG', 'e:/web/public_html/mysite/store/');
    and the http path is:
    define('DIR_WS_CATALOG', '/store/');

    NOTE: store is the name of my 'catalog'.

    SUMMARY
    I apologize for the wrong chmod info... however; it looks like the path to configure is incorrect - the 'local path' does not match the 'virtual path' - and I am out of my league (smile).

    Respectfully,
    jund

  10. #10
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: another configure.php

    I have the entire zencart directory in my root directory instead of in a folder like catalog. Thats what my zencart template instructions told me to do. Do I have to upload the zencart files into a folder, or can they reside in the root directory?
    That /home/content/t/i/d/tidusdesign/html/ points to my home directory on the server. The zencart files reside right in the home directory. The define DIR_WS_CATALOG, '/'; represents the home directory with a / I assume?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 9
    Last Post: 1 Sep 2012, 03:13 AM
  2. Can't rename dist-configure.php because there is already a configure.php
    By mamasylvia in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 17 Mar 2008, 06:57 AM
  3. how to configure my configure.php file
    By vr4indian in forum Basic Configuration
    Replies: 4
    Last Post: 30 Oct 2006, 04:00 PM

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