Page 1 of 2 12 LastLast
Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    CTRL+F5 did not work (that is a client-side cache clear).

    I even did this:
    chmod -R 777 [to the top level zen-cart directory]!

    Now all the files are set to 777 permissions. Still not working!

    Is there anything in the Apache httpd.conf file with respect to <Directory> directives that might need tweaking?

    I even tried removing/renaming the .htaccess file in the includes dir.

    When I change a file permission to read/write only, i am certainly prohibitted from loading that page...

    I also changed the owner of all the files to "apache" ...didnt work

    I am having the same problem with osCommerce (I tried installing that one too)

    I'm out of ideas....

  2. #2
    Join Date
    Feb 2007
    Posts
    37
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    I have exactly the same problem. I too cannot find a solution given that the rights of these two files are set exactly as suggested. Any further thoughts from more experienced users would really be welcome.

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

    Default Re: Configure.php file permissions.

    This isn't a Zen Cart problem. Folders should be 755, and files 644 except for the two configure.php files - set to 755 or 777 during the installation. After the install is complete reset to 444 or 400 on an Apache based server.

    If you can't install with those permissions then you don't have the server set up correctly.

    Vger

  4. #4
    Join Date
    Jan 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    Are you running RH Linux? If so, the problem could be that you have Securtiy Enhanced Linux running on it... Once I configured SELinux to run in passive mode, my problem was solved!

    check your /etc/selinux/config file to see what mode your SELinux is running in.

    # SELINUX= can take one of these three values:
    # enforcing - SELinux security policy is enforced.
    # permissive - SELinux prints warnings instead of enforcing.
    # disabled - SELinux is fully disabled.

    If you change it to permissive mode, your problem should be fixed.

    You may also want to read up on how to configure your selinux so that you enforece the correct security policies.

    I hope this helps...

  5. #5
    Join Date
    Feb 2007
    Posts
    37
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    Well I'm using a pretty fresh install of Ubuntu 6.10 (Edgy), with Apache 2.0.55 and PHP 5.1.6. I don't think I have SELinux anywhere active on the system.
    Both the includes directory and the configure.php file have 777 rights.
    I have spent hours trawling the forum and see that this difficulty has arisen several times before. It may indeed not be a Zen software problem, but rather just a common user error, but none of the replies in the forum seems to show a repeatable solution - one of the frustrations I so often find with Linux.

  6. #6
    Join Date
    Feb 2007
    Posts
    37
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    Well I finally got past that problem, by restarting and following these instructions very carefully (up until the "apache2-ssl-certificate" command):

    http://www.zen-cart.com/forum/showthread.php?t=43937

    thank you for your help though.

  7. #7
    Join Date
    Feb 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    I don't know if it has been covered before, but an alternative to using cPanel or FTP to try to change file permissions is using PHP to do it... Maybe it could be part of the install script; "Set permissions on configuration files?"

    Code:
    <?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", 0444);
    chmod("includes/configure.php", 0444); 
    echo "Rights changed!<br><b>Delete this file! (" . $_SERVER["SCRIPT_NAME"] . ")</b>"; 
    ?>
    Last edited by mastermute; 15 Feb 2007 at 12:17 PM. Reason: speling ;)

  8. #8
    Join Date
    Dec 2006
    Location
    Tacoma, WA, USA
    Posts
    8
    Plugin Contributions
    0

    Idea or Suggestion Re: Configure.php file permissions.

    Quote Originally Posted by ndnguru View Post
    Are you running RH Linux? If so, the problem could be that you have Securtiy Enhanced Linux running on it... Once I configured SELinux to run in passive mode, my problem was solved!

    check your /etc/selinux/config file to see what mode your SELinux is running in.
    I had the same problem with files being 777 and still not writeable.

    So you don't have to turn off the SE security, here is the one command that made life better (I'm running RedHat Linux and apparently SELinux).

    chcon -R -h -t httpd_sys_content_t /path/to/zencart/code/

    This will recusrively add the directories/files you need to the SE writeable list.

    No refresh or restart needed, it just worked.

    ~ B

  9. #9
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    hy guys im using a shared hosting so i canèt tweak the server.

    i have tryed it all and it does not workÉas soon as i put the chmod to 444 i refresh my ftp and it goes back to 644 automaticly?

    is there a way to fix this??

    Warning: I am able to write to the configuration file: /home/hugues/public_html/magasin/includes/configure.php. This is a potential security risk - please set the right user permissions on this file (read-only, CHMOD 644 or 444 are typical). You may need to use your webhost control panel/file-manager to change the permissions effectively. Contact your webhost for assistance.

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

    Default Re: Configure.php file permissions.

    Use the File Manager in your web hosting control panel to change the permissions.

    Using FTP does not work on Windows servers - because chmod is for Apache servers only.

    Some Apache hosting setups will allow you to increase permissions using FTP e.g. 400 to 644, but then to reduce them again you have to use the File Manager.

    Vger

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Permissions...Configure.php
    By etecdirect in forum General Questions
    Replies: 1
    Last Post: 6 Oct 2010, 10:02 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