Question

Error 403 when trying to connect wp app to DO wp droplet

Posted October 5, 2020 125 views
WordPress

I tried following two tutorials mentioned in this community for fixing it. I made sure jet pack was installed, and I used the following commands to enable xml-rpc:

sudo apt-get install php7.0-xml php7.0-xmlrpc
sudo systemctl restart apache2

I also enabled xml-rpc:

sudo a2enconf block-xmlrpc
I also restarted apache2 after running this command.

No luck! My domain is gilbertsvillechiropractic.com

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Hi @melaniecarr23,

Can you please let us know what exactly are you trying to achieve? Where are you trying to connect your WordPress application to? You mentioned jetpack, are you trying to connect jetpack to your WordPress application hosted on DigitalOcean?

Additionally, if that’s the case, how did you try to allow xmlrpc requests, can you share your block?

One last thing, are you using Nginx or Apache as this will mean a different approach would need to be taken?

Regards,
KFSys

  • I spun up a Wordpress droplet with the domain name gilbertsvillechiropractic.com. Installed the JetPack because I’d read it is needed to connect the Wordpress iPad app to it. I am trying to manage my Wordpress site via the Wordpress iPad app so my daughter can work on it (she doesn’t have a pc).

    I logged in via ssh to my droplet via terminal to allow xml-rpc, and I am using apache2 on this server. I ran the commands listed above in order to do that, and am getting the error:
    We received a 403 error when trying to access your site’s XMLRPC endpoint. The app needs that in order to communicate with your site.

    My access log says:
    root@IHC-wordpress:~# tail -f /var/log/apache2/access.log
    172.58.228.59 - - [06/Oct/2020:08:34:50 -0400] “POST /xmlrpc.php HTTP/1.1” 403 4360 “-” “WordPress/15.8.0.2 CFNetwork/1197 Darwin/20.0.0”
    165.227.132.201 - - [06/Oct/2020:08:34:51 -0400] “POST /wp-cron.php?doingwpcron=1601987691.0967130661010742187500 HTTP/1.1” 200 4014 “https://gilbertsvillechiropractic.com/wp-cron.php?doing_wp_cron=1601987691.0967130661010742187500” “WordPress/5.5.1; https://gilbertsvillechiropractic.com
    172.58.228.59 - - [06/Oct/2020:08:34:51 -0400] “POST / HTTP/1.1” 200 24081 “-” “WordPress/15.8.0.2 CFNetwork/1197 Darwin/20.0.0”
    172.58.228.59 - - [06/Oct/2020:08:34:52 -0400] “GET / HTTP/1.1” 200 24081 “-” “WordPress/15.8.0.2 CFNetwork/1197 Darwin/20.0.0”
    172.58.228.59 - - [06/Oct/2020:08:34:53 -0400] “POST /xmlrpc.php HTTP/1.1” 403 4360 “-” “WordPress/15.8.0.2 CFNetwork/1197 Darwin/20.0.0”
    172.58.228.59 - - [06/Oct/2020:08:34:53 -0400] “GET /xmlrpc.php HTTP/1.1” 403 4360 “-” “WordPress/15.8.0.2 CFNetwork/1197 Darwin/20.0.0”
    172.58.228.59 - - [06/Oct/2020:08:34:54 -0400] “GET / HTTP/1.1” 200 24081 “-” “WordPress/15.8.0.2 CFNetwork/1197 Darwin/20.0.0”
    172.58.228.59 - - [06/Oct/2020:08:34:55 -0400] “GET / HTTP/1.1” 301 616 “-” “WordPress/15.8.0.2 CFNetwork/1197 Darwin/20.0.0”
    172.58.228.59 - - [06/Oct/2020:08:34:55 -0400] “GET / HTTP/1.1” 200 24081 “-” “WordPress/15.8.0.2 CFNetwork/1197 Darwin/20.0.0”
    172.58.228.59 - - [06/Oct/2020:08:34:56 -0400] “POST /xmlrpc.php HTTP/1.1” 403 4360 “-” “WordPress/15.8.0.2 CFNetwork/1197 Darwin/20.0.0”

I’m glad you were able to resolve the issue!

Additionally, thank you for posting your solution!

Submit an Answer