Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Starting Apache

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
DeltaElectronics
Posts: 3
Joined: 2021-11-18 06:56

Starting Apache

#1 Post by DeltaElectronics »

Hello to everybody...
I'm trying to install LAMP on a remote Linux server... after logged in as root user, I try to execute the installation by the following commands:


sudo apt-get update
sudo apt-get -y install apache2

When I try to start Apache with the following command:

sudo systemctl start apache2.service

I get the following error:

Ottengo il seguente errore:

Job for apacche2.service because the control process exited with error code
See "systemctl status apache2.service" and "journalcltl -xe" for details

What happened ?
What have I to do in order to fix it ?


Camdav
Posts: 7
Joined: 2021-11-16 02:11

Re: Starting Apache

#3 Post by Camdav »

The ".service" on the end should not make any difference.

What did the error reports say when you ran the commands that the error message suggested?
See "systemctl status apache2.service" and "journalcltl -xe" for details

Camdav
Posts: 7
Joined: 2021-11-16 02:11

Re: Starting Apache

#4 Post by Camdav »

logged in as root? - no need for "sudo"

have you configured the server?

Code: Select all

apachectl configtest
will check for config file errors

Read /usr/share/doc/apache2/README.Debian.gz if you are not familiar with the "quite different" process that Debian provide for configuring Apache and php.

I think you might as well also install the php and mariadb part of LAMP. The PHP part adds things to your apache config

Post Reply