yum安裝php,centos7 安裝 php7

 2023-11-19 阅读 20 评论 0

摘要:2019獨角獸企業重金招聘Python工程師標準>>> yum update yum -y install epel-release rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum search php7yum install -y php72w

2019獨角獸企業重金招聘Python工程師標準>>> hot3.png

yum update
yum -y install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum search php7yum install -y php72w-cli php72w-common php72w-dba php72w-devel php72w-embedded php72w-enchant php72w-fpm php72w-gd php72w-imap php72w-interbase php72w-intl php72w-ldap php72w-mbstring php72w-mysql php72w-mysqlnd php72w-odbc php72w-opcache php72w-pdo php72w-pdo_dblib php72w-pear.noarch php72w-pecl-apcu php72w-pecl-apcu-devel php72w-pecl-geoip php72w-pecl-igbinary php72w-pecl-igbinary-devel php72w-pecl-imagick php72w-pecl-imagick-devel php72w-pecl-libsodium php72w-pecl-memcached php72w-pecl-mongodb php72w-pecl-redis php72w-pecl-xdebug php72w-pgsql php72w-phpdbg php72w-process php72w-pspell php72w-recode php72w-snmp php72w-soap php72w-tidy php72w-xml php72w-xmlrpc --skip-broken===============================================mkdir /tmp/session
chown -R nobody:nobody /tmp/session
chmod -R 755 /tmp/sessionsed -i 's|short_open_tag = Off|short_open_tag = On|g' /etc/php.ini
sed -i 's|;date.timezone =|date.timezone = Asia/Shanghai|g' /etc/php.ini
sed -i 's|;session.save_path = "/tmp"|session.save_path = "/tmp/session"|g' /etc/php.ini
sed -i 's|memory_limit = 128M|memory_limit = 300M|g' /etc/php.ini
sed -i 's|post_max_size = 8M|post_max_size = 80M|g' /etc/php.ini
sed -i 's|upload_max_filesize = 2M|upload_max_filesize = 20M|g' /etc/php.inised -i 's|user = apache|user = nobody|g' /etc/php-fpm.d/www.conf
sed -i 's|group = apache|group = nobody|g' /etc/php-fpm.d/www.conf
sed -i 's|;listen.owner = nobody|listen.owner = nobody|g' /etc/php-fpm.d/www.conf
sed -i 's|;listen.group = nobody|listen.group = nobody|g' /etc/php-fpm.d/www.confservice php-fpm startps -ef|grep php===============================================location / {try_files $uri $uri/ /index.php?$args;
}location ~ .*\.php {fastcgi_pass 127.0.0.1:9000;	fastcgi_keep_conn on;fastcgi_index index.php;include fastcgi_params;set $script    $uri;set $path_info  "/";if ($uri ~ "^(.+\.php)(/.+)") {set $script     $1;set $path_info  $2;}fastcgi_param PATH_INFO $path_info;fastcgi_param SCRIPT_FILENAME  $document_root/$script;fastcgi_param SCRIPT_NAME $script;
}

?

轉載于:https://my.oschina.net/qiongtaoli/blog/1630112

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/4/183956.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息