I have inherited an old legacy system based off Yii 1.1 which has had multiple development teams working on it for the past 10 years so is a bit of a mess with little to no documentation. Doctrine Migrations have been used in the past and I can get this working on Docker, however on ..
I am running apache on an AWS EC2 server. Through PHP shell_exec, I am creating a list of my running cron jobs. The list is long with ~4000 rows each cron job has one of three different endpoints and a variable. Here’s a snippet of the list, when I run shell_exec(‘crontab -l’): MAILTO="" 1 22 ..
I use PHP Symfony for my backend. I need to download cloudinary data into my EC2 instance using the cloudinary url of a single file or folder. For that, i wanted to create a PHP script to do that. I use cloudinary_php package (https://packagist.org/packages/cloudinary/cloudinary_php). I use the upload functionality to store my data, but it ..
We are using laravel on EC2 and connecting to an RDS instance. Sporadically, once every two days or so there is a timeout issue on the app hosted on EC2 with an error stating SQLState[HY000] Connection timeout error There are other posts where this is due to the wrong RDS configuration but this is not ..
I am new to PHP and trying to migrate a PHP zend based web application into AWS EC2. I got the following error while try login to the site after migration. The form submitted did not originate from the expected site Tools stack: AWS EC2 PHP 7.4 Apache Tomcat 2.4 From my investigate it may ..
I have a web page on an AWS instance located at /var/www/html/ Until now this website used the keys AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in the code itself to access files hosted on S3. For security reasons, I have removed these keys from my code and used the aws configure command to ssh to store them on ..
I hosted my Laravel Application on AWS Beanstalk, I created a Postgres RDS and connect with to my application, the application can confirm that there is a connection to the database but, for some reasons, I cannot ssh to the database using Putty, to run my artisan commands, so I am not able to run ..
I wrote a php login page which database is on MySQL. XAMPP supports it stacional, but wants to upload it to the AWS ec2 cloud + RDS server. However, php files do not work in ec2 because it throws the code onto the screen instead of initializing it. Anyone have an idea how to run ..
I am done with a Laravel project and I plan to host it on AWS EC2. I am still learning how that works. My project includes file uploading. I upload my files in Laravel’s public folder. Similarly, I store some images in the public folder and use laravel’s asset function in the img tag to ..
I installed all the things and laravel project is in var/www/html folder. I did necessary things and was able to see index.php ( in public directory in project ) content in the browser not the website. What is the reason for that? Sourc..