Can't Install My Gallery Can't Install My Gallery
 

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

Can't Install My Gallery

Started by Lana™, January 16, 2007, 03:16:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lana™

We have two user accounts on this computer and both of them have passwords on them and this one is the only one I have acess to. The one I use is set on limited and I can't do anything on this user, like downloading winzip and stuff cause I have to have admintrations privliages to do stuff like that. So I don't know how to install my gallery without it. Can anyone help?

Joachim Müller

Ask the admin of your PC to install a Zip-Tool (if you don't have Windows XP, which comes with zip support out of the box). This is not something we could help you with.

Lana™

Oh yeah, I have Windows XP. How do I install it without winzip?

Joachim Müller

Extract the package using the context menu of Windows XP (something like right-click, extract folder. Not sure though, as I don't have Windows XP). I strongly suggest reviewing the idea to run a gallery on your webspace though - if you're not familiar with basic stuff on your desktop operating system, you might consider learning some things about it first before starting a script-driven gallery on your webserver.
Please don't expect us to guide you through stuff that is entirely client-sided. Just to make this clear: Coppermine is a webserver-driven application. It is not an app that runs on your client (desktop PC).

Lana™

Ah. I finally figured out how to install Coppermine without winzip. But the problem is, I keep getting the wierd error after installing it 4 times. Here's what comes up.



ERROR
You seem to be trying to install the standalone Coppermine into your Nuke portal.
This version can only be used as standalone!
Some server setups might display this warning even though you don't have a nuke portal installed - if this is the case for you, 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!



Nibbler

You don't have PHP installed. This is mandatory, see the minimum requirements to run Coppermine.

Joachim Müller

Just as a clarification: Coppermine is not a desktop application - it is an app that is suppossed to run on a webserver that have the minimum requirements (as Nibbler pointed out).

Lana™

I checked with my web host and my gallery is now working. :)