Zen Cart Logo
Forums / General Questions / Warning: I am able to write to the configuration file...

Warning: I am able to write to the configuration file...

Locked

Views: 1,915

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
14 Jan 2009, 9:39 PM
#1
ozewolf avatar

ozewolf

New Zenner

Join Date:
Jan 2009
Location:
Sydney Australia
Posts:
15
Plugin Contributions:
0

Warning: I am able to write to the configuration file...

Hi
Have followed security advice & set 644 for configure.php files via cpanel & confirmed 644 setting
Refreshed browser emptied cache but demo site still says Warning: I am able to write to the configuration file...
what else could I have wrong?

14 Jan 2009, 9:44 PM
#2
mickyelta avatar

mickyelta

New Zenner

Join Date:
Nov 2006
Posts:
67
Plugin Contributions:
0

Re: Warning: I am able to write to the configuration file...

Hi try 444 should fix your problem

14 Jan 2009, 10:00 PM
#3
ozewolf avatar

ozewolf

New Zenner

Join Date:
Jan 2009
Location:
Sydney Australia
Posts:
15
Plugin Contributions:
0

Re: Warning: I am able to write to the configuration file...

Mickyelta:

Hi try 444 should fix your problem
Yes that does it :smile:
Thanks

14 Jan 2009, 11:42 PM
#4
ozewolf avatar

ozewolf

New Zenner

Join Date:
Jan 2009
Location:
Sydney Australia
Posts:
15
Plugin Contributions:
0

Re: Warning: I am able to write to the configuration file...

There is gona be lots of ?'s i think

Have done as suggested Under Security changing of configure.php files
[Quote]Renaming the "admin" folder makes it much harder for would-be hackers to get into your admin area.

(Before making the following changes, make sure to have a current backup of your files and your database.)

A- Open your admin/includes/configure.php, using a simple text editor like notepad.
Change all instances of /admin/ to your chosen new admin folder-name.

Change this section:

define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

And this section:

define('DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');
define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');

B- Find your Zen Cart /admin/ directory, using your FTP software or your webhost File Manager.
Rename the directory to match the settings you just made in your admin/includes/configure.php.[quote/]

NEXT
To login to your admin system you will now have to visit a new URL that matches the new name used in steps A and B above. For example instead of visiting http://www.example.com/admin/ visit http://www.example.com/NeW_NamE4u/.

and I get
Parse error: syntax error, unexpected T_STRING in /home/--------/public_html/zencart/-----_admin/includes/configure.php on line 29

Which is in this area

  • If you desire your entire admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'http://www.drafting.com.au');
    define('HTTPS_SERVER', 'https://www.drafting.com.au');
    define('HTTP_CATALOG_SERVER', 'http://www.drafting.com.au');
    define('HTTPS_CATALOG_SERVER', 'https://www.drafting.com.au');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'false');

Is it normal to have this happen

15 Jan 2009, 12:26 AM
#5
mickyelta avatar

mickyelta

New Zenner

Join Date:
Nov 2006
Posts:
67
Plugin Contributions:
0

Re: Warning: I am able to write to the configuration file...

i would suggest look to see that the lines you modified all end with a ";" or that all defines are properly enclose in "''

15 Jan 2009, 12:46 AM
#6
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Warning: I am able to write to the configuration file...

You may want to look at the sections that you changed .. it may not be line 29 but might the location that you changed Admin to your new name .. make sure everything is correct in those area .

15 Jan 2009, 1:16 AM
#7
ozewolf avatar

ozewolf

New Zenner

Join Date:
Jan 2009
Location:
Sydney Australia
Posts:
15
Plugin Contributions:
0

Re: Warning: I am able to write to the configuration file...

I did it by find & replace
Can you see anything wrong here?:unsure:

define('DIR_WS_ADMIN', '/zencart/-----_admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/zencart/-----_admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/home/archidra/public_html/zencart/-----_admin/');
define('DIR_FS_CATALOG', '/home/--------/public_html/public/');

The only part i did not see change was the page header

<?php/-----_admin//-----_admin/ /** Thanks
15 Jan 2009, 1:44 AM
#8
ozewolf avatar

ozewolf

New Zenner

Join Date:
Jan 2009
Location:
Sydney Australia
Posts:
15
Plugin Contributions:
0

Re: Warning: I am able to write to the configuration file...

just to clarify here is the php configure file from the folder named
-----_admin

configure.txt

15 Jan 2009, 10:20 AM
#9
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Warning: I am able to write to the configuration file...

you have php opening tag in first line of your configure.php with added /-----_admin//.............

remove that line but keep the <?php opening tag .

15 Jan 2009, 12:23 PM
#10
ozewolf avatar

ozewolf

New Zenner

Join Date:
Jan 2009
Location:
Sydney Australia
Posts:
15
Plugin Contributions:
0

Re: Warning: I am able to write to the configuration file...

Thanks

I did change the line entry & have tried several other things via my host to no avail
But seeing it was my first zencart demo (1st mysql 1st cart 1st shop) & there were mysql permission problems at the host end that prevented a clean install & interrupted the zencart install i decided to redo it so am currently working in a new file (not yet changed this part of security) & all seems fine

I appreciate the help from all of you very much & am sure i will need lots more help yet

Ps like setting up Australian freight/postage
Best Regards:smile: