In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to configure PHP7.0+Apache2+Mysql5.7 in the Ubuntu14.04 server environment, the article is very detailed, has a certain reference value, interested friends must read it!
The main purpose of configuring PHP7.0+Apache2+Mysql5.7 for the Ubuntu14.04 system is to try WordPress.
Update system resources
Sudo apt-get updatesudo apt-get uograde
Apache2
Install apache
Sudo apt-get apache2
Edit apache main configuration file / etc/apache2/apache2.conf, modify KeepAlive settings
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
Sudo a2dismod mpm_eventsudo a2enmod mpm_prefork
Restart Apache
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.
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
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
Sudo apt-get install php7.0-mysql
Integrate PHP and Apache
Sudo apt-get install libapache2-mod-php7.0sudo service apache2 restart
Verification environment
Display the version information of PHP
Php-v
The default web site root of Apache is located in / var/www/html/, to enter this directory and create an info.php
Sudo nano / var/www/html info.php
Enter http://localhost/info.php in the browser for verification.
These are all the contents of the article "how to configure PHP7.0+Apache2+Mysql5.7 in a Ubuntu14.04 server environment". Thank you for reading! Hope to share the content to help you, more related knowledge, 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.