Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    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.

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

  3. #13
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    opps did i mention windows?

    it is linux.sorry

  4. #14
    Join Date
    Jun 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    Nice code, worked for me Thanks mastermute

  5. #15

    Default Re: Configure.php file permissions.

    Quote Originally Posted by mastermute View Post
    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>"; 
    ?>
    THANK YOU!
    Solved my problem!!!

  6. #16
    Join Date
    Jun 2007
    Location
    St. Paul, Minnesota, USA
    Posts
    19
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    Hey techkner

    You might want to contact your host and ask them to change those permissions for you, since you say you don't have access to the server.

    If you have CPanel access though, you should be able to change the permissions from the File Manager tool.

    Hope that helps!
    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    B. Woods Design - Professional Managed Website Solutions

  7. #17
    Join Date
    Jun 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    I had posted to another thread entitled Red Flag at the Top before I discovered this thread, but the forum will not let me delete the post so I can put it here, so I apologize for the dual posts, but thought my problem might get more attention in this thread. Perhaps the admin will delete it for me.

    This is the nature of the error:

    I am able to write to the configuration file: /home/mysite/public_html/catalog/includes/configure.php

    I have the same problem on a shared Linux server. Umask is set such that it forces any changes I make to the owner to 6xx. I have attempted to set the perms on this file to 644, 444, 400, and 600 but the best I can achieve is 6xx and I still get the red warning message cited above when I access my site. I did clear my cache just to make certain that I was picking up the changes.

    I also have a Fedora Core 6 server in my lab and I was able to install the zencart perfectly on the other system using Filezilla to upload to both servers and to manage setting the permissions.

    I found another thread about Filezilla failing to actually change the perms but I have never seen this problem for anything else I have installed on either server.

    Thus I think the problem is with my ISP (Lunarpages), but it would be nice to be able to tell them where the problem is.

    Thanks for any suggestions.
    Last edited by tivrod; 26 Jun 2007 at 01:07 AM.

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

    Default Re: Configure.php file permissions.

    If Lunar Pages provide you with cPanel then use the File Manager in cPanel to change permissions.

    Vger

  9. #19
    Join Date
    Jun 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    I resolved the problem and I want to share my process with everyone else in hopes that this will work for them.

    I had stated that CPanelX was showing 644 permissions and that was correct.

    However, I did not actually change the perms in CPanelX since it agreed with the results I was seeing in Filezilla.

    Since Filezilla apparently would always force 6xx, I assumed that I did not need to change the perms in CPanelX.

    Once I went into CPanelX, I found that I could change the permissions to 444, which resolved my problem.

    Good luck to everyone else having this problem.

  10. #20
    Join Date
    Jun 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Configure.php file permissions.

    Quote Originally Posted by Vger View Post
    If Lunar Pages provide you with cPanel then use the File Manager in cPanel to change permissions.

    Vger
    Thanks Vger!

    I saw your post immediately after I had done exactly that and that did indeed resolve the problem.

    Now I have to figure out why Filezilla is not changing the perms on my shared server as I have never had that problem on any of the Linux systems I have.

 

 
Page 2 of 3 FirstFirst 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