Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Jan 2007
    Posts
    6
    Plugin Contributions
    0

    Default Configure.php file permissions.

    I am trying to install Zen-Cart on a Linux system. I have properly set the permissions of the two configure.php files (includes/configure.php and admin/incudes/configure.php). I also set the correct permissions for all the other directories as recommended by the installation wizard. The installer still complains that the two configure.php files are unwriteable.

    I checked numerous times and reset the permissions numerous times.

    Anyone know why this is happening? I cannot move to the next phase of installation without correcting these errors.

    What should I do?

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Configure.php file permissions.

    try clearing your cache,
    hit ctrl + F5
    give it another try

    also verify that the permission changes to the configure.php files actually took place

    make sure to refresh the ftp window and check the file properties to make sure that the change took place
    Zen cart PCI compliant Hosting

  3. #3
    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....

  4. #4
    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.

  5. #5
    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

  6. #6
    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...

  7. #7
    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.

  8. #8
    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.

  9. #9
    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 ;)

  10. #10
    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

 

 
Page 1 of 3 123 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