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 └─apache2-systemd.conf 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: Starting LSB: Apache2 web server... Jan 31 19:20:37 ciwalen-pc apache2: * Starting Apache httpd web server a Jan 31 19:20:37 ciwalen-pc apache2: AH00558: apache2: Could not reliably Jan 31 19:20:38 ciwalen-pc apache2: * Jan 31 19:20:38 ciwalen-pc systemd: Started LSB: Apache2 web server.
That’s mean work.