Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2007
    Posts
    125
    Plugin Contributions
    0

    help question config.php becomes writeable

    We very recently installed ZenCart on a Windows hosting platform. After the install I got a flag that /includes/config.php was writeable on the ZenCart main page, so I asked the hosting vendor to reset the permissions (since they have a crummy control panel that won't let me do it). All was well, but about 2 weeks later I did some work in the admin back end, mostly setting configuration details (I'm still building the site), and yesterday I checked the store page and it said that /includes/config.php was writeable.

    I'm not aware of having done anything to ZenCart that would affect that permission. I asked the vendor support team about it and they have no clue. What actions can a developer take, purely in the Admin interface, that would set /includes/config.php as writeable again? We can't afford to have that flag come up after we bring the site live, it'll scare the pants off the customers.

    hedera

    Nature bats last.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: config.php becomes writeable

    There is nothing admin-side that allows you to change the permissions on your configure.php files. Any sudden changes with new warning messages about permissions are a result of something changing in the file's permissions or in the server's approach to handling permissions. Perhaps there was a PHP software or configuration change on your server.

    FAQ on setting permissions:
    https://www.zen-cart.com/tutorials/index.php?article=90

    Here's how to suppress the warning if you believe the file is secure:
    http://www.zen-cart.com/forum/showpo...63&postcount=8
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  3. #3
    Join Date
    Nov 2007
    Posts
    125
    Plugin Contributions
    0

    Default Re: config.php becomes writeable

    Thanks for your response, DrByte, but I'm still concerned, because I didn't do one single thing which I knew would change that file permission. I briefly scanned your link on file permissions, which didn't surprise me (I've done admin work on both Windows and Solaris boxes). I guess this is just one more mark against the hosting company (which I didn't choose...).

    Actually, I just had a thought. I'm using Microsoft Expression Web to manage this site on my local PC, and I republished the site. Could that have reset the file permission on config.php?? That would have to mean that the file was default writeable on my local PC and was then published that way to the server. If that's so I'll have to reset that file permission locally... Do you think that could be it?
    hedera

    Nature bats last.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: config.php becomes writeable

    Quote Originally Posted by hedera View Post
    Actually, I just had a thought. I'm using Microsoft Expression Web to manage this site on my local PC, and I republished the site. Could that have reset the file permission on config.php?? That would have to mean that the file was default writeable on my local PC and was then published that way to the server. If that's so I'll have to reset that file permission locally... Do you think that could be it?
    Not likely, but you could try it.

    But *why* would you use a MS product to manage a PHP website? Dangerous territory.
    Tread carefully there. MS has a long history of screwing things up when publishing PHP content. (and other stuff too, but I'll spare them that embarrassment this time)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  5. #5
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default Re: config.php becomes writeable

    There's nothing wrong with using MS products to manage PHP files, they are just text files, but one does have to learn about things like read-only etc. Forewarned is forearmed. :) tom

 

 

Similar Threads

  1. Writeable configure.php warnings
    By gmahler5th in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 5 Aug 2008, 03:32 AM
  2. admin configure.php is not writeable
    By tat1973 in forum Installing on a Windows Server
    Replies: 1
    Last Post: 15 Nov 2007, 06:41 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR