Laravel SQLSTATE[HY000] [2002] Connection refused

前端 未结 10 1375
情深已故
情深已故 2020-12-18 20:44

so I want to deploy my existing laravel porject into my digitalocean vps I user this tut and I upload my site successfully

also my env file is

APP_E         


        
10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 21:21

    SELinux might be the cause.

    Set this rule and try again:

    sudo setsebool -P httpd_can_network_connect_db=1
    

提交回复
热议问题