To do that, first, add the GPG key and the repo with the following commands: apt -y install lsb-release apt-transport-https ca-certificatesĮcho "deb $(lsb_release -sc) main" | tee /etc/apt//php.list Next, we will install PHP along with its extensions. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Tue 06:38:17 CST 36min agoĭec 27 06:38:17 systemd: Starting The Apache HTTP Server.ĭec 27 06:38:17 systemd: Started The Apache HTTP Server. You should receive the following output: sudo systemctl status apache2 sudo systemctl enable apache2 & sudo systemctl start apache2Ĭheck if the service is up and running: sudo systemctl status apache2 Once installed, start and enable the service. Execute the following command: sudo apt-get install apache2 -y Install LAMP Stackįirst, we will install the Apache Web server. Execute the following command: sudo apt-get update -y & sudo apt-get upgrade -y Step 2. ![]() ![]() Update the system packages to the latest versions available. User privileges: root or non-root user with sudo privileges.
0 Comments
Leave a Reply. |