6

I am trying to install amp on ubuntu using this tutorial. How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04

On the apache part of the tutorial it says the following: Set Global ServerName to Suppress Syntax Warnings Next, we will add a single line to the /etc/apache2/apache2.conf file to suppress a warning message. I can't find such a directory on the system. I have installed apache, but can't find any file of the sort.

Thanks for reading.

Morgoth
  • 111

1 Answers1

0

I had this happen yesterday to a friend's laptop.

If you had installed apache or related software using any unsupported PPAs, remove them using ppa-purge:

sudo apt install ppa-purge
sudo ppa-purge ppa:whatever/ppa

Remove apache2 and unused dependencies:

sudo apt autoremove apache2

Remove residual configuration files:

dpkg -l | grep '^rc' | awk '{print $2}' | xargs sudo apt-get purge

(Source: https://askubuntu.com/a/376281)

Now install apache again:

sudo apt install apache2

This worked in bionic.

itsfarseen
  • 153
  • 6