All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
844 views

Install Zip module in PHP8.2

I am trying to install the zip module in PHP 8.2, in Amazon Linux 2023. However, either the module is not available or it is a different name than the previous ones. I have tried. sudo yum install ...
mb87's user avatar
  • 23
0 votes
0 answers
255 views

AmazonLinux 2022 Fails to Run PHP Scripts - Error AH02454

I am attempting to run basic PHP scripts on an Amazon Linux 2022 or Amazon Linux 2023 server instance. I followed the directions here and when I request index.html it serves a static page fine. ...
Steve's user avatar
  • 125
0 votes
0 answers
87 views

Calling API from Https website to AWS

I have a website with https consider https://example.com which wants to call an API from an AWS EC2 instance consider http://ec2.##.##.##/get-users. I am getting Connection Refused when I do so but in ...
Rajat Patil's user avatar
0 votes
0 answers
143 views

Php mail transmission error using postfix

I need your help I am using AWS and ubuntu os 20.04. The web server uses nginx and uses php mail I installed php 7.3 pfm. I used postfix for mail function and connected to SMTP. It's not Google, it's ...
EthanKyle's user avatar
1 vote
1 answer
151 views

Deploy a PHP application that calls python scripts on AWS

I've made a PHP site that calls a bunch of python workers in the background (using the queue-worker system in laravel, where the worker calls the python tool via CLI). The python tools each have their ...
Tominator's user avatar
  • 111
0 votes
1 answer
2k views

Access PHP error log in AWS Elastic Beanstalk

I'm running a PHP web app on AWS Elastic Beanstalk, and I've been trying to diagnose some seemingly random (rare) issues users have been encountering after upgrading to PHP 8. On localhost, I'd have ...
Ben in CA's user avatar
  • 123
0 votes
0 answers
42 views

Page Loads Error

In my production Environment I'm observing a sporadic issue where pages are taking a long time to load. In the error logs we are seeing: PHP Fatal error: Maximum execution time of 30 seconds ...
Santosh Baruah's user avatar
1 vote
1 answer
72 views

How to enable HTTPS for my marketplace

I'm building a marketplace platform that enables many merchants to sell to their customers. At the moment I serve stores on my own domain like so https://storeA.mydomain.com or https://storeB.mydomain....
Owen's user avatar
  • 21
2 votes
0 answers
301 views

PHP OpCache on Amazon EFS

Looking for some validation of my thought process here. I don't have the stats to hand to back up my claims, but have enough experience with web hosting with and without EFS to be comfortbale in ...
jsjw's user avatar
  • 43
1 vote
0 answers
763 views

AWS EFS plus PHP painfully slow possible alternatives?

i built an highly available and fault tolerant Wordpress site on AWS Cloud, i using ubuntu 20.04 and apache2.4, /var/www/html is mounted on EFS filesystem configured whit provisioned troughtput at ...
EricDrvn's user avatar
0 votes
2 answers
232 views

How to stop requests on PHP server while it is running cron job sheduled PHP script?

I have a situation when some DDOS attacks are putting my PHP server down. Occasionally. I'm using AWS with auto scaling groups, so it is not a problem. The problems start when this server is going ...
Yevgeniy Afanasyev's user avatar
0 votes
0 answers
1k views

How to check AWS cloudfront traffic limit? 504 server error

I have a website that handles ticket selling which opens once a year. Many peoples come to the website at a specific date and time. However, some users received 504 Status Code (Gateway Timeout) from ...
Muffin's user avatar
  • 1
0 votes
0 answers
2k views

I can't start connection with WebSockets in EC2

