Http 500 error. Please help


Did it mean that i need to generate a new key?


Can you generate a new key?


( I think )

Alright boom!

I opened database.php from config and inserted

‘options’ => [PDO::ATTR_EMULATE_PREPARES => true, PDO::MYSQL_ATTR_COMPRESS => true,]


Amazing!!! I will insert the line and try to run again.
Where do you get the code?



putenv is disabled on 000webhost so is causing issues with env file


Hi @Infinity
Now the error is this

I checked the password, username, and db name. It should be okay but no… what would another option you’d suggest to fix this error?


Insert this after your database info

‘options’ => [PDO::ATTR_EMULATE_PREPARES => true, PDO::MYSQL_ATTR_COMPRESS => true,]

Just after


Hi, how to fix this,

I checked the db and user name in .env, no spaces in between the required name. everything should be ok. but this error, how to fix

Deploy Laravel Project into 000webhost site

Hi all!

Everything appears to load fine now… :slight_smile: Could you please confirm?


like this? did this, the problem is the same


You had to change forge to your actual values, I have done it for you.


Amazing! Thank you so much @Infinity. Appreciate a lot!