Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Jan 2004
    Posts
    58,471
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Help on Permissions

    Quote Originally Posted by wtwolf6 View Post
    The zencart scripts are either A reading the wrong permissions or B does not read permissions right on a windows server

    This is a windows server.
    Where is the code that checks permissions located so I can remove it.
    All files are secure so I am no worring about this as it is a simple error in zens scripts.
    Not my server permissions.
    Permissions for web server and domain are set correctly
    It must be a PHP thing on your server then.

    This is what Zen Cart does:
    PHP Code:
      if ( (file_exists(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php')) 
        && (
    is_writeable(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
       
    // give alert
      

    Basically, that says:
    - if the /includes/configure.php file EXISTS (file_exists())
    AND
    - if PHP sees the file as WRITABLE (is_writable())
    THEN
    - give the warning message

    If you're convinced that the message is wrong, just add an extra file to your /includes/extra_configures folder:
    - call it "bypass_config_warning.php"
    -inside it, put this one line:
    Code:
    <?php define('WARN_CONFIG_WRITEABLE', 'false'); ?>
    That'll tell Zen Cart to ignore the fact that PHP thinks it's writable and rely on you to ensure that it's safe.
    The security is then ENTIRELY UP TO YOU ... be sure to double-check permissions after any and every edit. Zen Cart will no longer give you any warnings on the issue.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  2. #12

    Default Re: Help on Permissions

    Thankyou so much thats all I needed.

    I have searched for a few explanations on why this would occure but can not find any.

    Maybes it just windows with plesk I am not sure

    But the file is safe so thank you that what I needed. Now I can start with the sites.
    www.Trophyarcade.com - Think your bad? Prove it to the world
    www.extremegamegods.com - Game top sites for D2 to CS
    www.ladderdueling.com - Diablo 2 gaming related site

  3. #13
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default Re: Help on Permissions

    I just experienced the same problem on a new install. The server should not be the source of the problem, since I am running other zencarts on the same server with no warning message.

    I do know that this warning did NOT appear until after I modified the config file (I added the folder name for phpBB2 in the correct line), then uploaded it, then set the permissions to 644. Suddenly the warning message appeared on the index page and will not go away. I also tried 444 permissions, but it had no effect.

    I am stumped on this except for the idea to override the warning which I am not too thrilled about (for obvious reasons).

  4. #14
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default Re: Help on Permissions

    Life is a mystery...I solved it by changing the permissions over and over and over again. Aren't computers wonderful?!?

    I probably could have solved it faster using the ol' "hammer on the keyboard" method. My hardware supplier likes it when I use that method frequently.


 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. permissions
    By neilowens in forum Installing on a Windows Server
    Replies: 2
    Last Post: 9 Jul 2007, 05:39 PM
  2. Directory Permissions
    By Woodymon in forum General Questions
    Replies: 3
    Last Post: 7 Jan 2007, 07:52 AM
  3. write permissions - What do I do
    By eric97007 in forum Installing on a Windows Server
    Replies: 4
    Last Post: 16 Aug 2006, 04:02 PM
  4. Froogle and image permissions
    By v0903856 in forum General Questions
    Replies: 2
    Last Post: 8 Jun 2006, 05:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •