![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux环境部署
Suntxu
这个作者很懒,什么都没留下…
展开
-
linux 系统 phpstudy集成环境用composer 安装tp6.0
在 linux 环境下安装了 phpstudy 的情况下使用 composer 下载tp6.0因为在有phpstudy集成环境的情况下 下载 composer 会把默认的 php 版本对应成5.5 这时候通过官网介绍 composer下载会默认下载tp5.1解决方法:1.使用xp命令切换php环境变量版本2.切换到要把文件下载到的目录执行:composer create-project topthink/think tptp是文件夹名自己可随意,下面就已经下载成功了。...原创 2021-07-08 10:25:07 · 315 阅读 · 0 评论 -
tp5.1 在linux上部署提示session_start(): Failed to initialize storage module: files (path: )
找到session.save_path看看是否开启开启后把后面的路径改成 "/tmp"/tmp 是 linux下的tmp目录是一个系统产生临时文件的存放目录,同时每个用户都可以对他进行读写操作原创 2020-07-01 16:08:01 · 769 阅读 · 0 评论 -
“require(): open_basedir restriction in effect. ” 解决方法(转)
tp5.1框架将代码配置到linux服务器上时提示“require(): open_basedir restriction in effect. ”如下:1. Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/zhuyuyun/thinkphp/start.php) is not within the allowed path(s): (/www/wwwroot/zhuyuyun/...转载 2020-07-01 15:42:42 · 2245 阅读 · 0 评论