install.php - doesn't go anywhere. install.php - doesn't go anywhere.
 

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

install.php - doesn't go anywhere.

Started by jonofezz, January 07, 2005, 07:25:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jonofezz

I have been messing with Coppermine all day here. When reading the inital setup and install instructions, I'm getting stuck on what seems a very important main step.
----
2.1 How to install the script
Unpack the archive preserving the directory structure ---- DONE
Upload all files onto your webserver (make sure to use the correct ftp mode)  ---- DONE
CHMOD the folders albums and include to 755 (or 777, depending on your server config) - this step is really important, don't skip it! ---- Win2K3 followed the tutorial to make sure i never missed anything - DONE
Run the install script on your server (http://your_server/coppermine_dir/install.php) and follow the instructions ---- this is where i get stuc, the seemingly important step!k
----

Ok, so a little information of the computer (self hosted) setup.
OS: Windows Server 2003
WebServer: IIS 6.0
PHP Version: PHP Version 5.0.3; Dec 15 2004 08:06:41 (from phpinfo())
GD and mySQL extensions installed: YES
  gd - from phpinfo()
  GD Support  enabled 
  GD Version  bundled (2.0.28 compatible)
  mysql - from phpinfo()l
  MySQL Support enabled
  Active Persistent Links  0 
  Active Links  0 
  Client API version  4.1.7 

Is mySQL installed and working? Yes... heres the version and the database name even...
mysql> status
--------------
C:\Program Files\MySQL\MySQL Server 4.1\bin\mysql.exe  Ver 14.7 Distrib 4.1.8
mysql> show databases;
+----------+
| Database |
+----------+
| cpg      |   <---- theres the name of the DB i'll use in config.php!
| mysql    |
| test     |
+----------+
3 rows in set (0.00 sec)

I added a user named jonofezz with all rights over that cpg database...
Now when I put in all the information into install.php and click on the 'Let's Go!' button, it just brings up the same form, with all fields cleared....
---
Username    jonofezz
Password    mypass (whatever that may be)
MySQL Host    localhost (mysql is running on the same computer coppermine and all my web stuff is)
MySQL Database Name    cpg
MySQL Username    jonofezz
MySQL Password    another mypass (whatever that may be again)
MySQL table prefix   cpg132_ (used the default)
----

I get NO errors, nothing.  I was getting connect errors before, but that's because I didn't have the user setup right for the DB and I also had to use that old_pass() stuff that I read in more of these forums (god bless em).

So I've been pissy and reinstalled coppermine, php (still at 5.0.3) a few times and played around in mysql to ensure its working fine... all looks good.
Finally I just went to manually edit the one file.. um... config.inc.php --- it still had the same default values. YES, I have "chmoded" the dirs... er in Windows terms, added IUSR_MachineName to have rwx permissions on the include and albums dirs.... so why hasn't this changed at all??? I'm assuming that install.php obviously writes to that file, w/o even looking at the code....
So i manually entered my values....

<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your databaseserver
$CONFIG['dbuser'] =                         'jonofezz';        // Your mysql username
$CONFIG['dbpass'] =                         'somerandompass';                // Your mysql password
$CONFIG['dbname'] =                         'cpg';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg132_';
?>

When I browse to the main page (www.whateverdomain.com/coppermine/) --- all I get is
Fatal error :
There was an error while processing a database query
I'm thinking ths is cause index.php wasn't able to do anything else...(other coppermine setup) so of course it was gonna error.

So the question is, WHY is it just "clearing" the fields on the install.php when I click the button? I've tried it on Firefox 1.0, IE 6 on XP (latest version with SP2) and IE 6 on 2K3 (latest version on SP1) Has anyone seen this before? I've searched the forums... pretty sure I can't see anything about it.

Any ideas would be appreciated. Thanks.

-Jon

Hein Traag

Your using php5. Did you try switching back to the latest php4 version ?

Joachim Müller

coppermine works fine using php5 if you enable register_long_arrays in php.ini. Do a search for "PHP5" on this forum for details.

Joachim

jonofezz

Cheers! Yup, shoulda searched better for PHP5 stuff, didn't know it was related to that though.
Fixed the php.ini by turning the register_long_arrays on, restarted the server and i'm now passed the point I was before.

Thought I'd let you know so you can put the beautiful SOLVED in front of this topic ;)
Thanks very much!

Tranz

Thank you for coming back to confirm that the issue was solved and how you resolved it. :)

It is nice to mark a topic SOLVED. :D