Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Dec 2006
    Posts
    6
    Plugin Contributions
    0

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

    Hi,

    I've set the permissions on the includes/configure.php file to be read only ( 444 ) and confirmed this with my web host however, I still get the warning messages. The host is running My SQl 4.x PHP 4.4.1 Apache 1.3.

    If I change permissions to none then I get the page message " The requested URL /registry/zc_install/index.php was not found on this server." this would indicate that the permissions are changed on server.

    Regards,
    Robert.

  2. #2
    Join Date
    Jun 2006
    Location
    Koh Samui
    Posts
    122
    Plugin Contributions
    0

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

    and how about the admin/includes/configure.php?
    [FONT="Verdana"]http://www.xlventures.eu[/FONT]

  3. #3
    Join Date
    Dec 2006
    Posts
    6
    Plugin Contributions
    0

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

    Quote Originally Posted by azrahn View Post
    and how about the admin/includes/configure.php?
    That file is set to 644.

  4. #4
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

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

    And which configure.php file are you getting the warning on?

    If it's the admin, try that at 444 (or similar) too.

  5. #5
    Join Date
    Dec 2006
    Posts
    6
    Plugin Contributions
    0

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

    I'm getting the message from the zen\include\configure.php but I changed the admin configure.php to 444 and the problem persists.

    I'm thinking that I should try a fresh install, but I hesitate since I would have to redo all of my customization.

  6. #6
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

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

    There are 2 configure files. One at includes/configure.php and the other at admin/includes/configure.php. Are they both 644?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Dec 2006
    Posts
    6
    Plugin Contributions
    0

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

    They are both at 444. Would a reinstall be of any use?

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    You are positive that they are set to 444 ...

    As in after you set them you checked once more to make sure the setting took?

    If that is the case ... and this only happens on rare rare occaisions with hosts that usually have something not configured quite right on the server ... you can comment out the error ...

    We do not like this as being the method you use ...

    Can you please check once more the settings on:
    /includes/configure.php

    /admin/includes/configure.php

    and make sure that they are, in fact set to 444 ...
    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!

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    Quote Originally Posted by robertbob View Post
    They are both at 444. Would a reinstall be of any use?
    Re-installing won't make any difference.

    Some hosts have more isolated security arrangements and thus allow more direct access to their customers' files. The warning is telling you that if someone were to get past Zen Cart's security systems, they could possibly read or change those very important configuration files. Thus it's important to find a way to prevent the warning message, rather than merely suppress it.

    The message is saying that the webserver, using PHP, *is* able to write to the file, according to the access check that PHP does against the file.

    Sometimes, although rare, it's necessary to set these files to 400 instead of the common 444 or 644. Any lower than 400 may cause you to lose access to the file.


    Some hosts have security configured such that even when you "ask" the server to set the files to 444, they remain at 644 or even get changed again later by a server security or filesystem properties check. This is why folks have asked to check and double-check what the permissions are ;)

    (I've combined some of this information into the FAQ on this topic, available here:
    https://www.zen-cart.com/tutorials/index.php?article=90 )
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Dec 2006
    Posts
    6
    Plugin Contributions
    0

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

    Thanks for all of the suggestions, however, even when I set the permissions to 400 on both configure files I still get the warning message. I agree that disabling the warning is not the ideal solution but I am running out of options.

    I set the file premissions with my webhost file manager software and then I log out and double check them with an FTP software and it does confirm the permission setting to be at 400.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Warning: I am able to write to the configuration file:
    By 4lex in forum Basic Configuration
    Replies: 11
    Last Post: 6 Aug 2011, 03:59 AM
  2. Warning: I am able to write to the configuration file:
    By dpet102 in forum General Questions
    Replies: 9
    Last Post: 29 Jun 2009, 06:49 PM
  3. Warning: I am able to write to the configuration file...
    By Ozewolf in forum General Questions
    Replies: 9
    Last Post: 15 Jan 2009, 01:23 PM
  4. Warning: I am able to write to the configuration file:
    By rikkidegraz in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 9 Jul 2008, 06:11 PM
  5. Warning: I am able to write to the configuration File
    By rlantigua in forum Installing on a Windows Server
    Replies: 23
    Last Post: 28 Oct 2006, 12:37 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