I tried deploying my project to an AWS EC2 server but when I tried to run php artisan migrate I am getting the following error. PDOException::(“SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO)”) PDO::__construct(“mysql:host=127.0.0.1;port=3306;dbname=myDb”, “root”, “”, []) The following is my .env file: Answer Okay, so I got it fixed. All I did was run php artisan config:clear.
Tag: amazon-ec2
Can’t get mbstring to work on Amazon linux 2 AMI
I run on Amazon linux 2 AMI, With PHP 7.2.5 and apache The probleme is: Call to undefined function mb_convert_encoding The initial need is to be able to read an uploaded text file correctly and have its content inserted in DB, knowing that the encodings can be various The problem i am struggling with is to get mb_convert_encoding working !
php file automatically renamed to php.suspected
Since last 4 days, we are facing strange issue on our Production server (AWS EC2 instance) specific to only one site which is SugarCRM. Issue is /home/site_folder/public_html/include/MassUpdate.php file is renamed automatically to /home/site_folder/public_html/include/MassUpdate.php.suspected This happens 2-3 times in a day with 3-4 hours of gap. This issue occurs only in case of specific site, even it doesn’t occur for staging