Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: More Migration Questions  (Read 4529 times)

0 Members and 1 Guest are viewing this topic.

Understudy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 51
    • Another boring website
[Solved]: More Migration Questions
« on: March 10, 2008, 02:08:24 am »

I am in the process of attempting the migration from my old server to my new server.

When I install coppermine on the new server should I use the include/config.inc.php file and the anycontent.php from the old server?

The database and user / pass are the same.

Do I handle this as a new install or update?

Sincerely,
Brendhan


« Last Edit: March 11, 2008, 07:35:24 am by Joachim Müller »
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: More Migration Questions
« Reply #1 on: March 10, 2008, 07:14:40 am »

Quote
should I use the include/config.inc.php file
You must correct the connection datas with those from the new database
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Understudy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 51
    • Another boring website
Re: More Migration Questions
« Reply #2 on: March 10, 2008, 12:54:08 pm »

dbserver  same as old server
dbuser     same as old server
dbpass     same as old server
dbname    same as old server
How is that?

Anything need to be done for anycontent.php? Should I use that file?Anything else?

Sincerely,
Brendhan

Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: More Migration Questions
« Reply #3 on: March 10, 2008, 12:58:11 pm »

if the database connections datas are the same, you can use the old config.inc.php, in the other case, you must correct theyre.
For the anycontent.php file, it depends if you use it or not in your galery (did you change the content before)
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Understudy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 51
    • Another boring website
Re: More Migration Questions
« Reply #4 on: March 10, 2008, 01:02:25 pm »

Thank you for your response.

The anycontent.php file should be usable as I have not added anything to it since I did the backup and I have copied the albums folder. I hope?

Should I do this coppermine install as a fresh new one or use update.php?

Sincerely,
Brendhan
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: More Migration Questions
« Reply #5 on: March 10, 2008, 01:12:54 pm »

if you want to migrate your gallery, see here http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#moveGallery
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Understudy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 51
    • Another boring website
Re: More Migration Questions
« Reply #6 on: March 10, 2008, 01:15:34 pm »

if you want to migrate your gallery, see here http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#moveGallery
I have read that it did not answer my questions.

Sincerely,
Brendhan
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: More Migration Questions
« Reply #7 on: March 10, 2008, 01:22:27 pm »

for a migration you must not install the script.
Copy all files on you new server, import your database backup (dump) in your new database
be sure to have the correct settings in config.inc.php
run update.php
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Understudy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 51
    • Another boring website
Re: More Migration Questions
« Reply #8 on: March 10, 2008, 03:46:26 pm »

Okay,

All is wonderful with the universe.

The migration worked.

I had one small issue with Mysql's my.cnf file. I had to make sure that the socket address was correct.  once that was done. it came right up and looks exactly the same.

Once I finish the BIND DNS and other issues. I will put the new server in place.

Sincerely,
Brendhan

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Solved]: More Migration Questions
« Reply #9 on: March 11, 2008, 07:35:43 am »

Self-hosting is not recommended at all.
Logged

Understudy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 51
    • Another boring website
Re: [Solved]: More Migration Questions
« Reply #10 on: March 11, 2008, 12:41:32 pm »

Self-hosting is not recommended at all.

I am sorry. I do not understand that statement.
Should I not try to have my own server?

Sincerely,
Brendhan
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: [Solved]: More Migration Questions
« Reply #11 on: March 11, 2008, 12:55:35 pm »

Should I not try to have my own server?

You can have your own server but you must be very familiar with server administration such as
- Securing/Managing your server
- Monitoring your server resources
- Installing/Managing PHP
- Installing/Managing MySql
and .....
failing to do one of them could cause you much trouble.
Naturally, an online image gallery is resource intensive and if you didn't utilize your server well soon you'll face the problem.
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Understudy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 51
    • Another boring website
Re: [Solved]: More Migration Questions
« Reply #12 on: March 11, 2008, 02:05:44 pm »

Self-hosting is not recommended at all.

You can have your own server but you must be very familiar with server administration such as
- Securing/Managing your server
- Monitoring your server resources
- Installing/Managing PHP
- Installing/Managing MySql
and .....
failing to do one of them could cause you much trouble.
Naturally, an online image gallery is resource intensive and if you didn't utilize your server well soon you'll face the problem.

I understand. But I must admit I disagree with the sentiment.

It discourages the learning process.

I have had my own server for three years now. I don't host other people's websites. It is not a business. I don't maintain any vital information on it.

By doing so and making a ton of mistakes. I have learned how to setup a basic webserver with Mysql and PHP. Setup DHCPD, DNS and Open PF. None of which for people who do that everyday is remarkable. But for those who don't is a step in the right direction. When I did the original setup a few years back. I didn't know anything about the my.cnf file. This time I gained some more insight.

I don't expect to ever be some great computer guru. But I also understand the risks with having my own server. The company that I host my main website with started with a couple of kids as an after school project. Not bad for something that turned into 34sp.com. Someone along the line has to learn and make mistakes. They just have to understand that those mistakes can be very costly sometimes.

The end result of what I did should also help you to write a better set of migration instruction. In the end everyone benefits.

I apologize if the comment seems trollish in nature. It is not intended as such. I personally do not believe in discouraging people from attempting to learn.

Sincerely,
Brendhan
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: [Solved]: More Migration Questions
« Reply #13 on: March 11, 2008, 02:51:46 pm »

Nobody wants to stop you from learning !
IMO you can try/error your server setup on a private environment instead of Internet
We think that running a public server is a full time job !
BTW it's absolutely up to you , we just not recommend it.
for more info about self hosting search the board
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Solved]: More Migration Questions
« Reply #14 on: March 12, 2008, 07:42:47 am »

You're welcome to run a server of your own. However, it should not be publicly available on the internet. It doesn't hurt to have a server on your LAN where you can learn how servers work. But as long as you're not totally familiar with hosting and as long as you don't have the time and manpower to constantly monitor that server, it mustn't not be made public. There have been lengthy discussions in the past on the subject of self-hosting and why the coppermine team discourages users to setup and run servers they have set up on their own available publicly - I'm not ready to repeat this discussion over. If you want to find out details about our thoughts, search the board for those previous discussions.
Anyway: this forum is definitetly not the proper place to learn how to maintain a webserver - we assume that your server is already up and running as expected (this is usually accomplished by signing up with a webhost). You are only allowed to post questions here that are directly related to coppermine. You are not allowed to post questions that only exist because you run a webserver of your own and don't have the needed skills (yet) to set it up properly.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.