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

Configuration method in Ubuntu14.04 server environment

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

Share

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

This article shows you the configuration method under the Ubuntu14.04 server environment, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

This article mainly introduces the method of configuring PHP7.0+Apache2+Mysql5.7 under the environment of Ubuntu14.04 server, and analyzes in detail the specific steps of configuring PHP7.0+Apache2+Mysql5.7 under the environment of Ubuntu14.04 operating system and the skills of using related commands. Friends who need it can refer to it.

The main purpose of configuring PHP7.0+Apache2+Mysql5.7 for the Ubuntu14.04 system is to try WordPress.

Update system resources

one

Sudo apt-get updatesudo apt-get uograde

Apache2

Install apache

one

Sudo apt-get apache2

Edit apache main configuration file / etc/apache2/apache2.conf, modify KeepAlive settings

one

KeepAlive Off

Apache's default multi-processing module (MPM) is an event module, but php defaults to using the prefork module, disabling the event module, and enabling the prefork module

one

Sudo a2dismod mpm_eventsudo a2enmod mpm_prefork

Restart Apache

one

Sudo service apache2 restart

If you see an error about ServerName when you restart Apache, you can make the following changes

① Editing apache main configuration File / etc/apache2/apache2.conf

② add a line of ServerName localhost

③ then executes sudo service apache2 restart

Mysql5.7

Because there is no source of Mysql5.7 under Ubuntu14.04, you need to connect to an external resource library to download it.

one

Wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.debsudo dpkg-I mysql-apt-config_0.6.0-1_all.debsudo apt-get updatesudo apt-get install mysql-server# needs to enter the password of root during installation

After the installation is complete, execute mysql_secure_installation and follow the prompts to complete the security settings

PHP7.0

The default source under Ubuntu14.04 is PHP5.0, so you also need to add an external source.

Personal Package Archive (PPA) is an apt repository that allows third-party developers to publish external resources for ubuntu

Ond has provided PHP7.0 for PPA in the ej Sur arrow

one

Sudo apt-get install software-properties-commonsudo add-apt-repository ppa:ondrej/phpsudo apt-get updatesudo apt-get install php7.0

LAMP

Integrate PHP and Mysql

one

Sudo apt-get install php7.0-mysql

Integrate PHP and Apache

one

Sudo apt-get install libapache2-mod-php7.0sudo service apache2 restart

Verification environment

Display the version information of PHP

one

Php-v

The default Apache website root directory is located in / var/www/html/ http://www.bbqmw.net/qm_bbqmbd/,. Enter this directory and create an info.php.

one

Sudo nano / var/www/html info.php

one

The above is the configuration method in the Ubuntu14.04 server environment. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

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