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.
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
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.
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.