I badly need help, I just want to say first that I am a newbie with web server. My boss was asking to me to upgrade our web server to the latest version Ubuntu 20.04 LTS as the old was running with 14.04. I've installed the distribution and a LAMP Stack on my desktop as I would like to try it first with my own computer before touching the server. I've installed Apache2, PHP 7.4.3 and mySQL 8.0 however the versions running on the old server are PHP 5.x and MySQL 5.x. I copied all the files over from
/var/www/ and the Apache configuration files from
/etc/apache2 then created a SQL dump and migrated to the the new mysql database (I made sure that permissions are the same with the old server). However, every time I open
localhost in a browser, I see this error message:
Database Error: Unable to load Database Driver: mysqli
Update: Database error has been sorted out by the steps provided by Matigo below.
Here is my new situation, I still can't access my website as localhost as it only shows the word "Error"
Error log says:
Failed to read session data: user (path: /var/lib/php/sessions) in /var/www/kssp/libraries/joomla/session/handler/native.php on line 194
I really appreciate the help guys!
btw this how the session dir looks like: not sure if i need to do chmod for this.
drwxr-xr-x 3 root root 4096 Feb 8 22:55 modules drwx-wx-wt 2 root root 4096 Mar 27 2020 sessions
- Uninstall - Reinstall LAMP Server
- Verified if all php-modules were enabled
- Created mysql database backup from old server
- Recreated mysql database in the new server
- Recreated database user pass to the new server and made sure it matches - Allowed Override All on Apache2.conf
- Enabled rewrite module
Everything on the website now looks exactly the same with my localhost/server.
Next is to map the ip address and point the A record.
I'm happy that this has been sorted out, thanks to Matigo for enlightening me with the steps.