In this video we review the steps required to install Apache, PHP and MariaDB/(MySQL) on Ubuntu Server 18.04. 

On a Linux system, this is known as a LAMP stack (Linux, Apache, MySQL, PHP).  Linux being the operating sytem, Apache being the webserver, PHP the scripting language and MariaDB the database. This combination of packages makes for a strong foundation for a web server however depending on what you are hosting you may need additional packages like mcrypt, mbstring, gd, gettext, etc. It is worth noting that you can install either MariaDB or MySQL the main differences being that MariaDB is open source, it doesn't support data masking and dynamic columns but is faster than MySQL whereas MySQL is less open source in its enterprise edition but does support data masking and dynamic columns.  This guide is intended for a local network but can be expanded upon for internet access so long as security measures like firewalls and such are in place.  After following this tutorial on your Ubuntu server you will, from within your local area network (LAN), be able to go to your server in a web browser (http://server-host-ip-or-name).  You can create sub-folders here for a nice local development space.  More advanced users may prefer to configure the Apache virtual hosts file and manage DNS but for a local dev environment, this is a good start.

Prerequisites:

  • You have an Ubuntu server built and patched with ssh(optional) installed.

In this video we use the following commands:

To prepare our system by upgrading packages that are ready for upgrades and then to upgrade them.

sudo apt-get update
sudo apt-get upgrade

To install our applications

sudo apt-get install apache2 php mariadb-server

Verify installation

sudo mysql
     exit;
sudo apache2 -v
sudo php -v

http://server-host-ip-or-name  (from a web browser)

For access from outside the LAN you will need a domain name or static IP as well as properly configured DNS and firewall ports.

Most Popular

Install Ubuntu Server - (18.04---64bit)

We use the traditonal installer to install Ubuntu server 18.04 in this video. You will need to download Ubuntu server from the Ubuntu repository using the link below or by going to their website and downloading it


