Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

main Install problem


Recommended Posts

Anybody knows what this probklem is all about ???



Warning: main(includes/configure.php): failed to open stream: No such file or directory in /srv/www/htdocs/joomla/catalog/includes/application_top.php on line 29


Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='/usr/share/php') in /srv/www/htdocs/joomla/catalog/includes/application_top.php[code]

Link to comment
Share on other sites

Yes, PHP cannot find the osCommerce configuration file includes/configure.php.


Because the file is specified using a relative path (i.e; the path doesn't start from root /) PHP tries to find the files by appending includes/configure.php to a list of directories called the include_path where commonly used files are located.


In your case include_path is set to /usr/share/php so PHP will use the absolute path /usr/share/php/includes/configure.php to find the file.


If you look you'll see it isn't there, so PHP is correct to fail.


The problem is, include_path should include an entry that tells PHP to also search the current working directory (CWD) first. The CWD is the directory where the script that is running lives.


E.g. If you opened http://localhost/catalog/index.php the server will read the file /home/username/public_html/catalog/index.php, so its CWD would be /home/username/public_html/catalog/ and includes would usually be relative to that location.


This is what your script is expecting, but the reference to the CWD has been removed from include_path. You need to edit the php.ini file and add it in. It is a dot followed by a forward-slash: ./


So it should end up looking like this:


include_path = ./;/usr/share/php/


(on Windows it would be just the dot, without the forward-slash.)


Don't miss out the semi-colon ; that separates multiple directories in the include_path.

Link to comment
Share on other sites


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

  • Create New...