Install Errors Install Errors
 

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 Errors

Started by KWH, December 24, 2006, 01:09:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

KWH

I am probably jumping in way over my head, but I like what Coppermine has to offer for my site.  I tried installing tqice and here is what i got each time:

continue with the install. If you are using a nuke portal, you might want to take a look into CpgNuke or use one of the (unsupported) coppermine ports - do not continue!" ); } // end check // Report all errors except E_NOTICE // This is the default value set in php.ini error_reporting (E_ALL ^ E_NOTICE); require('include/sql_parse.php'); // ---------------------------- TEST PREREQUIRED --------------------------- // function test_fs() { global $errors, $DFLT; // include must be writable to create config file if (! is_dir($DFLT['cfg_d'])) { $errors .= "
--------------------------------------------------------------------------------

A subdirectory called '{$DFLT['cfg_d']}' should normally exist in the directory where you uploaded Coppermine. The installer can't find this directory. Check that you have uploaded all Coppermine files to your server.

"; } elseif (! is_writable($DFLT['cfg_d'])) { $errors .= "
--------------------------------------------------------------------------------

The '{$DFLT['cfg_d']}' directory (located in the directory where you uploaded Coppermine) should be writable in order to save your configuration. Use your FTP program to change its mode to 777.

"; } // albums must be writable to upload pictures if (! is_dir($DFLT['alb_d'])) { $errors .= "
--------------------------------------------------------------------------------

A subdirectory called '{$DFLT['alb_d']}' should normally exist in the directory where you uploaded Coppermine. The installer can't find this directory. Check that you have uploaded all Coppermine files to your server.

"; } elseif (! is_writable($DFLT['alb_d'])) { $errors .= "
--------------------------------------------------------------------------------

The '{$DFLT['alb_d']}' directory (located in the directory where you uploaded Coppermine) should be writable in order to allow pictures upload. Use your FTP program to change its mode to 777.

"; } // userpics must be writable to upload pictures if (! is_dir("{$DFLT['alb_d']}/{$DFLT['upl_d']}")) { $errors .= "
--------------------------------------------------------------------------------

A subdirectory called '{$DFLT['upl_d']}' should normally exist in the 'albums' directory. The installer can't find this directory. Check that you have uploaded all Coppermine files to your server.

"; } elseif (! is_writable("{$DFLT['alb_d']}/{$DFLT['upl_d']}")) { $errors .= "
--------------------------------------------------------------------------------

The '{$DFLT['upl_d']}' directory (located in the 'albums' directory on your server) should be writable in order to allow pictures upload. Use your FTP program to change its mode to 777.

"; } // edit must be writable to edit pictures if (! is_dir("{$DFLT['alb_d']}/{$DFLT['edit_d']}")) { $errors .= "
--------------------------------------------------------------------------------

A subdirectory called '{$DFLT['edit_d']}' should normally exist in the 'albums' directory. The installer can't find this directory. Check that you have uploaded all Coppermine files to your server.

"; } elseif (! is_writable("{$DFLT['alb_d']}/{$DFLT['edit_d']}")) { $errors .= "
--------------------------------------------------------------------------------

The '{$DFLT['edit_d']}' directory (located in the 'albums' directory on your server) should be writable in order to allow pictures upload. Use your FTP program to change its mode to 777.

"; } // sql directory must exist if (! is_dir("{$DFLT['sql_d']}")) { $errors .= "
--------------------------------------------------------------------------------

A subdirectory called '{$DFLT['sql_d']}' should normally exist in the directory where you uploaded Coppermine. The installer can't find this directory. Check that you have uploaded all Coppermine files to your server.

"; } } // ----------------------------- TEST FUNCTIONS ---------------------------- // function test_sql_connection() { global $errors; if (!function_exists('mysql_connect')){ $errors .= "
--------------------------------------------------------------------------------

PHP does not have MySQL support enabled.

"; } elseif (! $connect_id = @mysql_connect($_POST['dbserver'], $_POST['dbuser'], $_POST['dbpass'])) { $errors .= "
--------------------------------------------------------------------------------

Could not create a mySQL connection, please check the SQL values entered

MySQL error was : " . mysql_error() . "

"; } elseif (! mysql_select_db($_POST['dbname'], $connect_id)) { $errors .= "
--------------------------------------------------------------------------------

