In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "Ubuntu how to install PHP and PHP Nginx configuration", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "Ubuntu how to install PHP and PHP Nginx configuration" this article.
Delete the legacy PHP package
Sudo apt-get purge `dpkg-l | grep php | awk'{print $2}'| tr "\ n"`sudo apt autoremove"
Second, add PPA
Sudo apt-get install-y language-pack-en-basesudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/phpsudo apt-get update
Third, install PHP
PHP version 5.6
Sudo apt-get install php5.6 php5.6-clisudo apt-get install php5.6-dev php5.6-fpm php5.6-cgisudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-gd php5.6-curl php5.6-memcache
PHP version 7.1
Sudo apt-get install php7.1 php7.1-clisudo apt-get install php7.1-dev php7.1-fpm php7.1-cgisudo apt-get install php7.1-mysql php7.1-gd php7.1-curl php7.1-memcache
IV. Nginx configuration
# Pass all .php files onto a php-fpm/php-fcgi server.location ~ [^ /]\ .php (/ | $) {fastcgi_split_path_info ^ (. +?\ .php) (/. *) $; if (!-f $document_root$fastcgi_script_name) {return 404;} fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # fastcgi_pass unix:/run/php/php5.6-fpm.sock Fastcgi_pass unix:/run/php/php7.1-fpm.sock; fastcgi_index index.php; include fastcgi_params;} these are all the contents of the article "how to install PHP and PHP Nginx configuration in Ubuntu". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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.