Inactive
- Join Date:
- Oct 2006
- Location:
- Alberta, Canada
- Posts:
- 4,572
- Plugin Contributions:
- 0
[Not a bug] When PHP is run as CGI
ZenCart v1.3.7
PHP Version: 5.2.1 (Zend: 2.2.0)
Zend Optimizer Version: 3.2.2
Database: MySQL 4.1.21-standard
I have noticed, on two different Servers when PHP is run as CGI, one will see that big error msg. with the Red background;
"Warning: I am able to write to the configuration file: ... "
This is a bug because the directory/file permissions "are" correct.
Also seems to be a Grandfather bug because osCommerce (any version) gives the same error msg. as well.
Current Solutions are to edit or comment out, either of;
line 313 of /includes/languages/english.php (default install)
define('WARNING_CONFIG_FILE_WRITEABLE', ... ');
or
line 24 of /includes/init_includes/init_header.php
define('WARN_CONFIG_WRITEABLE', 'true');
Can anyone advise as to alternative or better solution?
And let us not get into the pro's & con's of whether to run PHP as CGI or not. Some prefer to and that's simply the way things are. :wink2:
The learning is in the doing.