Build Ubuntu Server From Scratch – Apache2

Oke. I m learning from zero again.

This time my aim is to build mvc web base application for selling and buying. I was quite desperated when trying to install every mvc from the easiest one. None of them worked.

So that’s it. I start my lesson from zero again. Setting up my laptop as a server. But not using xampp. It is truely apache2, mysql, php and phpmyadmin.

First, the apache2.

#sudo apt-get install apache2

That’s the common command in terminal to install apache2. But then in mine, it finished download and install but the service won’t run. There were an error saying that

Failed to start LSB: Apache2 web server

After googling a while, I found in here, that the solution might easy.

#sudo rm -r /etc/apache2/sites-available/*

Then start the service

#sudo service apache2 start

Here is to check the status

#sudo service apache2 status

The result is :

● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
   Active: active (running) since Jum 2020-01-31 19:20:38 WIB; 10min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 23921 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCC
   CGroup: /system.slice/apache2.service
           ├─23943 /usr/sbin/apache2 -k start
           ├─23946 /usr/sbin/apache2 -k start
           └─23947 /usr/sbin/apache2 -k start

Jan 31 19:20:37 ciwalen-pc systemd[1]: Starting LSB: Apache2 web server...
Jan 31 19:20:37 ciwalen-pc apache2[23921]:  * Starting Apache httpd web server a
Jan 31 19:20:37 ciwalen-pc apache2[23921]: AH00558: apache2: Could not reliably 
Jan 31 19:20:38 ciwalen-pc apache2[23921]:  *
Jan 31 19:20:38 ciwalen-pc systemd[1]: Started LSB: Apache2 web server.

That’s mean work.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.