Moodle to WP connection not working on AWS EC2
-
Thanks for the plugin. I’m planning to purchase the full package but wanted to check the basic functionality before buying.
My moodle and wp sites are both on AWS EC2, running on Apache.
So I installed the plugin on Moodle (https://moodle.abc.com).
And I installed the plugin on WP (https://abc.com)
Both sites are on the same server, same ip, but defined as different sites in Apache.I created the web service on Moodle and and added the access token on WP. I was able to sync the courses from moodle to WP without any issues. But when I went back to moodle to add the wp site, I got the dreaded “Please check the URL or wordpress site permalink” error when I clicked on the Test connection. So seems like moodle can’t get through the WP site. I tested with the recommended options here in this forum, including the test.php that you have mentioned before to load the site. Both sites can see each other, I tested the test.php (fetch index page of the other site via curl ).
So after a lot of debugging, I created a wp site on a different shared host, with a different url https://xyz.com/. I installed the plugin on this one and tried to connect from moodle and was successful. So I thought it just needs to be a different server to work.
I then created a new EC2 instance in a different account with a different ip, and installed wp on that and pointed my main site to that server (https://abc.com/)
I still cannot connect from the moodle site to the wp site on aws, even though they’re on different servers and different IPs.
The only difference between when it worked for me and when it didn’t is that I was using a different url in the shared hosting. And I’m not sure of the ports that are required, but on AWS, I have 80 and 443 open for http and htttps.
So, what am I missing on AWS that it doesn’t work? The next thing I’m going to try is to point my main domain to the shared host and try connecting again to see if that will work.
- The topic ‘Moodle to WP connection not working on AWS EC2’ is closed to new replies.