VPS – WordPress – issue with permalink and database connection
I am using VPS (Ubuntu 18.04) and have a WordPress setup in it. After a successful installation, I faced a permalink issue. Only the homepage shows output and all other pages show 404 in front-end. I searched for its solution on the internet and modified the
/etc/apache2/apache2.conf file as below:
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All allow from all </Directory>
After this, I start facing database connection issues with the message “Error establishing a connection.” I confirmed database configuration in the
wp-config.php file. Also, same configuration work well when I tried it with a simple PHP file.
Any suggestion/help in this is a ray of hope for me here.