咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
1.安装php
yum -y install php#安装php
yum install php php-mysql php-gd libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath php-mhash libmcrypt
如果要把php和nginx整合还要安装php-fpm组件:
yum install php-fpm
/etc/init.d/php-fpm start
2.安装nginx
参考:https://www.landui.com/Help/Show-1247.html
3.在nginx服务中的配置:
打开test.conf文件在index索引行中添加index.php
把fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
修改为:
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;