Error installing apache2 on Ubuntu

Asked

Viewed 465 times

1

I’m unable to install apache2 on Ubuntu. I tried this command:

sudo apt-get install apache2 libapache2-mod-passenger

But returns the following error at the end of the installation:

Configurando libapache2-mod-passenger (4.0.37-2) ...
dpkg: error processing package libapache2-mod-passenger (--configure):
 sub-processo script post-installation instalado retornou estado de saída de erro 1
Erros foram encontrados durante o processamento de:
 libapache2-mod-passenger
E: Sub-process /usr/bin/dpkg returned an error code (1)

What I need to do? :\

  • 1

    Analyzing the terminal’s response, its problem is not in the installation of apache2 itself, but in the installation of libapache2-mod-Passenger. I believe that this material can be of great help in this mission, follow the link: https://www.phusionpassenger.com/library/install/apache/install/oss/trusty/

  • Thanks for your attention Weslley. The error has now changed. When I call: sudo apt-get install libapache2-mod-Passenger Returns the following: Configuring libapache2-mod-Passenger (4.0.37-2) ... apache2_invoke: Enable module Passenger Action 'configtest' failed. The Apache error log may have more information. apache2_reload: Your Configuration is Broken. Not restarting Apache 2

  • I was able to solve everything with the following command sequence: sudo apt-get clean && sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get update && sudo dpkg --configure -a && sudo apt-get install -f

  • In fact, I think it was this, because I tested many things.

1 answer

2

To install apache2 in Ubuntu, use the following command: sudo apt-get install apache2. See the reference here.

  • If the answer has helped you, please mark it as correct by clicking the green arrow above the answer number. Thank you

Browser other questions tagged

You are not signed in. Login or sign up in order to post.