Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / configure.php warnings in my 1.3.8 install

configure.php warnings in my 1.3.8 install

Locked

Views: 4,138

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
12 Dec 2007, 6:57 PM
#1
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

configure.php warnings in my 1.3.8 install

I just installed the latest version of ZC 1.3.8a, after installing the ZC and when I opened the front side of the cart I got two security warning, one was about deleting the installation folder, the other is about setting the right user permissions on this file configure.php (read- only, CHMOD 644 or 444 are typical) which should exist in home/includes/configure.php ! This file normally exists within older versions of ZC, but for some reason it's not included to this version of ZC. any clue ?

12 Dec 2007, 9:18 PM
#2
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: configure.php warnings in my 1.3.8 install

Do you have an includes/dist-configure.php file?

From the docs/1.readme_installation.html:

Two files need to be created on the server. These are the configure.php files that identify the settings of your particular server and the location of the files that you just loaded. After they have been created, you will then need to change the permissions on these files.

NOTE: Changing permissions can be done via your FTP program with the chmod feature. Usually clicking right on a directory or filename will open a menu with this option (perhaps under "Properties")

On the server locate the file: /catalog/includes/dist-configure.php
Rename this file to configure.php and change the permissions to 777 (read-write-execute for all)

Next, on the server locate the file: /catalog/admin/includes/dist-configure.php
Rename this file to configure.php and change the permissions to 777 (read-write-execute for all)

12 Dec 2007, 9:57 PM
#3
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: configure.php warnings in my 1.3.8 install

Thank you for your help, I did what asked me to do and then I came to this page: http://www.arab-broker.com/orientalmeal/
What should I do now? I already completed the installation, why it says you haven't yet completed the normal Installation procedure?

12 Dec 2007, 10:22 PM
#4
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: configure.php warnings in my 1.3.8 install

Is this a brand new install w/brand new database?

Since the dist-configure.php files weren't renamed and write permissions set
before you ran the install, I'd run the zc_install again. Be sure you have also
renamed and set write permissions on the admin/includes/dist-configure.php file.

(fingers crossed)

12 Dec 2007, 10:50 PM
#5
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: configure.php warnings in my 1.3.8 install

OK I fixed it , but why in the documentation it says : On the server locate the file: /catalog/includes/dist-configure.php
Rename this file to configure.php and change the permissions to 777 (read-write-execute for all)

Next, on the server locate the file: /catalog/admin/includes/dist-configure.php
Rename this file to configure.php and change the permissions to 777 (read-write-execute for all)

while at the top of the page it says that permission should be 644 or 444 ?

Do I need to change the permissions on the following directories to 777 (read/write/execute). and is it 777 or 644-444?

/catalog/cache
/catalog/images
/catalog/includes/languages/english/html_includes
/catalog/media
/catalog/pub
/catalog/admin/backups
/catalog/admin/images/graphs

12 Dec 2007, 11:06 PM
#6
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: configure.php warnings in my 1.3.8 install

Okay..now you should change the permissions on your configure.php files back to 644 or 444 so they are no longer writeable, and rename or delete the zc_install folder.

I usually follow the docs/important_site_security_recommendations.html for
permission level on the other folders/files.

Looks like one or more of the files for your homepage is corrupt. :shocking:

12 Dec 2007, 11:27 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: configure.php warnings in my 1.3.8 install

alhakeem2001:

why in the documentation it says : On the server locate the file: /catalog/includes/dist-configure.php
Rename this file to configure.php and change the permissions to 777 (read-write-execute for all)

Next, on the server locate the file: /catalog/admin/includes/dist-configure.php
Rename this file to configure.php and change the permissions to 777 (read-write-execute for all)

while at the top of the page it says that permission should be 644 or 444 ?Um ... "installation" instructions tell you what you need to do for "installation".
Then, at the end of the installation instructions, you are also told to make the files read-only ... such as 644 or 444. The same instructions are on the last page of the installer.

After installation is done, you need to set a different permission level ... just as the documentation says. The warning on the top of the screen is just telling you that you've not yet done the last step related to permissions.

