coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: OzButcher on April 09, 2007, 05:33:30 AM

Title: Fatal Error - After install and trying to load login.php
Post by: OzButcher on April 09, 2007, 05:33:30 AM
Hey guys,

I've installed CPG galleries before and never had this problem before.

I just installed latest version of CPG to: /gallery on my host.

Ran the setup.. installed fine. When it asked to continue and load the login.php I got this error:

Fatal error: require_once() [function.require]: Failed opening required 'include/config.inc.php' (include_path='.:/usr/local/lib/php/') in /mounted-storage/------/-----/-----/dreamtmwa.com/gallery/include/init.inc.php on line 155

I blanked out some of the server URL above.
Title: Re: Fatal Error - After install and trying to load login.php
Post by: Sami on April 09, 2007, 06:24:20 AM
check if you have config.inc.php or not it should be on {gallery-root}/include/config.inc.php

if you don't , it means that installation process couldn't create it because of permission (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#permissions) issue (include folder should be writable during installation) so you should create it manually by using config.inc.php.sample and put necessary info in to it
Title: Re: Fatal Error - After install and trying to load login.php
Post by: OzButcher on April 09, 2007, 10:36:39 AM
thanks Sami.

Aparently the config.php file permission and ownership was wrong.

I didn't know I had to change the permissions on that file. I only changed permissions on the /includes and /albums folders and subfiles.
Title: Re: Fatal Error - After install and trying to load login.php
Post by: Joachim Müller on April 09, 2007, 10:44:14 AM
Quote from: OzButcher on April 09, 2007, 10:36:39 AM
thanks Sami.

Aparently the config.php file permission and ownership was wrong.

I didn't know I had to change the permissions on that file.
You usually don't have to. This depends on server setup. You might run into issues with uploading later, so you better make sure to fix this permanently (seeking support from your webhost). The files created by the coppermine script need to be readable and executable for the visitor of your site.