Comments (29)
From the EC2 console you should find the bastion Auto Scaling group. Edit the configuration to set min=1 and an instance should be launched.
After a minute you can inspect the properties of the new instance in the console to find the public IP of the bastion that you can ssh into.
from aws-refarch-wordpress.
And will that reflect the changes across the board?
from aws-refarch-wordpress.
That will get you the ability to ssh to the WordPress server(s).
I recommend trying this (and let me know how you get on);
- Set the minimum and desired capacity of the WordPress Auto Scaling grout to 1
- after a few minutes, only one WP instance should be running, make your changes here and test the site.
- When you are happy you can create a new Launch Configuration for the WP Auto Scaling group (ASG) so that all future instances have this new config. see the docs here;
http://docs.aws.amazon.com/autoscaling/latest/userguide/change-launch-config.html
Over the next weeks we will consider the best way to allow users to override some of these parameters. The above steps should do the trick in the meantime. (also, see Jimmy's steps in #6)
Regards
Ronan
from aws-refarch-wordpress.
I apologise, I hadn't meant to close the issue.
I have not tested this, but it appears that the setting can be configured on a per-directory basis (http://php.net/manual/en/ini.core.php#ini.upload-max-filesize)
Therefore an easier option might be to modify the .htaccess file, adding;
php_value upload_max_filesize 20M
Please let me know if this works for you.
from aws-refarch-wordpress.
Right now I'm testing a new version that will allow you to configure this as a part of the cloudformation parameters. It will allow you to use a php.ini file that overrides the php.ini defaults. This will be available Monday (12/18).
from aws-refarch-wordpress.
Let me know if this is urgent and I'll get this fix pushed later today.
from aws-refarch-wordpress.
I may just leave this till the 18th Ill try the per .htaccess its for a platform that will be funded so nothing is broken I am just getting things launched at this point and set up. But ran into this snag, which seems to be the someone you run into any cloud formation template, No one really gives you the option to set WordPress or server parameters like the ini. I mean all the power lifting is done and you can set up such a amazing infrastructure in a few clicks. So ill have to redeploy the Autoscaling group?
from aws-refarch-wordpress.
You'll have to create a new launch configuration with your changes and associate that with the ASG. All new instances that launch will use the new launch config. Existing instances are not changed. You could double the number of desired instances and allow the ASG to launch new instances (which will by launched using the new launch config). Once those are launched you can change the ASG desired instances back to the original value and it will terminate the older instances first (if using the default termination policy). It will drain the instances first before terminating, so it could take some time depending on the load on your site. Hope this helps.
from aws-refarch-wordpress.
Rather than wrestling with this I think I'll wait and relaunch on the 18th I might try above suggestions but honestly at this point I am having trouble finding the config for php. I am used to AWS Ami but I am not seeing the PHP ini or the htppd.config, I checked the etc and var and even opt folders.
from aws-refarch-wordpress.
php.ini is in /var/www/wordpress/<<'WPDirectory'>>
Other ini's are in /etc/php-7.0.d/ (if running PHP 7.0)
from aws-refarch-wordpress.
For some reason Ill take a screenshot but my var has no www
from aws-refarch-wordpress.
from aws-refarch-wordpress.
The 10.0.200.0/24 subnet is the public subnet for the bastion host. From the bastion host, did you SSH to one of the web instances? They should be in one of the 10.0.0.0/22 to a 10.0.20.0/22 subnets. I think you're still on the bastion host.
from aws-refarch-wordpress.
I just followed the instructions above and puttyed in.
from aws-refarch-wordpress.
Ok.
Follow these steps (some you may have already done):
- Set the desired & minimum instance count of the Bastion ASG to 1.
- On your local machine, add the private key of your EC2 key pair to the ssh agent. Use these instructions https://aws.amazon.com/blogs/security/securely-connect-to-linux-instances-running-in-a-private-amazon-vpc/
- SSH to the bastion host by running "ssh -A ec2-user@{EC2-public-DNS-name}"
- Once on the bastion host, ssh to a web instances by running "ssh ec2-user@{EC2-private-ip-address}"
from aws-refarch-wordpress.
from aws-refarch-wordpress.
I just pushed out 2.0.1 that includes the ability to upload a php.ini override file from S3.
Lets do a screenshare session on Monday so we can get you connected to your web instances. Send me your contact info @ [email protected]
from aws-refarch-wordpress.
from aws-refarch-wordpress.
@Wolfindustriesinc see: #6
from aws-refarch-wordpress.
@darrylsosborne php-7.0.ini is not being override with cloudformation s3 configuration :(
from aws-refarch-wordpress.
Does the public has read access permissions on the ini override file?
from aws-refarch-wordpress.
Make sure you can download the ini file from any browser. This will verify that the EC2 instance can access the file and download it to the local /etc/ PHP version directory @ boot time.
from aws-refarch-wordpress.
from aws-refarch-wordpress.
from aws-refarch-wordpress.
The Elastic Load Balancer (or the application load balancer) runs a health check against each instance in the ASG. The ping path is /wp-login.php and is configurable in the Target Group associated with the ASG. If it doesn't get a successful response (HTTP 200) from this healthcheck within the threshold (unhealthy threshold, timeout, interval) then it will terminate the instance and launch a replacement. Verify apache is running on each instance, that the security groups still allow HTTP traffic to the web servers from the ELB, and each instance can access /wp-login.php.
from aws-refarch-wordpress.
from aws-refarch-wordpress.
You can configure the ALB health checks to accept 200-399, thereby allowing the redirects.
This can be configured in the templates. Try modifying the file aws-refarch-wordpress-03-publicalb.yaml as below; Find the section that creates "PublicAlbTargetGroup" and add;
Matcher:
HttpCode: '200-399'
Watch out for the correct whitespace/indents, the editor here removes them.
http://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html
from aws-refarch-wordpress.
from aws-refarch-wordpress.
Hi Everyone, since PHP version is 7.2 right now, how to install/upgrade to the latest PHP version, can we change the template to be dynamic install php version based on "latest" like wp-install do?
Thanks.
from aws-refarch-wordpress.
Related Issues (20)
- Q: Why are no custom NACLs defined?
- Slow Plugin Install time (504 Gateway Timeout errors) HOT 18
- One-Click Cloudformation template in README does not reference latest templates
- reinvent2019
- CloudFront Fails to create HOT 4
- How to update opcache configuration? HOT 1
- Won't work anymore...
- Doesn't work...
- Latest version of PHP HOT 4
- wp-admin not accessible with SSL
- Master template link 404
- EFS Resource Handler
- ElasticFileSystem' must match pattern ^(fs-)([a-z0-9]{8})$ cloudformation error
- EfsSizeMonitorFunction needs to be upgraded to python 3.9
- AutoScaling group in web stack fails to launch, PHP55 not avialable HOT 1
- Error creating stack - DatabaseCluster failed with incorrect MySql Aurora version HOT 1
- Error Creating Stack - AMI missing in Sydney Region HOT 1
- How can I recreate the AMIs with installed software?
- RDS issue HOT 1
- Stack to deploy a highly available, elastic, scalable WordPress environment. This master stack launches multiple nested stacks for different tiers. !! This can only be run in certain AWS Regions - 'us-east-1', 'us-east-2', 'us-west-2', 'eu-west-1'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-refarch-wordpress.