I’m wondering what the best approach is to run a application on multiple Linux servers. Using EC2 AWS linux on different zones. The web application is the same on each zone, using a different database for each application which is defined in a single config file. At the moment when I update the application I have to manually update every
Tag: amazon-ec2
How to redirect from one ec2 instance to another ec2 instance if first ec2 instance is down?
Hope you are doing well. I have created website in Laravel framework and deployed on AWS EC2 server. If Ec2 instance is down sometimes how I redirect user to another ec2 instance created for different region how to achieve this using aws service ? I have one more question what are aws security service I can use for my website
open(/var/lib/php/session/…sesionid, O_RDWR) failed: Permission denied (13)
I am running my website on using ec2 nginx. I have done a update on the instance and now I getting this error when the site loads. I am wondering how to fix this? Appreciate any help Thanks Answer You install PHP from zero in this machine? You already tried to put a complete permission in this folder? Ex: sudo
How can i deploy a php script with a python backend [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 months ago. Improve this question I am new to aws and I want to deploy a php script to ec2 which executes a python file
Htaccess giving 404 error on Aws Linux 2 AMI
I have set up an elastic beanstalk and deployed my application to it, the application has a .htaccess file in it. .htaccess works perfectly on my localhost but when checking it on the live server it gives back a 404 error. For Example I have a login file named login_1.php, on my .htaccess I’ve set the file to be called
str_replace() is not working in aws server returning empty string but working on cpanel and locally
I am developing a laravel ride sharing applicaiton and for the settings data I used a config files. To change any value usign file file_get_contents after that with str_replace and file_put_contents for updating the value. here is some code example: But the $change_content doesn’t return any value in the AWS server NOTE: This is working in my local machine also
Failed login attempts via nginx/laravel API calls
I was dealing with an issue where my API site was not accessible either by my iOS app or by a web client. I fixed the issue and can now visit the API site via web client, but now am unable to login to …
AWS CloudFront for PHP hosting
I’m new to AWS and am having some difficulties understanding CloudFront. I have started off with one EC2 instance with NGINX, MySQL, and some PHP files within the public folder to expose APIs to the world. Then I was told CloudFront could be used to protect the instance from malicious attacks. I figured CloudFront required an Elastic Load Balancer. So
PHP AWS Elastic Beanstalk – Cannot post file more than 2GB
I have deployed an application in Elastic Beanstalk, changed some configuration so that I can upload larger files and restart nginx server. When I upload one file less than 2 GB, it is uploaded successfully. However, when I upload a file more than 2 GB, it does not upload successfully. Below are the lines that I have added in /etc/nginx/nginx.conf
i changed dns server name if i dont use https the homepage is redirected to old dns
I am a new to PHP and Apache server and i was asked to do few changes to DNS in the AWS Ec2 instance of a PHP application where i changed the config[‘base_url’]= puredata.digitowork.com, after i made …