Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2006
    Location
    Lowell, MA
    Posts
    3
    Plugin Contributions
    0

    configure.php's CHMOD 444 is not recognized.

    My cart gets this warning message:
    Warning: I am able to write to the configuration file: server/..../includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

    But the configure.php is already set to read only mode (444). I made sure that over the FTP program. The hosting service provider also confirmed that the permissions are set to CHMOD 444. According to them, there is nothing to do with their server.

    For some reasons, the permissions is not recognized????

    The configure.php is the only one in the includes directory. All configure.php in other directories to change their permission after the instration are set to 444. I don't know where else needs to be checked.

    Could you tell me how to fix this problem? This is ver. 1.3.0.

    Thank you,

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

    Default Re: configure.php's CHMOD 444 is not recognized.

    There have been servers where even the 444 does not remove the error as if the server is not reporting the settings properly ...

    If you are absolutely sure that your settings are 444 ...

    You can remove the warnings manually for your site ... but we do caution you before doing this to really make sure that everything has been tried before hand before doing this ...

    You can edit the code in:
    /includes/init_includes/init_header.php

    To comment out the message for the warning:
    PHP Code:
    // check if the configure.php file is writeable
    if (WARN_CONFIG_WRITEABLE == 'true') {
      if ( (
    file_exists(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
        
    $messageStack->add('header'WARNING_CONFIG_FILE_WRITEABLE'warning');
      }

    to read:
    PHP Code:
    // check if the configure.php file is writeable
    if (WARN_CONFIG_WRITEABLE == 'true') {
      if ( (
    file_exists(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
    //    $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
      
    }

    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!

  3. #3
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: configure.php's CHMOD 444 is not recognized.

    Some servers require settings of 400 (Owner - Read Only). Give that a try.

    Vger

  4. #4
    Join Date
    Mar 2007
    Posts
    66
    Plugin Contributions
    0

    Default Re: configure.php's CHMOD 444 is not recognized.

    Quote Originally Posted by Ajeh View Post
    There have been servers where even the 444 does not remove the error as if the server is not reporting the settings properly ...

    If you are absolutely sure that your settings are 444 ...

    You can remove the warnings manually for your site ... but we do caution you before doing this to really make sure that everything has been tried before hand before doing this ...

    You can edit the code in:
    /includes/init_includes/init_header.php

    To comment out the message for the warning:
    PHP Code:
    // check if the configure.php file is writeable
    if (WARN_CONFIG_WRITEABLE == 'true') {
      if ( (
    file_exists(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
        
    $messageStack->add('header'WARNING_CONFIG_FILE_WRITEABLE'warning');
      }

    to read:
    PHP Code:
    // check if the configure.php file is writeable
    if (WARN_CONFIG_WRITEABLE == 'true') {
      if ( (
    file_exists(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
    //    $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
      
    }

    Does not work for me. I'm using v1.3.7

    how can i make the installer skip this check?

  5. #5
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: configure.php's CHMOD 444 is not recognized.

    Comment out all of that code, not just part of it, and comment out this code above it:

    define('WARN_CONFIG_WRITEABLE', 'true');

    Vger

  6. #6
    Join Date
    Mar 2007
    Posts
    53
    Plugin Contributions
    0

    Default Re: configure.php's CHMOD 444 is not recognized.

    I LOVE the zen-cart forum!!

    - you have a problem, you search and you find an answer!

    Thanks All

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: configure.php's CHMOD 444 is not recognized.

    If you set 444 via FTP, then you may find that your host does not allow 444 to be set via FTP - and even though you think you've changed to 444, it reverts to 644. You may have to set 444 via your host c-panel in a browser.
    20 years a Zencart User

  8. #8
    Join Date
    Jul 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: configure.php's CHMOD 444 is not recognized.

    Quote Originally Posted by Vger View Post
    Some servers require settings of 400 (Owner - Read Only). Give that a try.

    Vger
    I'm with hostgator & had to change my configure.php to 400 as it would revert from 444 to 644 & I checked it in cpanel file manager & ftp - both looked correct until a refresh.
    Once I changed to 400 - all good

    Thanks to all on the forum.

 

 

Similar Threads

  1. chmod configure.php changes did not work
    By delia in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 28 Jul 2011, 10:25 PM
  2. Change permission of Includes/Configure.php from 444 to 644.
    By anticobello in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 6 Jun 2011, 04:21 AM
  3. New Host - Cannot Chmod to 444
    By Cylants in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 5 Jun 2010, 08:33 PM
  4. cant chmod configure.php
    By shady1 in forum General Questions
    Replies: 8
    Last Post: 1 Sep 2008, 03:20 AM
  5. 444 perm on configure.php required after cpanel upgrade
    By Woodymon in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 24 Jan 2008, 11:52 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