Cyber Security

  • Cisco security advisory (AV25-428)
    16 July 2025

    Serial number:AV25-428
    Date:July 16, 2025

    On July 16, 2025, Cisco published security advisories to address vulnerabilities in the following products:

    • Cisco Unified Intelligence Center – versions 12.5, 12.6 and 15
    • Cisco Unified CCX – versions prior to 12.5(1)SU3
    • Cisco Identity Services Engine (ISE) – versions prior to 3.2, versions 3.3 and 3.4
    • Cisco ISE Passive Identity Connector (ISE-PIC) – versions prior to 3.2, versions 3.3 and 3.4
    • Cisco Evolved Programmable Network Manager (EPNM) – versions prior to 7.1, versions 8.0 and 8.1
    • Cisco Prime Infrastructure – versions prior to 3.9 and version 3.10

    The Cyber Centre encourages users and administrators to review the provided web links, perform the suggested mitigations and apply the necessary updates if available.

  • HPE security advisory (AV25-427)
    16 July 2025

    Serial number:AV25-427
    Date:July 16, 2025

    On July 16, 2025, HPE published security advisories to address vulnerabilities in the following products:

    • HPE Telco Service Orchestrator – versions prior to v5.2.1
    • HPE Cray XD670 – version prior to TPM Firmware v7.86
    • HPE Cray XD675 – version prior to TPM Firmware v15.24

    The Cyber Centre encourages users and administrators to review the provided web links and apply the necessary updates.

  • Google Chrome security advisory (AV25-426)
    16 July 2025

    Serial number:AV25-426
    Date:July 16, 2025

    On July 15, 2025, Google published a security advisory to address vulnerabilities in the following products:

    • Stable Channel Chrome for Desktop – versions prior to 138.0.7204.157/.158 (Windows/Mac) and 138.0.7204.157 (Linux)

    Google is aware that an exploit for CVE-2025-6558 exists in the wild.

    The Cyber Centre encourages users and administrators to review the provided web link and apply the necessary updates.

  • Oracle security advisory – July 2025 quarterly rollup (AV25-425)
    16 July 2025

    Serial number:AV25-425
    Date:July 16, 2025

    On July 15, 2025, Oracle published a security advisory to address vulnerabilities in multiple products.

    The Cyber Centre encourages users and administrators to review the provided web link and apply the necessary updates.

  • VMware security advisory (AV25-424)
    16 July 2025

    Serial number:AV25-424
    Date:July 15, 2025

    On July 15, 2025, VMware published a security advisory to address vulnerabilities in the following products:

    • VMware Cloud Foundation – version 9.0.0.0
    • VMware vSphere Foundation – version 9.0.0.0
    • VMware ESXi – version 8.0
    • VMware ESXi – version 8.0
    • VMware ESXi – version 7.0
    • VMware Workstation – version 17.x
    • VMware Fusion – version 13.x
    • VMware Cloud Foundation – version 5.x
    • VMware Cloud Foundation – version 4.5.x
    • VMware Telco Cloud Platform – versions 5.x and 4.x
    • VMware Telco Cloud Platform – versions 3.x and 2.x
    • VMware Telco Cloud Infrastructure – versions 3.x and 2.x
    • VMware Tools [1] – version 13.x.x
    • VMware Tools [1] – versions 12.x.x and 11.x.x
    • VMware Tools – versions 13.x.x, 12.x.x and 11.x.x
    • VMware Tools – versions 13.x.x, 12.x.x and 11.x.x

    The Cyber Centre encourages users and administrators to review the provided web links and perform the suggested mitigations.

  • Zyxel security advisory (AV25-423)
    16 July 2025

    Serial number:AV25-423
    Date:July 15, 2025

    On July 15, 2025, Zyxel published a security advisory to address a vulnerability in the following products:

    • NWA50AX – versions prior to 7.10(ABYW.1)
    • NWA50AX PRO – versions prior to 7.10(ACGE.2)
    • NWA55AXE – versions prior to 7.10(ABZL.1)
    • NWA90AX – versions prior to 7.10(ACCV.1)
    • NWA90AX PRO – versions prior to 7.10(ACGF.2)
    • NWA110AX – versions prior to 7.10(ABTG.1)
    • NWA130BE – versions prior to 7.10(ACIL.2)
    • NWA210AX – versions prior to 7.10(ABTD.1)
    • NWA220AX-6E – versions prior to 7.10(ACCO.1)
    • NWA1123AC PRO – versions prior to 6.28(ABHD.3)
    • WAC500H – versions prior to 6.70(ABWA.6)
    • WAC5302D-Sv2 – versions prior to 6.25(ABVZ.9)
    • WAC6103D-I – versions prior to 6.28(AAXH.3)
    • WAX300H – versions prior to 7.10(ACHF.1)
    • WAX510D – versions prior to 7.10(ABTF.1)
    • WAX610D – versions prior to 7.10(ABTE.1)
    • WAX620D-6E – versions prior to 7.10(ACCN.1)
    • WAX630S – versions prior to 7.10(ABZD.1)
    • WAX640S-6E – versions prior to 7.10(ACCM.1)
    • WAX650S – versions prior to 7.10(ABRM.1)
    • WAX655E – versions prior to 7.10(ACDO.1)
    • WBE530 – versions prior to 7.10(ACLE.2)
    • WBE660S – versions prior to 7.10(ACGG.2)

    The Cyber Centre encourages users and administrators to review the provided web links and apply the necessary updates.

  • VMware security advisory (AV25-422)
    16 July 2025

    Serial number:AV25-422
    Date:July 14, 2025

    Between July 9 and 11, 2025, VMware published security advisories to address vulnerabilities in the following products:

    • VMware Tanzu Greenplum – version 7.5.0
    • VMware Tanzu GemFire – version 9.15.16
    • VMware Tanzu Greenplum – version 6.30.0
    • VMware Tanzu for Valkey – version 8.1.2
    • VMware Tanzu for Postgres on Kubernetes – version 4.2.1

    The Cyber Centre encourages users and administrators to review the provided web links and perform the suggested mitigations.

  • Fortinet security advisory (AV25-406) - Update 1
    16 July 2025

    Serial number:AV25-406
    Date: July 8, 2025

    Updated: July 14, 2025

    On July 8, 2025, Fortinet published security advisories to address vulnerabilities in multiple products. Included were updates for the following:

    • FortiAnalyzer – multiple versions
    • FortiAnalyzer Cloud – multiple versions
    • FortiIsolator – multiple versions
    • FortiManager – multiple versions
    • FortiManager Cloud – multiple versions
    • FortiOS 7.6 – versions 7.6.0 to 7.6.1
    • FortiOS 7.4 – versions 7.4.0 to 7.4.7
    • FortiOS 7.2 – versions 7.2.0 to 7.2.11
    • FortiOS 7.0 – versions 7.0.1 to 7.0.16
    • FortiProxy 7.6 – versions 7.6.0 to 7.6.1
    • FortiProxy 7.4 – versions 7.4.0 to 7.4.8
    • FortiProxy 7.2 – versions 7.2.0 to 7.2.13
    • FortiProxy 7.0 – versions 7.0.0 to 7.0.20
    • FortiSandbox – multiple versions
    • FortiVoice 6.4 – versions 6.4.0 to 6.4.10
    • FortiVoice 7.0 – versions 7.0.0 to 7.0.6
    • FortiVoice 7.2 – versions 7.2.0
    • FortiWeb – multiple versions

    Update 1

    CVE-2025-25257: Unauthenticated SQL injection in GUI affecting:

    • FortiWeb 7.6 – versions 7.6.0 to 7.6.3
    • FortiWeb 7.4 – versions 7.4.0 to 7.4.7
    • FortiWeb 7.2 – versions 7.2.0 to 7.2.10
    • FortiWeb 7.0 – versions 7.0.0 to 7.0.10
  • Red Hat security advisory (AV25-421)
    16 July 2025

    Serial number:AV25-421
    Date:July 14, 2025

    Between July 7 and 13, 2025, Red Hat published security advisories to address vulnerabilities in multiple products. Included were updates to address vulnerabilities in the Linux kernel for the following products:

    • Red Hat CodeReady Linux Builder – multiple versions and platforms
    • Red Hat Enterprise Linux – multiple versions and platforms
    • Red Hat Enterprise Linux Server – multiple versions and platforms
    • Red Hat Enterprise Linux Server for Power LE – multiple versions

    The Cyber Centre encourages users and administrators to review the provided web link and apply the necessary updates.

  • [Control systems] CISA ICS security advisories (AV25–420)
    16 July 2025

    Serial number:AV25-420
    Date:July 14, 2025

    Between July 7 and 13, 2025, CISA published ICS advisories to address vulnerabilities in the following products:

    • Advantech iView – versions prior to 5.7.05 build 7057
    • Delta Electronics DTM Soft – versions 1.6.0.0 and prior
    • Emerson ValveLink DTM – versions prior to ValveLink 14.0
    • Emerson ValveLink PRM – versions versions prior to ValveLink 14.0
    • Emerson ValveLink SNAP-ON – versions prior to ValveLink 14.0
    • Emerson ValveLink SOLO – versions prior to ValveLink 14.0
    • End-of-Train and Head-of-Train remote linking protocol – all versions
    • KUNBUS Revolution Pi OS Bullseye – version 02/2024
    • KUNBUS Revolution Pi OS Bullseye – version 04/2024
    • KUNBUS Revolution Pi OS Bullseye – version 06/2023
    • KUNBUS Revolution Pi OS Bullseye – version 07/2023
    • KUNBUS Revolution Pi OS Bullseye – version 09/2023
    • KUNBUS Revolution Pi Webstatus – versions 2.4.5 and prior
    • Siemens SIMATIC CN 4100 – versions prior to V4.0
    • Siemens SINEC NMS – version prior to V4.0
    • Siemens SIPROTEC 5 – multiple versions and models
    • Siemens Solid Edge SE2025 – version prior to V225.0 Update 5
    • Siemens TIA Administrator – versions prior to V3.0.6
    • Siemens TIA Project-Server V17 – all versions
    • Siemens TIA Project-Server – versions prior to V2.1.1
    • Siemens Totally Integrated Automation Portal (TIA Portal) V17 – all versions
    • Siemens Totally Integrated Automation Portal (TIA Portal) V18 – all versions
    • Siemens Totally Integrated Automation Portal (TIA Portal) V19 – all versions
    • Siemens Totally Integrated Automation Portal (TIA Portal) V20 – versions prior to V20 Update 3

    The Cyber Centre encourages users and administrators to review the provided web link, perform the suggested mitigations and apply the necessary updates if available.

Editors Pick

Install a guest OS in Virtualbox

In this video we review the basic settings required to install a guest operating system in virtualbox.  You will need to have already downloaded and installed virtualbox as well as have downloaded an iso for the gust OS.

Trending

Connect Remotely to Ubuntu Server

In this video we review the necessary steps to set up an Ubuntu server for a remote ssh connection and how to connect to it remotely. We look at 2 different methods of connecting remotely.  WSL (Windows Sub System For Linux) and Putty.  From a Linux host you can just launch the terminal.


Copyright © 2025 Aaron Nursoo. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License.