Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configuration copy and database dump 1

Status
Not open for further replies.

kleinicus

MIS
Dec 4, 2002
98
US
Hello all.
I have precisely zero experience with Linux. My boss charged me and a coworker with copying a custom-built security system from a Sun box running Red Hat 2.6.6 (I think) to an IBM box running same version. The software was built using LAMP, so what I need is information and procedures on how to copy configurations from one server to another for those programs; Linux, Apache, MySQL, and PHP/PERL. Also, any information available on dumping data from the SQL database would be helpful too. I would imagine that all the configuration files from the old server need to be copied to the new server, but I have a Microsoft background, so I really have no idea what lies ahead of me. Any advice available would be appreciated.
Thanks.
 
Configurations are typically in /etc, but could be elsewhere. For Apache, /usr/local/apache/etc is also popular. Same for the others; it depends on how they were installed.

If you create a .php file which contains only:

<?php
phpinfo();
?>

then it'll tell you where the php.ini file is.

The best way is to check with the builder of the app, or any documentation which was provided.

MySQL has the "mysqldump" utility which creates the SQL statements needed to recreate databases. "mysqldump --help" outlines the options. One simple method would be to use "mysqldump dbname >> dbname.sql" where 'dbname' is the name of a database. Copy the dbname.sql file to the other server and run "mysql < dbname.sql". Check the command options to be sure it does what you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top