ubuntu 服务器环境配置16.04 +laravel +composer

晁砚
2023-12-01

composer 

composer 镜像加速 

文档地址:http://packagist.laravel-china.org

加速命令:composer config -g repo.packagist composer https://packagist.laravel-china.org

 

ubuntu16.04   生产环境配置

文档地址: laravel-china.org/topics/2814/ubuntu-1416-under-the-laravel-lnmp-online-environment-automatically-deploy-scripts . 

https://github.com/summerblue/laravel-ubuntu-init/blob/master/16.04/install.sh 已经修改

教程执行一遍

 mkdir  /data/www/kids 

mkdir /data/log/nginx 

卸载一下apache2 

service nginx restart

sudo apt-get --purge remove apache2
sudo apt-get --purge remove apache2.2-common
sudo apt-get autoremove

出现问题:Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

添加log 文件目录  mkdir /data/log/nginx

  执行service nginx restart   。 项目运行效果

mysql 5.7 无法更改用户名  

 百度查找 mysql5.7  卸载 重新安装

重装 进入  create database kids;

修改项目出现权限问题  storage  设置权限

 cd /data/www/kids/

 chmod 777 -R /storage 

 出现问题

ErrorException (E_WARNING)

file_put_contents('路径问题'): failed to open stream: No such file or directory

 

顶级域名设置. kids /config/sudosu 添加com 域名

 

转载于:https://www.cnblogs.com/sr0322/p/9366462.html

 类似资料: