Articles of amazon

PHP/MySQL issues when running WP on EC2 cloud

I am trying to create a wordpress blog on an Amazon EC2 instance. The amazon base image had apache and php already installed. I installed MySQL manually in my user directory. I am able to login to the MySQL database from linux command line. But I am not able to connect to the MySQL db […]

Enqueue AWS Script

I am working on the integration of an Amazon Webstore (Amazon Checkout) on a WordPress site using Amazon Documentation here. Has been a while since I worked with enqueueing external JScripts. I need to load two scripts from Amazon. I added some code to functions.php, but I seem to have made a mistake and I […]

Securing my WordPress Files and Directories

I am new to WordPress and securely hosting it on Amazon EC2. My question is, how do I secure my WordPress files and directories properly? My file permissions are set to 644 and my directories are set to 755. [ec2-user@ip-xx-xxx-xxx-xx my_sub_directory]$ ls -l total 160 -rw-r–r– 1 ftpuser 65534 395 Jan 8 2012 index.php -rw-r–r– […]

Change “From” name in MailChimp STS plugin

I’m using the Mailchimp STS plugin for WordPress, which uses Amazon SES for transactional emails. The plugin is set up correctly, but the default “From” name appears only as “andrew” in sent emails. Since there is no option to change this in the plugin’s settings, I assume this is being grabbed from my email address […]

Hosting WordPress on AWS EC2 using CloudFront Dynamic Content Origins for page content

Is it possible to completely host WordPress on AWS with EC2, S3 and CloudFront Dynamic Content Origins, in the way that WordPress is currently built / architected? Further Details: I would like to install my WordPress on an EC2 instance. Store all my assets: images, videos and download etc on S3 And use CloudFront Dynamic […]

Using audio shortcode for .mp3 URLs with a query string

I’m trying to use the audio shortcode with an audio file with a query string on the end of the URL and it won’t work. The reason is I’d like to use expiring signed URLs with Amazon S3. If I use a URL like http://bucketname.s3.amazonaws.com/audiofile.mp3 as the src in a call to wp_audio_shortcode() it works […]

How can I add programmatically custom taxonomy terms to a custom type post when saving posts?

Scenario: there is a ‘Recommended Books’ section on the website which uses the ‘book’ custom post type and the ‘author’ custom taxonomy. I’m using Amazon Product Advertising API for retrieving book data and covers. When adding a new ‘book’ into WordPress, the user copies the book ID (ASIN) into the post edit field, and clicks […]

Upgrade to SSL Breaks Admin Dashboard

I am currently running an instance of WordPress, version 4.5.3, on an Amazon EC2 server. It uses: CentOS 7 (OS) and has SELinux enabled. Server runs Apache with mod_security and mod_evasive PHP 5.6.24 The site’s name is The Rambling New Yorker. Not long ago I upgraded to SSL using Let’s Encrypt. The process was fairly […]

Using SMTP for outgoing mails (PHPMailer) on AWS instance?

I moved one of my wordpress site to an AWS instance. But once I got it working, noticed that none of the notifications or contact emails were being sent through. On researching the issue, I found that if I set the SMTP server to be an external SMTP (my AWS instance doesn’t have one), it […]

Hosting a WordPress blog as a sub folder from a S3 website

I have a website set up for my organisation under www.mycompany.com (running on Amazon S3). I also have a WordPress blog set up under blog.mycompany.com (running on a separate LAMP server). For SEO purposes, our marketing department has asked to set up www.mycompany.com/blog to go to our blog main page. Our website is currently hosted […]