From: Timothy P. <Ti...@mw...> - 2004-11-22 04:44:59
|
When you set up the initial configuration, did you specify "localhost" or a domain name or an IP address? Localhost should work if you created a user on the new box from "localhost" with permissions to the database. If it was a domain name, then you would have to modify your DNS server so that that name now pointed to the IP address of the new machine. If it was by IP address, then the new machine would have to have the same IP address as the original one. However, it is *really* easy to simply edit the configuration files to match your current setup. You will find there are two places you should look at: One is in the website's conf directory, a file called config.php. Open it with your favorite ASCII text editor and check that everything is correct. I mean everything, including the source-http and source-dir keywords as well as the database stuff. The other is in the core directory called core.php. Open it the same way and check that the path information is correct for your new setup. If you're still having problems, try creating a user from % as well as one from "localhost" (same user name and password and permissions - just allow the user to be from anywhere (%) instead of restricting them to be only from "localhost"). Good luck! Timothy Pearson Midwestern Telephone, Inc. E-mail: ti...@mw... Web: http://mwtel.com/ -or- http://InformationTransportation.com/ Phone: 417-673-1977 Ext. 2203 Fax: 417-673-1978 >>> rfa...@np... 11/19/2004 9:28:04 AM >>> I have what should be a very simple problem, but I just have not been able to figure this out. I wanted to move a PHP Website site to another machine, and I dumped the database, and copied all the files. I placed everything in the same directory structure as the original setup. I have the same logins for MySQL on both boxes, and I created a 2nd level domain name to the new box, but every time I try and access the 2nd box, I get this message. Unable to load database indicated by configuration file. The databases have exactly the same name. So, what am I doing wrong in trying to move this web site to a new box ? I must be missing something simple ? Any suggestions on where to start debugging this. I'm not seeing any useful errors in the apache log files. I'm running MySQL 4 on both boxes. Old box is Redhat 9 and new box is Fedora C 2 Thanks for your help, Ruben ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Phpwebsite-developers mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers |