[Solved]: More Migration Questions [Solved]: More Migration Questions
 

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

[Solved]: More Migration Questions

Started by Understudy, March 10, 2008, 02:08:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Understudy

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



François Keller

Quoteshould I use the include/config.inc.php file
You must correct the connection datas with those from the new database
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

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


François Keller

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)
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

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

François Keller

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


François Keller

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
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

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


Joachim Müller

Self-hosting is not recommended at all.

Understudy

Quote from: Joachim Müller on March 11, 2008, 07:35:43 AM
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

Sami

Quote from: Understudy on March 11, 2008, 12:41:32 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.
‍I don't answer to PM with support question
Please post your issue to related board

Understudy

Quote from: Joachim Müller on March 11, 2008, 07:35:43 AM
Self-hosting is not recommended at all.

Quote from: Sami on March 11, 2008, 12:55:35 PM
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

Sami

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
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

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.