Modify the configure.php Files


On completion of the Zen Cart Installer, the first time you visit your new Zen Cart store you will notice two red security warnings at the top of the screen.  First we will address the warning relating to the configure.php files.  In Step 7 of the Install process we created two configure.php files and set the file permissions to read/write/execute for all on both.  Now that the Zen Cart Installer has written the store configuration details to these files, we need to set the two files back to read only (or CHMOD 444).

Sometimes it is not possible to set the permissions to read-only with your FTP software (even if it appears to be setting it to read-only), the best way is to use your web hosts control panel, such as the File Manager in cPanel.image

    1. Log in to cPanel.
    2. Click on File Manager.
    3. Select the correct location of your Zen Cart install and click the Go button.
      cPanel File Manager
    4. Double click on the /includes folder and scroll down to the file named configure.php.  Tick the checkbox next to this file and click on the Change Permissions icon in the menu.
      Change Permissions
    5. Untick the Write and Execute boxes until the Permission reads 4 4 4 (read-only for all), then click the Change Permissions button.
      Change File Permissions
    6. Navigate to the root of your Zen Cart install and double click on the Admin folder.
    7. Locate the configure.php file.

      Note: that while the Online Catalog configure.php and the Admin configure.php files are similar, these are not identical files and cannot be transferred or copied between the two locations.

    8. Then, as before, click on Change Permissions and change to 4 4 4 (read-only for all).
    9. The configure.php files are now ready.  Visit your Zen Cart store front again and you will see that only one red security warning remains.
      Modify configure.php files

More Zen Cart:

  1. Create the configure.php files
  2. Set File Permissions on folders
  3. How to backup your Zen Cart Store Files & Templates using cPanel
  4. Upload the Zen Cart .zip file to your web server
  5. Rename Zen Cart Admin folder for increased security
  1. No comments yet.
(will not be published)