Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jul 2009
    Posts
    104
    Plugin Contributions
    0

    Default localhost everything not writeable

    Fedora FC32, ZC 157zip. I need/want to install on localhost so I can get my DB and items correct before I deploy to my life site.

    So I downloaded 157.zip. As root cd'ed to /var/www/html and ran unzip 157, renamed to zencart, chown -R apache.apache. When I then browse to http://localhost/zencart I get: ... CLICK HERE to begin installation. which gives me:

    Catalog /includes/configure.php file either does not exist, is not readable or is not writeable
    Admin /admin/includes/configure.php file either does not exist, is not readable or is not writeable
    /var/www/html/zencart/logs folder is not writeable
    ...
    Possible problems with database connection

    I can create a writeable configure.php file - no change and Google hasn't been any help.
    Thanks in advance.

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

    Default Re: localhost everything not writeable

    Sounds like a linux permissions issue.
    You'll need to sort out why PHP is being told by the filesystem that the files aren't writable.
    Probably the PHP process is running as a user that doesn't have access to the files because the files are owned by a user with different privileges.
    .

    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
    Jul 2009
    Posts
    104
    Plugin Contributions
    0

    Default Re: localhost everything not writeable

    Found 2 things (so far)

    1) Remove "'/../" from all
    define('DIR_FS_ROOT', realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/../') . '/');
    making them
    define('DIR_FS_ROOT', realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/');
    above is example as there is realpath(__DIR__ ) also.

    2) I needed to "setenforce Permissive" to get Is_writable() to work. Otherwise it returned NULL.

    Then it dies ... more to come

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

    Default Re: localhost everything not writeable

    Quote Originally Posted by liderbug View Post
    1) Remove "'/../" from all
    define('DIR_FS_ROOT', realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/../') . '/');
    making them
    define('DIR_FS_ROOT', realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/');
    above is example as there is realpath(__DIR__ ) also.
    Shouldn't have to change any Zen Cart code.

    These are server operating system, user permission, and php/apache configuration issues.
    .

    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
    Jul 2009
    Posts
    104
    Plugin Contributions
    0

    Default Re: localhost everything not writeable

    Next problem: Seems all of the configure pages have <form action= ... data-abide="ajax"> and "data-abide" causes the [Continue] buttons to fail. It seems to be in the js scripts but not working.

    To ans on your previous post - "These are server operating system,..." I can tar off my production system on the remote server, download and untar as /var/www/html/production.com and run things just fine. 1st problem is the current production.com is old version. I've tried to upgrade production, however my hosting company has decided to go 100% WordPress. Good thing I had a good backup - code & DB - it did not go well. So I've DL'ed 1.5.7 zip, unzip to /var/www/html then mv ...1.5.7 to zencart. Then in my browser "localhost/zencart" is how I'm trying to get thing working. If you have any pointers, suggestions, please.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: localhost everything not writeable

    Quote Originally Posted by liderbug View Post
    I can tar off my production system on the remote server, download and untar as /var/www/html/production.com and run things just fine.
    tar usually retains filesystem permissions, so given that's working fine it seems to confirm that whatever you're doing the other way still needs to change file/dir permissions/ownership to suit your server's configuration
    .

    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.

  7. #7
    Join Date
    Aug 2022
    Location
    USA
    Posts
    1
    Plugin Contributions
    0

    Default Re: localhost everything not writeable

    I know this is an old thread but since I was having this issue and only found this thread that didn't answer the question, I thought I would post the solution that I found.

    The OP forgot to copy the distro_configure.php files to configure.php

    Code:
    cd includes
    cp distro_configure.php configure.php
    cd ../admin/includes
    cp distro_configure.php configure.php
    Make sure that the configure files are writeable and all should be good.


    Quote Originally Posted by liderbug View Post
    Fedora FC32, ZC 157zip. I need/want to install on localhost so I can get my DB and items correct before I deploy to my life site.

    So I downloaded 157.zip. As root cd'ed to /var/www/html and ran unzip 157, renamed to zencart, chown -R apache.apache. When I then browse to http://localhost/zencart I get: ... CLICK HERE to begin installation. which gives me:

    Catalog /includes/configure.php file either does not exist, is not readable or is not writeable
    Admin /admin/includes/configure.php file either does not exist, is not readable or is not writeable
    /var/www/html/zencart/logs folder is not writeable
    ...
    Possible problems with database connection

    I can create a writeable configure.php file - no change and Google hasn't been any help.
    Thanks in advance.

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,106
    Plugin Contributions
    11

    Default Re: localhost everything not writeable

    With the growth of Zen Cart's zc_install abilities, copying distro_configure.php files is seldom a needed option.

    Check out the upgrade options in the Docs. If you need to see it in a different language than English, click on the Accessibility Icon in the lower, right-hand corner.

    https://docs.zen-cart.com/user/upgrading/

  9. #9
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Re: localhost everything not writeable

    I have similar problems in /usr/var/html which is where the ZenCart files have to go but I cannot copy, move or anything else in that directory.
    Same thing happens in /usr/share/docs, I am not allowed to extract compressed files.
    This is a Linux permissions issue, how fix?

  10. #10
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Re: localhost everything not writeable

    SOLVED!!
    Followed instructions here:
    https://www.ibm.com/docs/en/spectrum...d-mysqlmariadb

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 configure.php file does not exist (isn't readable) or is not writeable
    By raj_ics in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 13 Jan 2018, 06:37 AM
  2. store configure.php is not writeable
    By Skullman in forum Basic Configuration
    Replies: 2
    Last Post: 24 Sep 2014, 06:32 PM
  3. Catalog images not writeable error
    By thomaspark in forum General Questions
    Replies: 1
    Last Post: 28 Nov 2009, 08:14 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