mySQL could not locate a database called '{$_POST['dbname']}' please check the value entered for this

"; } } function test_admin_login() { global $errors; if ($_POST['admin_username'] == '' || $_POST['admin_password'] == '') $errors .= "
--------------------------------------------------------------------------------

It is much better for you to provide a 'username' and a 'password' for the admin.

"; if (!preg_match('/\A\w*\Z/', $_POST['admin_username']) || !preg_match('/\A\w*\Z/', $_POST['admin_password'])) $errors .= "
--------------------------------------------------------------------------------

Admin username and password must only contain alphanumeric characters.

"; } function test_im() { global $errors, $DFLT, $im_installed; $im_installed = false; if ($_POST['impath'] != '') { if (!preg_match('|/\Z|', $_POST['impath'])) $_POST['impath'] .= '/'; if (!is_dir($_POST['impath'])) { $errors .= "
--------------------------------------------------------------------------------

The installer can not find the '{$_POST['impath']}' directory you have specified for ImageMagick or it does not have permission to access it. Check that your typing is correct and that you have access to the specified directory.

"; } elseif (preg_match('/ /', $_POST['impath'])) { $errors .= "
--------------------------------------------------------------------------------

The path you have entered for ImageMagick ('{$_POST['impath']}') contains at least one space. This will cause problems in the script.

You must move ImageMagick to another directory.

"; } elseif (!file_exists($_POST['impath'] . 'convert') && !file_exists($_POST['impath'] . 'convert.exe')) { $errors .= "
--------------------------------------------------------------------------------

The installer can not find the 'convert' or 'convert.exe' ImageMagick program in directory '{$_POST['impath']}'. Check that you have entered the correct directory name.

"; } else { $output = array(); $tst_image = "{$DFLT['alb_d']}/{$DFLT['upl_d']}/im.gif"; exec ("{$_POST['impath']}convert images/coppermine_logo.png $tst_image", $output, $result); $size = getimagesize($tst_image); unlink($tst_image); $im_installed = ($size[2] == 1); if (!$im_installed) $errors .= "
--------------------------------------------------------------------------------

The installer found the ImageMagick 'convert' program in '{$_POST['impath']}', however it can't be executed by the script.

You may consider using GD instead of ImageMagick.

"; if ($result && count($output)) { $errors .= "The convert program said:

";
                foreach($output as $line) $errors .= htmlspecialchars($line);
                $errors .= "


"; } } } return $im_installed; } // Test is safe_mode is misconfigured function test_silly_safe_mode() { global $DFLT; $test_file = "{$DFLT['alb_d']}/{$DFLT['upl_d']}/dummy/dummy.txt"; @mkdir(dirname($test_file), 0755); $fd = @fopen($test_file, 'w'); if (!$fd) { @rmdir(dirname($test_file)); return true; } fclose($fd); @unlink($test_file); @rmdir(dirname($test_file)); } // -------------------------- DETECTION FUNCTIONS -------------------------- // // What package is available for image manipulations function detect_img_package() { global $errors, $notes, $DFLT, $im_installed; $no_img_package_detected = false; $tst_image = "{$DFLT['alb_d']}/{$DFLT['upl_d']}/gd1.jpg"; $size = @getimagesize($tst_image); @unlink($tst_image); $gd1_installed = ($size[2] == 2); $tst_image = "{$DFLT['alb_d']}/{$DFLT['upl_d']}/gd2.jpg"; $size = @getimagesize($tst_image); @unlink($tst_image); $gd2_installed = ($size[2] == 2); if ($im_installed) { $_POST['thumb_method'] = 'im'; } elseif ($gd2_installed) { $_POST['thumb_method'] = 'gd2'; } elseif ($gd1_installed) { $_POST['thumb_method'] = 'gd1'; } else { $_POST['thumb_method'] = 'gd2'; $no_img_package_detected = true; $notes .= "
--------------------------------------------------------------------------------

Your installation of PHP does not seem to include the 'GD' graphic library extension and you have not indicated that you want to use ImageMagick. Coppermine has been configured to use GD2 because the automatic GD detection sometimes fail. If GD is installed on your system, the script should work else you will need to install ImageMagick.

