How to deploy laravel on OVH perso
I have
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `articles` where (`visible` = 1 and `check` = 1) order by `created_at` desc)
error, but i put the good database information , i despair, someone can help me .
.env file :
APP_NAME=AfricanAgora
APP_ENV=production
APP_KEY=base64:/Mg66qNT9Xx8ckgZJayB+ubpOyzQC1yfh9/oND3CfY8=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://mydomaine.com
DB_CONNECTION=mysql
DB_HOST=mydomaine.mysql.db
DB_PORT=3306
DB_DATABASE=mydatabasename
DB_USERNAME=mydatabaseusername
DB_PASSWORD=secret
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync
REDIS_HOST=mydomaine.com
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=ftp.cluster026.hosting.ovh.net
MAIL_PORT=2525
MAIL_USERNAME=africanawh
MAIL_PASSWORD=VgJ67ZSJ3N6j
MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
NOCAPTCHA_SECRET=6LddnDoUAAAAAF2n8iFWdrUfEr1AOj0uSaW46qlJ
NOCAPTCHA_SITEKEY=6LddnDoUAAAAAB88KryZ5I-eXQ3Fq0zpXOj-6pWf
Quick question.
Are your database and Laravel project hosted on the same datacenter ?
Just asking because as I had a similar issue with OVH recently and discovered it was their fault.
They basically prevents applications to communicate with each others if they are hosted on different datacenters of them.
Hope this helps.
@MickaelAm everythink is ok now , exactly hey are hosted on different datacenters of them. it's work .
Now i dont find MAIL_DRIVE , MAIL_HOST in OVH panel (for contact page) , can you help me ?
Check your database and make sure you migrate your databases.
Please or to participate in this conversation.