Forums / Installing on a Linux/Unix Server / another configure.php

another configure.php

Locked

Views: 3,302

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
4 May 2007, 1:16 AM
#1
tidusstylez avatar

tidusstylez

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

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'); ?>
4 May 2007, 3:40 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

4 May 2007, 4:32 AM
#3
jetx avatar

jetx

Zen Follower

Join Date:
Apr 2006
Posts:
425
Plugin Contributions:
0

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 May 2007, 5:40 PM
#4
tidusstylez avatar

tidusstylez

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

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.

4 May 2007, 5:58 PM
#5
tidusstylez avatar

tidusstylez

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

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>"; ?>
4 May 2007, 6:31 PM
#6
jund avatar

jund

Zen Follower

Join Date:
Sep 2006
Location:
Ruckersville, VA, USA
Posts:
276
Plugin Contributions:
0

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

4 May 2007, 6:37 PM
#7
tidusstylez avatar

tidusstylez

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: another configure.php

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

4 May 2007, 6:51 PM
#8
tidusstylez avatar

tidusstylez

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

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
4 May 2007, 7:35 PM
#9
jund avatar

jund

Zen Follower

Join Date:
Sep 2006
Location:
Ruckersville, VA, USA
Posts:
276
Plugin Contributions:
0

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

4 May 2007, 7:48 PM
#10
tidusstylez avatar

tidusstylez

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

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?

4 May 2007, 11:04 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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?
Root install is fully acceptable (what I prefer), your config entries look correct for a web root install

Zen-Venom Get Bitten

4 May 2007, 11:34 PM
#12
tidusstylez avatar

tidusstylez

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: another configure.php

Is there any way disable this part of the script kinda like when you disable the part when it gives you the warning that you can write to the config files.

5 May 2007, 4:51 AM
#13
tidusstylez avatar

tidusstylez

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: another configure.php

I feel like an idiot. Anyone using Godaddy can have them setup the entire Zen Cart for you using metropolis (hostingmetropolis.com/). They use wierd settings for the config file. Now to deal with templatemonster problems =/ Thanks for the replies though.

5 May 2007, 7:56 AM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: another configure.php

Now to deal with templatemonster problems
Sorry to hear that you might have purchased this as a template...

Search here for them and view the issues that are prevalent in their templates

Zen-Venom Get Bitten

5 May 2007, 11:25 AM
#15
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: another configure.php

Yes, you can place Zen Cart in the root - that shouldn't be a problem at all.

Vger

5 May 2007, 1:21 PM
#16
jund avatar

jund

Zen Follower

Join Date:
Sep 2006
Location:
Ruckersville, VA, USA
Posts:
276
Plugin Contributions:
0

Re: another configure.php

Are you up and running yet?

++++++++++++++++++++++++++++++++
I was looking at your configure.php file (copied below)

// 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');

+++++++++++++++++++++++++++++++++++

QUESTIONS:
Why are there two entries on each of the define lines here?
define('http://www.personalcareunlimited.com', 'http://www.personalcareunlimited.com');

and here
define('https://www.personalcareunlimited.com', 'https://www.personalcareunlimited.com');

Mine have always had only one per line (example below of recent install):
// 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_SERVER', 'http://jundwebs.com');
define('HTTPS_SERVER', 'https://jundwebs.com');

++++++++++++++++++++++

Hope you have solved it...
Respectfully,
jund

5 May 2007, 2:19 PM
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: another configure.php

Good catch jund ... went right past me on that one ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 May 2007, 9:08 PM
#18
jund avatar

jund

Zen Follower

Join Date:
Sep 2006
Location:
Ruckersville, VA, USA
Posts:
276
Plugin Contributions:
0

Re: another configure.php

Ajeh,

Thank you! That is what I like about you great folks here that take care of us... you are great, primarily because of your integrity and openess. I appreciate you!

Respectfully,
jund

6 May 2007, 1:13 AM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: another configure.php

Thanks ... we appreciate the feedback too ...

And we know, hard as it is to believe, sometimes we aren't as perfect as we look ... :eek:

I know, it's hard to imagine ... but true ... on rare, rare, rare ... rare occasions ... :smartalec:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!