phplim Posted September 8, 2010 Share Posted September 8, 2010 Hi, I transferred a folder from server A which consists of web scripts (php) to another server i.e server B. After creating the database just like in the server A, I managed to have the log in page ready. Then I exported the sql data from server A and imported it to server B and in the phpMyAdmin panel I can see the same data as what is in server A. (so far so good...) The problem is that, the log in page at this new site (server B/hosting B) does not work the way it should. i.e. whenever I key in the user ID and password based on the imported sql data and press enter it goes back to the same log in page as if the ID and password has just been reset. Can someone please help ..... Thanks, Lim Link to comment https://forums.phpfreaks.com/topic/212916-please-help/ Share on other sites More sharing options...
colleyboy Posted September 8, 2010 Share Posted September 8, 2010 have you updated the database.php file to point to localhost as it might be named something else. Check the php server settings are the same on server A as Server B. Make sure you have exported the old SQL database file correctly so all permissions are set right. Link to comment https://forums.phpfreaks.com/topic/212916-please-help/#findComment-1108946 Share on other sites More sharing options...
phplim Posted September 8, 2010 Author Share Posted September 8, 2010 colleyboy, The database is connected, that's for sure. But, how do I check the php server settings so that it's the same as on server A, can u pls elaborate more. and I just use the default setting in the phpMyadmin to export SQL database, is this the right way? By the way thanks for the very quick reply colleyboy.. really appreciate it. Link to comment https://forums.phpfreaks.com/topic/212916-please-help/#findComment-1108952 Share on other sites More sharing options...
ocpaul20 Posted September 9, 2010 Share Posted September 9, 2010 When I cannot work out what is happening, I always write mickey-mouse programs to test whats going on, or add debugging statements to the code. Is the directory structure the same on both servers? There could be loads of reasons why it does not work. Look in the error log too. Commercial servers do not show error messages but they have a log where all errors are written. It may give you some clue... Link to comment https://forums.phpfreaks.com/topic/212916-please-help/#findComment-1108982 Share on other sites More sharing options...
phplim Posted September 9, 2010 Author Share Posted September 9, 2010 ocpaul20, I copied exactly the same thing from server A to server B i.e. 1. Download the scripts from server A via Core ftp software 2. Upload that scripts to server B via Core ftp software too 3. Export SQL data from server A via phpMyadmin and finally 4. Import the SQL data to server B via phpMyadmin 5. change the mysql.connect info to suit server B So as u can see it is exactly the same, but why it works just fine at server A and not server B? hmmmm...... Link to comment https://forums.phpfreaks.com/topic/212916-please-help/#findComment-1109115 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.