tp5 window环境迁移到一键lnmp流程问题笔记

tp5 window环境迁移到一键lnmp流程问题笔记

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
3、解决方案:

  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,一个命令就可以从源下载软件,还可以自动解决依赖问题。 
posted @ 2018-03-14 16:12 Newman·Li 阅读( ...) 评论( ...) 编辑 收藏
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值