Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

RHEL, Zend and osCommerce experience


GraphicsGuy

Recommended Posts

Posted

I just had an experience I thought I would share for anyone that might also encounter it. Perhaps it will save them time and frustration.

 

I recently upgraded my server to Redhat Enterprise Linux 3 with a Plesk Control Panel. I also run Zend Optimizer to satisfy the needs of a script I use on another site on my server.

 

I restored my osCommerce site that I am building and it worked fine. Then I installed Zend and the other site. Later when I came back to my osCommerce site, it wouldn't get past a blank page on either customer or admin side. The error log reported:

PHP Warning:  main(includes/configure.php): failed to open stream: No such file or directory in /path/to/my/catalog/includes/application_top.php on line 29

PHP Fatal error:  main(): Failed opening required 'includes/configure.php' (include_path='/usr/local/psa/admin/plib:/usr/local/psa/admin/javascripts:/usr/local/psa/admin/plib/locale:/usr/local/psa/admin/auto_prepend:/usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin:/usr/local/psa/admin/htdocs/domains/databases/phpPgAdmin') in /path/to/my/catalog/includes/application_top.php on line 29

After spending a fair amount of time tweaking permissions and ownerships and searching for solutions here and on Google, I started investigating the changes that Zend made to the php.ini file. One change that stood out was a very long include_path statement matching the one in the error message. I commented it out, restarted Apache and everything worked. I double checked the site that requires Zend and it is working fine.

 

After doing this, I was able to return configure.php back to a 440 permission level and everything still works.

Rule #1: Without exception, backup your database and files before making any changes to your files or database.

Rule #2: Make sure there are no exceptions to Rule #1.

Posted

The path is unusually long :blink: importantly, it was missing .: which is required for relative paths (.; on Windows servers).

 

Matti

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...