Install Apache Web Server

sudo apt install apache2

go to apache2.conf

sudo nano /etc/apache2/apache2.conf

and remove ‘Indexes’ to hide the content of the directory if index.html or index.php are missing:

<Directory /var/www/>
 Options Indexes FollowSymLinks
 AllowOverride None
 Require all granted
</Directory>

add redirect:

sudo a2enmod rewrite

in my case does not work, so go to configuration file

sudo nano /etc/apache2/sites-available/000-default.conf

and add

<Directory /var/www/html>
  AllowOverride All
</Directory>

to debug the website or just to figure out what’s going on, check server log file at:

sudo nano /var/log/apache2/error.log

it can grow fas and huge, just remove it:

sudo rm /var/log/apache2/error.log

some additional information could be found here:

source: https://askubuntu.com/questions/766900/mysql-doesnt-ask-for-root-password-when-installing

Leave a Reply

Your email address will not be published.

Yandex.Metrica