apt - Apache2 package does not have "apache2.conf"

1

I recently started using Ubuntu 16.04
I'm following this tutorial to install LAMP.

sudo apt-get install apache2

After encountering several errors, I noticed that the package is coming without the apache configuration file , apache2.conf .

What am I doing wrong?

Below, I put the output of the command sudo apache2ctl configtest

user@host:/$ sudo apache2ctl configtest
[sudo] password for user: 
/usr/sbin/apache2ctl: 165: /usr/sbin/apache2ctl: /usr/sbin/apache2: not found
Action 'configtest' failed.
The Apache error log may have more information.
    
asked by anonymous 22.01.2017 / 23:34

1 answer

1

A simpler solution than reinstalling all linux is trying to remove all the packages you have installed using:

  sudo apt-get purge <nome_do_pacote>

Then use:

  apt-get autoremove

To delete any remaining packages and install the Lamp Server using the following command:

  apt-get install lamp-server^

This will mark all the necessary packages and will make the installation easy for you.

    
06.02.2017 / 18:09