在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
sudo apt-get install php5-adodb php5-cli php5-common php5-curl php5-dev php5-enchant php5-exactimage php5-fpm php5-gd php5-geoip php5-gmp php5-imagick php5-imap php5-interbase php5-intl php5-lasso php5-ldap php5-librdf php5-mapscript php5-mcrypt php5-memcache php5-memcached php5-pgsql php5-xdebug php5-xmlrpc
sudo apt-get install postgresql nginx
nginx.conf为默认的配置文件,会加载下面两个目录的配置 include /etc/nginx/sites-enabled/* include /etc/nginx/conf.d/*.conf
sites-enabled里面的配置是sites-available的符号连接 cd /etc/nginx
修改conf.d目录下的配置如下 server { #打开目录浏览 autoindex on; autoindex_exact_size on; autoindex_localtime on; root /var/www; index index.html index.htm index.php; server_name localhost; location ~ \.php$ { fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; } } ------------------------------------------php源码下载------------------------------------------ ./configure cd ext/pcntl
设置权限 sudo chown -R `whoami` /var/www; sudo chgrp -R www-data /var/www;
重启服务 sudo invoke-rc.d nginx restart
sudo invoke-rc.d php5-fpm restart
|
2022-07-18
2022-08-17
2022-11-06
2022-07-29
2022-08-18
请发表评论