Categories
Tips & Tricks

WordPress: All Pages Redirect to 404

If the .htaccess configuration is correct it means we haven’t enabled the apache2 rewite mod.

To enable, simply run the command below:

sudo a2enmod rewrite

Then

systemctl restart apache2

It works!

Categories
Vesta

Fix: sudo: unable to resolve host

This is happens when we pick the name of fqdn when firstly install Vesta and the name is different from the domain we bought. Then whenever we run the command sudo, we will get such error message.

To avoid showing this annoying message, we need to remove this registered fqdn by going to the /etc and edit the hostname file. Then paste in the following configuration:

127.0.0.1   localhost
127.0.1.1   your-fqdn.sth

Then restart the apache2 service by running this command: sudo service apache2 reload

Categories
Vultr

Check if Apache2 and MySQL Services are Running on Ubuntu

To check if Apache2 service is running, simply run the following command:

sudo service apache2 status

To check if MySQL service is running, simply run the following command:

sudo service mysql status

For CentOS or Fedora:

To restart the service: $ sudo systemctl restart httpd

And

To check the service status: $sudo systemctl status httpd