I’m migrating my blog and a few other stuff I have running to Amazon infrastructure. I needed an Amazon EC2 instance with PHP support and able to connect to a MySQL.
Steps:
yum update
yum install nginx
yum install php70 php70-fpm php70-mysqlnd
Edit /etc/nginx/conf.d/virtual.conf
Edit the following properties of: /etc/php-fpm-7.0.d/www.conf
Create a php file on /var/www/
Access http://SERVER_IP:3000
You will need your security group for your ec2 instance to have port 3000 opened.
If you want to add them to auto start:
sudo chkconfig nginx on
sudo chkconfig php-fpm on
If you want to restart this services:
sudo service nginx restart
sudo service php-fpm restart
After a few good years with my blog out of date, I decided to start to write again and to migrate it to Heroku since his server was with a really old stack. I decided to use Heroku, Amazon RDS as Database service and S3 as file storage (for uploaded files)
Steps:
Disable all Wordpress’ extensions
Do a full backup (Wordpress, Database, Uploads, etc)
Send your code to Heroku using the repository you have created
Access your website
If you’re updating your Wordpress, there are chances to something go wrong or to some plugin to stop working with the new Wordpress version, so don’t forget to check and update them.
Also, if you have any other question or need more information a specific test, let me know. I can try to help.