[视频教程] ubuntu系统下安装最新版PHP7.3.X环境
生活随笔
收集整理的這篇文章主要介紹了
[视频教程] ubuntu系统下安装最新版PHP7.3.X环境
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
視頻地址:
https://www.bilibili.com/video/av69088870/
筆記:
?
先安裝一下這個命令 add-apt-repository
apt-get install software-properties-common
添加第三方源:
add-apt-repository ppa:ondrej/php
apt-get update
安裝php:
apt-get install php
apt-get install php-fpm
service php7.3-fpm start
php -v
nginx配置文件中注意的點,一旦遇到"Primary script unknown",檢查下面三個地方:
root /usr/share/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
?
server {listen 80;server_name 127.0.0.1;access_log /var/log/nginx/default.access.log main;error_log /var/log/nginx/default.error.log;root /usr/share/nginx/html;location / {index index.html index.htm;}location ~ \.php$ {fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;include fastcgi_params;} }?
php-fpm配置文件中注意的點:
listen = 127.0.0.1:9000
轉載于:https://www.cnblogs.com/taoshihan/p/11595177.html
總結
以上是生活随笔為你收集整理的[视频教程] ubuntu系统下安装最新版PHP7.3.X环境的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用client-go自定义开发Kube
- 下一篇: 数组对象根据某个属性取出重复的个数