Updating failed. The response is not a valid JSON response. on Fedora

I solved it by executing the commands

sudo dnf install mod_rewrite
sudo sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf
sudo systemctl restart httpd

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)