Fatal Error - After install and trying to load login.php Fatal Error - After install and trying to load login.php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Fatal Error - After install and trying to load login.php

Started by OzButcher, April 09, 2007, 05:33:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

OzButcher

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.

Sami

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 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
‍I don't answer to PM with support question
Please post your issue to related board

OzButcher

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.

Joachim Müller

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.