13 Dec 2007, 8:23 AM
#8
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: configure.php warnings in my 1.3.8 install

Well, probably I didn't explain it clearly, The installation went very good for the ZC 1.3.8a, but as I started to create my own override template following instructions within the existing documentation and as soon as I uploaded my files to the server and from the admin side I set the new template to be a default, I got a page saying something like “ Hello welcome to zen-cart, you seem that you didn’t completed your installation yet, please click on the zc_install to complete the installation “ then I had to upload the zc_install folder once again to the server as I already deleted that folder from the earlier installation . So what’s going wrong now? I don’t want to have this again when I re-set my template again!

13 Dec 2007, 11:58 AM
#9
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: configure.php warnings in my 1.3.8 install

Now, why my override template looks like that :

http://www.arab-broker.com/orientalmeal/

13 Dec 2007, 12:15 PM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: configure.php warnings in my 1.3.8 install

I started to create my own override template following instructions within the existing documentation

If that is true, the documentation would have also explained that when you change Themes, you must go to: Admin > Tools > Layout Boxes Controller and use the "reset" button at page bottom.

Did you do that?

13 Dec 2007, 12:27 PM
#11
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: configure.php warnings in my 1.3.8 install

Yes I did that, but why I have this line in the middle of the page and, is it because I am not using all boxes within the override template and how to add the rest, and I'm not 100% aware about the off - on switch functionality, please check attachment. One of the most obvious thing within my new template is the header banner at the top of the page why it comes without Background ?

13 Dec 2007, 12:31 PM
#12
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: configure.php warnings in my 1.3.8 install

Looks to me like you did not upload the necessary files for the new Theme or you uploaded them to the wrong place. Trial & error plus a lot of patience will help work out the problems. :smile:

13 Dec 2007, 12:39 PM
#13
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: configure.php warnings in my 1.3.8 install

I know, I know , but I have been working on this for a month already, just to set up the cart on-line, and now I’m getting out of patience because I’m running out of time "search for my posts" and shop needs to be open as soon as possible , can you please help me to put it on rails?:frusty:

13 Dec 2007, 3:37 PM
#14
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: configure.php warnings in my 1.3.8 install

looks like you renamed the classic template, to oriental,

and removed the images,
what are you trying to do?

13 Dec 2007, 3:54 PM
#15
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: configure.php warnings in my 1.3.8 install

but why I have this line in the middle of the page

The line separates the boxes that are set up for the left side of your page from the
ones set for the right side.

13 Dec 2007, 6:28 PM
#16
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: configure.php warnings in my 1.3.8 install

TShooters:

The line separates the boxes that are set up for the left side of your page from the
ones set for the right side.

But why it was not separated before I add my template ?

13 Dec 2007, 6:38 PM
#17
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: configure.php warnings in my 1.3.8 install

Merlinpa1969:

looks like you renamed the classic template, to oriental,

and removed the images,
what are you trying to do?

No, what I did is I created a folder called oriental for my custom template in side /include/templates/ and in there I created 4 folders : common, css, images, sideboxes, templates and I copied all the related files from the template_default directory, that's what I have to do if I want to create my own template! right ?

13 Dec 2007, 7:27 PM
#18
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: configure.php warnings in my 1.3.8 install

But why it was not separated before I add my template ?

That is normal. Once you add a new template, and turn it on, you have to
reset the sideboxes in admin/tools/layout boxes controller. It is...what it is. :yes:

13 Dec 2007, 10:26 PM
#19
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: configure.php warnings in my 1.3.8 install

alhakeem2001:

No, what I did is I created a folder called oriental for my custom template in side /include/templates/ and in there I created 4 folders : common, css, images, sideboxes, templates and I copied all the related files from the template_default directory, that's what I have to do if I want to create my own template! right ?

Yes & No.

You should only be coping over files that you have changed. In creating your Template for example, you would probably make changes to:

templates/oriental/common/tpl_header.php, tpl_main_page.php and tpl.footer.php.

Then there are changes to the "stylesheet.css" file to use various colors of your choice for: background, links, text, etc.

Then there is the trial & error required to get everything just right.