Stephan Schmied Posted February 3, 2019 Posted February 3, 2019 Hi, we want to change our server but after copying the files and editing the htaccess we got error 500 An error occurred (500 Error) We're sorry, but a temporary technical error has occurred which means we cannot display this site right now. No such file or directory You can try again by clicking the button below, or try again later. Try again Does someone has an idea what we basically forgot? Thanks! Stephan
Pete T Posted February 3, 2019 Posted February 3, 2019 5 minutes ago, Stephan Schmied said: Hi, we want to change our server but after copying the files and editing the htaccess we got error 500 An error occurred (500 Error) We're sorry, but a temporary technical error has occurred which means we cannot display this site right now. No such file or directory You can try again by clicking the button below, or try again later. Try again Does someone has an idea what we basically forgot? Thanks! Stephan Do you get same issue in Admin CP or is this mainly on front end ? if only front run the support tool and will clear any cache that been stored.
Stephan Schmied Posted February 4, 2019 Author Posted February 4, 2019 Admin cp has this error message: Fatal error: Uncaught IPS\Db\Exception: No such file or directory in /home/DIR/system/Db/Db.php:205 Stack trace: #0 /home/DIR/system/Db/Db.php(118): IPS\_Db::_establishConnection('IPS\\Db', Array, true) #1 /home/DIR/system/Session/Admin.php(113): IPS\_Db::i() #2 [internal function]: IPS\Session\_Admin->write('feq0a6rm5g6b0u2...', '') #3 {main} thrown in /xxxxxxxxx/system/Db/Db.php on line 205
Maksim Posted February 4, 2019 Posted February 4, 2019 IF the site is physiowissen.de, I jut went to it and loads fine for me.
Stephan Schmied Posted February 4, 2019 Author Posted February 4, 2019 Yes, on the old space. We transfered it to www.temptomain.de for testing on the new space
Daniel F Posted February 4, 2019 Posted February 4, 2019 Did you change the database connection details?
Maksim Posted February 4, 2019 Posted February 4, 2019 Was going to say, also, if testing upgdade, why not just make a copy into new directory, copy of databases, update the config file and then upgrade. No need to move to another domain.
Stephan Schmied Posted February 4, 2019 Author Posted February 4, 2019 Yes, the plan was exacly like this, but we didnt found the problem, so we decided to have temp url to solve the issues. 😉 @danile F - of cause conf_global.php - or are the more config files?
Stephan Schmied Posted February 4, 2019 Author Posted February 4, 2019 Are there folders or files I have to setup the rights manualy? maybe the session dir?
Adlago Posted February 4, 2019 Posted February 4, 2019 5 minutes ago, Stephan Schmied said: Are there folders or files I have to setup the rights manualy? maybe the session dir? Check through ftp access to the presence of this file that your system logs shows. No such file or directory in /home/tensewatch/physiowissen.de/system/Db/Db.php
Stephan Schmied Posted February 4, 2019 Author Posted February 4, 2019 file is okay - line 205 says: if( $error = mysqli_connect_error() ) { $errorNumber = $object->connect_errno; throw new \IPS\Db\Exception( $error, $errorNumber ); } I have to check the db connection - maybe the import was currupted
Daniel F Posted February 4, 2019 Posted February 4, 2019 This error means that the database connection couldn't be established. Are you trying to access the "old" database server? Is the MySQL server allowing remote connections? I would suggest to contact your web host to see what's broken there.
Maksim Posted February 4, 2019 Posted February 4, 2019 I would add, is the new domain on the same cpanel account? I.e. the actual database name when copied would be different. cpanel1_db1 would now likely be cpanel2_db1. Same for users and all. Other thing I would add, is depending on how it was copied, make sure you can actually see the database from the user account. IIRC, if you copy as root, the ownership may revert to root and not the actual account.
Stephan Schmied Posted February 4, 2019 Author Posted February 4, 2019 WORKS! - error was, the sql db only connected to its own ip adress, not to localhost 😕
Recommended Posts
Archived
This topic is now archived and is closed to further replies.