oubingbing / wechatAlliance

微信小程序--校园小情书后台源码,好玩的表白墙,告白墙。
MIT License
747 stars 179 forks source link

宝塔部署完了,403。 #7

Closed PDR-SY closed 5 years ago

PDR-SY commented 5 years ago

按照教程一步步走的,就是不行。

Axx8 commented 5 years ago

宝塔部署错误可以参考宝塔官网教程。

usagiryu commented 5 years ago
螢幕快照 2019-06-25 下午7 30 57
Axx8 commented 5 years ago

在宝塔里面设置网站根目录 {1T{~% AD5F{~9{MWCG88KG

usagiryu commented 5 years ago
螢幕快照 2019-06-26 上午8 40 17

在这里取消禁用函数 proc_open

Axx8 commented 5 years ago

生成appkey php artisan key:generate 出现错误 1AFC584716EA9A73322134B64702B04E

usagiryu commented 5 years ago

建议检查 .env

Axx8 commented 5 years ago

@a465855787 请问一下你403错误解决了吗?知不知道具体原因

PDR-SY commented 5 years ago

[root@VM_0_15_centos xiaoqingshu]# php artisan key:generate

[root@VM_0_15_centos xiaoqingshu]# php artisan jwt:secret

This will invalidate all existing tokens. Are you sure you want to override the secret key? (yes/no) [no]:

yes

jwt-auth secret [**] set successfully. [root@VM_0_15_centos xiaoqingshu]# cd vendor/

[root@VM_0_15_centos xiaoqingshu]# cd .. . [root@VM_0_15_centos wwwroot]# chown -R www:www xiaoqingshu/ chown: changing ownership of ‘xiaoqingshu/public/.user.ini’: Operation not permitted [root@VM_0_15_centos wwwroot]# cd xiaoqingshu/ [root@VM_0_15_centos xiaoqingshu]# chmod -R 755 storage/logs/ [root@VM_0_15_centos xiaoqingshu]#

PDR-SY commented 5 years ago

先把运行目录设置成public,然后再执行上面那些命令就行了