"; } if (!$no_img_package_detected) $notes .= "

Your server supports the following image package(s): " . ($im_installed ? ' ImageMagick (im),':'') . ($gd1_installed ? ' GD Library version 1.x (gd1),':'') . ($gd2_installed ? ' GD Library version 2.x (gd2),':'') . " the installer selected '" . $_POST['thumb_method'] . "'."; if ($_POST['thumb_method'] == 'gd1' || $_POST['thumb_method'] == 'gd2') $notes .= "

Important : older versions of the GD graphic library support only JPEG and PNG images. If this is the case for you, then the script will not be able to create thumbnails for GIF images."; } // ------------------------- HTML OUTPUT FUNCTIONS ------------------------- // function html_header() { ?>



The installer is locked
• • • ERROR • • • 
The installer has already been run successfuly once and is now locked.

If you want to run the installer again, you first need to delete the '' file that was created in the directory where you put Coppermine. You can do this with any FTP program. 





Welcome to Coppermine installation
• • • ERROR • • • 
Before you continue with Coppermine installation, there are some problems that need to be fixed.

Once you are done, hit the "Try again" button.






Welcome to Coppermine installation
• • • ERROR • • • 
The following errors were encountered and need to be corrected first:


Your admin account 
This section requires information to create your administration account. Use only alphanumeric characters. Enter the data carefully ! 
Username   
Password   
Email address   
Your MySQL configuration 
This section requires information on how to access your MySQL database. If you don't know how to fill them, check with your webhost support. 
MySQL Host
(localhost is usually OK)   
MySQL Database Name   
MySQL Username   
MySQL Password   
MySQL table prefix
(default value is OK; do not use dots!)   
ImageMagick 
Coppermine can use the ImageMagick 'convert' program to create thumbnails. Quality of images produced by ImageMagick is superior to GD1 but equivalent to GD2.

If ImageMagick is installed on your system and you want to use it, you need to input the full path to the 'convert' program below. On Windows the path should look like 'c:/ImageMagick/' (use / not \ in the path) and should not contain any space, on Unix is it something like '/usr/bin/X11/'. 
ImageMagick path   





 
Installation completed
Coppermine is now properly configured and ready to roll.

Login using the information you provided for your admin account. Do not hit back, do not re-submit the installer form! 

 



Joachim Müller

Do you actually have PHP and the other minimum requirements needed to run Coppermine? Post a link to your gallery page.

KWH

I am using MySQL 4.1.14 on my localhost with PHP Version 5.0.5 and phpMyAdmin 2.6.4-pl3.  I don't have ImageMagick and am assuming that GD is bundled with my PHP. 

When I run the intsall program, this is what I get: http://haesslyphoto.com/cpg1410/install.php     
When I go to the index page after install, this is what I get:  http://haesslyphoto.com/cpg1410/index.php

Thanks.

Keith

Joachim Müller

Two possible reasons:
  • the files got corrupted (make sure that you haven't edited them with a WYSIWYG editor)
  • PHP-files are not being parsed properly. Create a phpinfo or simple "hello world" PHP file and check if it works as expected.

Self-hosting is not recommended at all btw.

KWH

I upload the files for intsall directly from the ZIP file I got from SourceForge using SmartFTP.  I also use SMartFTP to change the file permissions as needed.  When I created and uploaded the phpinfo file, it opens to a blank screen http://haesslyphoto.com/phpinfo.php.  I am not self-hosting as I may have indicated before, I am using a VPS on IPower.  It is an Apache server.  I have called them a few times to get some help with finding the PHP info or making the files work right, but they were as much help as my cat, who is currently pushing used wrapping paper about the house.  The suggested using Putty to SSL into the site, but that is beyond my scope, and apparently theirs too as they wouldn't help after getting me logged in.

Thank you all for your help.

Keith

Joachim Müller

As your server seems not to be configured to parse PHP files (the phpinfo file doesn't do anything) there's little we could possible do to help you. Only your webhost could possibly solve this. If you actually have a contract for a PHP-powered webspace, make them fulfill their contract or look for another webhost.
Can't help you with configuring your webserver in the first place.

KWH

I have checked with my host and went through the PHP configuration.  There was a selection not made that affected what was going on.  I am now installed and working on getting set-up.  Thanks