forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 install => Topic started by: Jastro on September 28, 2010, 08:46:23 pm

Title: Could not read the file include/init.inc.php for reading
Post by: Jastro on September 28, 2010, 08:46:23 pm
Just downloaded cpg1.5 and set up IIS and mySQL before starting install.php.
At the very beginning of installing I get this error message:
"Could not read the file include/init.inc.php for reading."
Checked and made sure the file is there and have read rights, but still no luck.  ???

Actually there is a little spelling mistake in the install.php file for this error message, but i'm not worried about that.  ;)

Anyone else seen this and can guide me past it ?

Regards

Jastro
Title: Re: Could not read the file include/init.inc.php for reading
Post by: Nibbler on September 28, 2010, 08:52:44 pm
Means the file could not be opened for reading, so you need to fix permissions. Can't tell you any more than that since I don't use IIS.

Code: [Select]
    $handle = @fopen('include/init.inc.php', 'r');
    if ($handle == FALSE) {
        $page_title = 'Could not fopen';
        html_header();
        echo 'Could not read the file inlucde/init.inc.php for reading. Make sure it exists and is readable, then try again.';
        html_footer();
        die;
    }
Title: Re: Could not read the file include/init.inc.php for reading
Post by: Jastro on September 28, 2010, 09:08:37 pm
Thanks for a very quick response !
My first though was to tweek the permissions and even given full access rights (to all cpg files!) doesn't make a difference.. :-(
So i'm still a bit stuck.
And yes its the 'include/init.inc.php' in question, not 'inlucde/init.inc.php' as the error message states. ;-)
Title: Re: Could not read the file include/init.inc.php for reading
Post by: Nibbler on September 29, 2010, 10:24:25 am
Try removing the @ from that line and see if you get an error message from PHP.