coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: dannyfb on March 29, 2004, 09:52:57 PM

Title: [Solved]: From Apache on windows to Apache on Linux
Post by: dannyfb on March 29, 2004, 09:52:57 PM
I have reinstalled my server from Windows to Linux and my webserver is up running again on Linux.

Now i want to install the CPG 1.2 Standalone version on my Linux server. My MySQL database i hosted on another server, but is it possible to use the old tables in my MySQL database. ?
Title: [Solved]: From Apache on windows to Apache on Linux
Post by: Nibbler on March 29, 2004, 09:56:31 PM
Yes, all the database stuff is platform independent.
Title: [Solved]: From Apache on windows to Apache on Linux
Post by: dannyfb on March 29, 2004, 10:08:48 PM
allright that cool

when i run the "install.php" shall i type something in the fields then ? (under MySQL)
Title: [Solved]: From Apache on windows to Apache on Linux
Post by: Joachim Müller on March 30, 2004, 07:20:10 AM
no need to run install.php at all (install will create new coppermine tables in a database, that's what it was built for). If the database still exists and the pics are where they belong (on your new server), simply create a file named config.inc.php in the include folder with the database information in it (take a look at the sample file that comes with coppermine).
If you can't use the mySQL database on the remote server, get a dump from the old server's coppermine database (using a tool like phpMyAdmin) and insert the db info on your new server (again: phpMyAdmin).
If this sounds to complicated for you, you'll have to post details on your current setup: where are the pics stored, what db are you going to use (local or remote) etc.

GauGau
Title: [Solved]: From Apache on windows to Apache on Linux
Post by: dannyfb on March 30, 2004, 06:01:04 PM
hi GauGau

I have now created a new "config.inc.php" with the correct MySQL settings and saved it as a PHP-file (include\config.inc.php)

I have also moved my pictures from the directory "Albums" over to the new server.

But i get nothing at the server try to look http://----/coppermine

And my PHP settings looks like this: http://----/test.php
Title: [Solved]: From Apache on windows to Apache on Linux
Post by: Joachim Müller on March 30, 2004, 11:12:18 PM
posting links to your phpinfo is not recommended - may be a security risk.
Get the install.lock file from the old webserver (inlucde dir) as well.
This is actually not a coppermine issue, but related to server setup. Back up your db and set up a new one using coppermine install. Check if it works then.

GauGau
Title: [Solved]: From Apache on windows to Apache on Linux
Post by: dannyfb on April 01, 2004, 10:34:23 AM
Ive solved the problem by installing php-mysql-x.x.x.so
and restarted "httpd" and now it works!!! Thank you for your time...