https://lnmp.org/install.html
php 5.6.31
mysql 5.5.56
华为云:软件包安装
MYSQL数据库外网IP处理
server
{
listen 80;
#listen [::]:80;
server_name testrsh.bouncebank.com ;
index index.html index.htm index.php default.html default.htm default.php;
root
/home/wwwroot/testrsh.bouncebank.com/public;
//一些配置代码......
#access_log off;
access_log
/home/wwwlogs/testrsh.bouncebank.com.log;
error_log
/home/wwwlogs/testrsh.bouncebank.com.error.log;
}
ini_set('display_errors','yes');
打开PHP报错
因TP的WEB目录结构致使:
调整受权目录PHP.ini或服务器fastcgi.conf :open_basedir=$document_root/:/home/wwwroot/:/tmp/:/proc/";
-----open_basedir报错和No input file specified. 报错都是同个缘由致使
后台提示:提示! php_fileinfo扩展没有开启,没法正常上传文件!
.tar.gz
格式解压为
tar
-zxvf
xx.tar.gz
.tar.bz2
格式解压为
tar
-jxvf
xx.tar.bz2
lnmp安装fileinfo扩展:https://www.cnblogs.com/seafood/p/5462204.html
也是安装其余扩展的方法--Linux下为PHP添加扩展库的方http://www.jb51.net/article/31330.htm。
Centos 7(Linux)环境下安装PHP(编译添加)相应动态扩展模块so(以openssl.so为例)
http://blog.csdn.net/shinesun001/article/details/54312402
三、解决方案:
1) 从完整版安装包中解压相应的php版本tar包,在ext文件夹下找到fileinfo
2) 安装扩展
cd /lnmp1.2-full/src/php-5.6.9/ext/fileinfo
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
3) 修改php.ini文件,添加fileinfo扩展
extension = fileinfo.so
----不是.dll(window)
4) 重启服务器和php-fpm后在phpinfo便可看到fileinfo已经开启
安装memcached----重启机器生效
安装
telnet :http://blog.csdn.net/u012259256/article/details/67639982
http://blog.csdn.net/naughty610/article/details/5724181
--------------------------------------------------------------------------
./configure的做用是检测系统配置,生成makefile文件,以便你能够用make和make install来编译和安装程序。
执行./configure的话要到你解压好的目录中去(cd 程序文件夹名称)。
你先ls,看有没有configure或者makefile文件。
若是有configure,就./configure,有不少参数,看楼下的吧。若是系统环境合适,就会生成makefile,不然会报错。
若是有makefile,就直接make,而后make install。
你还能够用rpm或者deb包来安装。并且如今的发行版都有本身的包管理器,好比apt或yum,一个命令就能够从源下载软件,还能够自动解决依赖问题。