Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Build LAMP by Ubuntu16.04

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Installation of Apache2 web server: (for specific documents, please contact this blogger, there is a blogger's email address on the home page)

In Ubuntu linux, the web server is Apache2, which we can install with the following command:

When the Apache2 package is installed, Apache2-related services are enabled and run automatically after restart. In some cases, if your Apache2 service does not run and enable automatically, you can use the following command to start and enable it.

If you turn on Ubuntu's firewall (ufw), you can use the following command to remove the port (80,443) restrictions on the web server.

@ Database installation @

1. Database server installation (MySQL Server 5.7): choose one of the following mysql and MariaDB

MySQL and MariaDB are both database servers in Ubuntu 16.04. The installation packages for both MySQL Server and MariaDB Server can be found in the default software source for Ubuntu, and we can choose one of them to install. Install the mysql server in the terminal with the following command.

During installation, it will require you to set the password for the root account of the mysql server.

This is the end of the installation of the MySQL server, and the MySQL service is automatically started and enabled. We can verify the status of the MySQL service with the following command.

Installation of 2.MariaDB Server (database):

Use the following command in the terminal to install the Mariadb 10.0 server.

Run the following command to set the password for the MariaDB root account, and you can also turn off some options, such as turning off the remote login feature.

Installation of the PHP scripting language:

PHP 7 already exists in the software source of Ubuntu, execute the following command in the terminal to install PHP 7:

Linuxtechi@ubuntu:~$ sudo apt install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0

Create a simple php page and create it to the document root of apache (/ var/www/html)

Linuxtechi@ubuntu:~$ vi index.php

Installation of phpMyAdmin:

PhpMyAdmin allows us to perform all the tasks related to database management and other database operations through its web interface, and this installation package already exists in the Ubuntu software source.

Use the following command to install phpMyAdmin in Ubuntu server 16.04 LTS.

During the following installation process, it prompts us to select the target server on which phpMyAdmin is running.

Select Apache2 and click OK.

Click OK to configure the database managed by phpMyAdmin.

Specifies the password that phpMyAdmin uses when registering with the database server.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report