Install error (Multiple error) Install error (Multiple error)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Install error (Multiple error)

Started by Belzebuth Jr, November 26, 2004, 04:04:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Belzebuth Jr

Hi,

(sorry for my english, but...) I almost get crazy trying Coppermine working on my self hosted server, and I want to share my problem and solution here. For now, everything work.  So my spec:

Windows Server 2003
Apache 2.0
MySql 3.23.49
PHP 4.3.9

After the installation page, I was getting a blank screen. I look at my apache error log file, and I have this:

QuotePHP Warning:  fopen() expects at least 2 parameters, 1 given in [...]\\coppermine\\install.php on line 531, referer: http://[...].homeip.net/coppermine/install.php
PHP Warning:  fpassthru(): supplied argument is not a valid stream resource in [...]\\coppermine\\install.php on line 531, referer: http://[...].homeip.net/coppermine/install.php
PHP Warning:  fopen() expects at least 2 parameters, 1 given in [...]\\coppermine\\install.php on line 536, referer: http://[...].homeip.net/coppermine/install.php
PHP Warning:  fpassthru(): supplied argument is not a valid stream resource in [...]\\coppermine\\install.php on line 536, referer: http://[...].homeip.net/coppermine/install.php
PHP Warning:  main(include/config.inc.php): failed to open stream: No such file or directory in [...]\\coppermine\\include\\init.inc.php on line 201, referer: http://[...].homeip.net/coppermine/install.php
PHP Fatal error:  main(): Failed opening required 'include/config.inc.php' (include_path='D:\\xxx\\PHP\\pear') in [...]\\coppermine\\include\\init.inc.php on line 201, referer: http://[...].homeip.net/coppermine/install.php

To get rid of fopen() and fpassthru() errors, I modified my install.php like this (modification in red bold), around line 531:


Quoteif ($HTTP_GET_VARS['test_gd1']) { // GD1 test
    $im = imagecreate(1, 1);
    imagecolorallocate ($im, 255, 255, 255);
    imagejpeg($im, "{$DFLT['alb_d']}/{$DFLT['upl_d']}/gd1.jpg");
    header("Content-type: image/gif");
    fpassthru(fopen('images/spacer.gif','rb'));
} elseif ($HTTP_GET_VARS['test_gd2']) { // GD2 test
    $im = imagecreatetruecolor(1, 1);
    imagejpeg($im, "{$DFLT['alb_d']}/{$DFLT['upl_d']}/gd2.jpg");
    header("Content-type: image/gif");
    fpassthru(fopen('images/spacer.gif','rb'));
} elseif ($HTTP_GET_VARS['phpinfo'] && !file_exists($DFLT['lck_f'])) {

And, for the 2 last error (include/config.inc.php), I add a dot (.) in the include_patch of my php.ini. My php.ini look like this:

include_path=".;[...]\PHP\PEAR"

The dot (.) is before the ;[...]\PHP\PEAR"

Hope this could help


--------------------

Belzebuth Jr

Joachim Müller

alhough there's no CHMOD on Windoze, there are still file/folder permissions. Did you set them appropriately / at all?

Joachim