I really need help with websockets, recently I used SSL(Let's Encrypt) in my website that is in ec2, and I used route 53 for routing, and the website works perfectly with SSL and my DNS, but I can't ...
Paula Silva's user avatar
0 votes
1 answer
198 views

PHP ParseError after uploading PHP files through SFTP

We have a problem when uploading PHP files to our production NFS server where we start getting PHP parse errors after uploading them. The only way to "fix" them, is to open them with vim and ...
ncorral's user avatar
0 votes
0 answers
935 views

WebSocket connection timed out AWS EC2 + Ratchet PHP

I have a problem involving WebSockets, well, I have a website, and recently I put SSL on it, using Let's Encrypt, okay, SSL works perfectly, along with my website that is hosted on EC2, with a domain ...
AnneReb's user avatar
1 vote
1 answer
65 views

Simple deployment to Ec2

I have a fairly simple PHP application (CakePhp) that has been moved to the clients EC2 account. I'd now like to set up a simple deployment process for it. These are the steps I want: Deploy changes ...
Will's user avatar
  • 131
3 votes
2 answers
262 views

Slow queries when switching from GoDaddy to AWS

A coworker of mine just migrated our server and DB to AWS and since then a handful of queries are going extremely slow. Our code is largely PHP and we're using a MySQL database. Based on some ...
motel one sun's user avatar
1 vote
0 answers
106 views

Owners, groups, permissions for PHP & SSH access in AWS EC2

For a while now I have been searching the web for answers to the following, yet seem to be becoming more confused with the various answers to others' similar questions. My environment: AWS EC2 linux ...
krot's user avatar
  • 13
2 votes
2 answers
1k views

Struggling to enable SSL on an old EC2 Instance running Apache & Amazon Linux 1

Title Hi. I've been struggling to find out why my EC2 Amazon Linux (1) Instance isn't serving my site at the https:// address, even though I've confirmed that the SSL is configured, per https://www....
anonymoose's user avatar
3 votes
0 answers
315 views

Downloading fails at random for our users from S3, need help figuring out what's wrong

We have a file sharing service where users can upload, share and download their files. We are using AWS S3 to store our files. We're facing an issue where small files download fine, but when files ...
Jahanzeb's user avatar
  • 131
1 vote
0 answers
252 views

PHP cURL on AWS starts returning error 0 after long uptime

We're using Ubuntu 16.04 on AWS (4.4.0-1066-aws x86_64) to send pushes to Android and iOS clients from PHP application using curl. This is the bit of code used to send a push to Firebase: $ch[$i] = ...
roundowl's user avatar
1 vote
1 answer
555 views

What is the major difference between AWS Elastic Beanstalk & Docker. Which one should i use?

I just started learning about Amazon elastic beanstalk, and it seems very good and useful. However, it seems like Docker can be used for the same thing. AWS EB let's you create environments in Node....
samceena's user avatar
  • 161
1 vote
0 answers
2k views

PHP-FPM - performance tuning and CPU usage

I have a web application written in Laravel / PHP that is in the early stages and generally serves about 500 - 600 reqs/min. We use Maria DB and Redis for caching and everything is on AWS. For ...
djt's user avatar
  • 111
1 vote
1 answer
231 views

Developing with Git and SSH access on AWS Elastic Beanstalk

We are using EC2 to develop one of our application and we are using Git and SSH to access our EC2 server and deploy files. Unfortunately, AWS breaks some data, changes IP addresses and make other ...
Epsiloncool's user avatar
5 votes
2 answers
371 views

Amazon EC2 instance is getting spammed with different PHP filenames

Our server has been attacked recently and looks something like the following in the logs: [Mon Feb 18 09:18:43 2019] [IP_ADDRESS] script '/var/www/ynm.php' not found or unable to stat [Mon Feb 18 09:...
WKFY's user avatar
  • 51
-1 votes
1 answer
176 views

LAMP stack with AWS performance [duplicate]

I am planning to move my LAMP stack to AWS as the number of users increases. Current estimations suggest, that the Server has to handle roughly 100.000 users accessing the static landing page, out of ...
mo_st's user avatar
  • 39
5 votes
1 answer
6k views

What is the best way to run cronjob in AWS ECS?

I have a web app powered by Laravel that is set up on AWS ECS. I would need to run an artisan command as a cronjob. I'm looking at "Scheduled Tasks" in ECS Cluster configuration. I can launch new ...
Sivaji's user avatar
  • 101
0 votes
1 answer
2k views

Change in php.ini not reflecting PHP Memory_Limit Master Value

I am trying to install a composer package for AWS S3 integration and came across the Composer Out of Memory issue. Upon checking phpinfo() I could see the loaded php configuration file is /etc/php....
Hari's user avatar
  • 1
3 votes
1 answer
674 views

Why may AWS t3.micro in Singapore respond slower than t2.nano in N. Virginia from Bangladesh?

I have a t2.nano instance running in North-Virginia availability zone (us-east-1) for almost 1 year. In hope of reducing latency, I just have deployed the created AMI of that instance to a t3.micro ...
Touhid's user avatar
  • 131
0 votes
1 answer
697 views

nginx stopped serving index publicly after installing php

Nginx was serving a index.html fine from /var/www/test/html/ from within the server and also when I curl'd the ip and port like some-ip:8889. Then I installed php because I was going to try serving a ...
nealous3's user avatar
  • 131
2 votes
2 answers
2k views

PHP session timeout

I'm having some troubles with the session timeout in a PHP application, I suspect the timeout is given by code but I prefer checking the infrastructure first. The application I'm running is pure PHP 5....
nikolaigauss's user avatar
2 votes
3 answers
7k views

php-mcrypt package missing from yum on AWS AMI

Seems like new versions of the Amazon AMI on EC2 don't have the php-mcrypt package available. How do I get it? $ sudo yum install php-mcrypt Loaded plugins: langpacks, priorities, update-motd amzn2-...
Meekohi's user avatar
  • 121
0 votes
1 answer
789 views

How do I upgrade PHP across EC2 instances in an AWS launch configuration?

Unfortunately I wasn't the one to set up this infrastructure so I'm lacking on some really basic concepts here. We're using AWS Launch Configurations to manage EC2 instances, and I'd like to upgrade ...
Rail24's user avatar
  • 111
0 votes
1 answer
391 views

pipe email hosted at Amazon SES to ec2 hosted php script

I have a website hosted on an amazon ec2 and I have the websites email address hosted at amazon SES, we also use amazon workmail to access the emails and send out emails. However now what we would ...
Jayreis's user avatar
  • 145
0 votes
1 answer
1k views

Aws Redis clustered session managment not working

We are running php7 with nginx in aws ELB and handling sessions in AWS clustered redis, but session is not storing in AWS redis clustered.. Sometime it works but most time it not working. in php.ini ...
venkat venkatesh's user avatar
0 votes
1 answer
224 views

AWS Elastic Beanstalk PHP7.1

I just set up an Elastic Beanstalk for a Laravel Application which is just before Launch. But it wasn't possible to choose PHP7.1 over PHP7.0. Is there any possibility to install PHP7.1 on the ...
bambamboole's user avatar
1 vote
1 answer
162 views

setting up nginx with django and php on aws

I am trying to set up nginx for django app and php on AWS / Linux AMI. Nginx has already been configured to work for multiple django apps simultaneously and all works fine. Now I need to include the ...
Juraj Bezručka's user avatar
0 votes
1 answer
2k views

How do I find where the 301 redirect is for this error loop?

I am getting redirect loop / endless chain and I cannot figure it out. I'm very new to programming and servers so please help someone very green! Here is what I have so far: .htaccess <IfModule ...
JustLearninThisStuff's user avatar
1 vote
1 answer
794 views

how to correctly return public server address in EC2 instance with PHP

I'm new with AWS... I have set up one EC2 instance where it runs Nginx and PHP 7.1.6 i have also made a page that return phpinfo(); details but it returning not my elastic IP but internal IP address: ...
fromthestone's user avatar
1 vote
2 answers
845 views

AWS EC2 CPU Utilization vs PHP Performance - Autoscaling CPU Thresholds?

I'm operating an Amazon AWS web application that already has a lot of timezone variation in CPU utilization. I'm also concerned about going viral too because it has a tendency to happen with us and ...
Amy Neville's user avatar
1 vote
1 answer
2k views

php-fpm with NGINX response time exponentially increase over time

I have a load balanced application on AWS, on two c4.2xlarge (8 vCPUs, 15GB ram) servers and they serve a very simplistic site but with a system call to ffmpeg encode a <5s mp4. Individually, the ...
w0rldart's user avatar
  • 217
1 vote
0 answers
58 views

New Relic shows increased web external lags, how to debug?

As you can see, suddenly the web_external response time spiked and remained high since (this is from ~20 hours ago). Digging in new relic shows curl_multi_exec as the source of the issue. ...
Niro's user avatar
  • 1,431
2 votes
1 answer
4k views

AWS EC2, Apache, PHP: php_network_getaddresses: getaddrinfo failed

Running PHP 5.6 on an EC2 instance with Apache 2.4.18, I'm occasionally seeing errors in the log when trying to connect to an RDS database: PDO::__construct(): php_network_getaddresses: getaddrinfo ...
Marcus Ilgner's user avatar
1 vote
1 answer
126 views

Duplicate a folder (size 150MB - 200MB) of one S3 bucket to another S3 bucket of different region using PHP

I want to copy a folder (size 150MB - 200MB) of one S3 bucket to another S3 bucket of the different region using PHP or in S3 term "duplicate all objects with the prefix of an S3 bucket into objects ...
Neeraj Rathod's user avatar
1 vote
1 answer
96 views

LAMP stack, read/write access to only specific directories

I'm considering setting up an AWS micro-instance from which I can run a number of different, unrelated websites. An issue I've had with my shared hosting is that some of my clients run Wordpress ...
Michael's user avatar
  • 113
-7 votes
1 answer
79 views

AWS S3 EC2 EBS Confusion [closed]

Currently when a user uploads a photo / video i upload it in root directory of my website. /var/www/mysite/pics/hash/example_filename.jpg and /var/www/mysite/videos/hash/example_filename.mp4 I'm ...
Edward Snowden's user avatar
0 votes
1 answer
908 views

PHP or Nginx configuration settings in AWS Auto-Scaling group

I did all the changes to AWS EC2 machine for Nginx & settings up PHP values and tested everything and than baked the AMI so it can be launched under AWS auto-scaling group. All is good, but when ...
Farmi's user avatar
  • 379
0 votes
1 answer
2k views

Hosting a small PHP web app with Lightsail [closed]

I am building a small and very simple web app for users in a company. It's built on vanilla PHP and MySQL, no frameworks and it is very lightweight. I am new to hosting and I'm wondering if Amazon ...
Ben Thomson's user avatar
0 votes
3 answers
4k views

mpm_prefork:error Cannot allocate memory

I was using a website called loadimpact to test how my php application would perform under a big amount of access. I did one really small test with only 50 virtual users accessing at the same time, ...
IvanF's user avatar
  • 1
1 vote
0 answers
339 views

Nginx DNS resolution for PHP Load Balancer

Our AWS configuration has an nginx server pointing all PHP requests to an ELB with multiple PHP servers in it. When the ELB itself scales, we lose connectivity within the next few hours as those old ...
ahamilton9's user avatar