Title: Self Hosted PHP API Will Not Connect
Last modified: March 14, 2024

---

# Self Hosted PHP API Will Not Connect

 *  Resolved [escond1do](https://wordpress.org/support/users/escond1do/)
 * (@escond1do)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/self-hosted-php-api-will-not-connect/)
 * If I select HTTP API and enter my url ([https://matomo.domainname.com](https://matomo.domainname.com))
   it connects fine. I’m using the “use proxy script” option because I don’t want
   the login url listed in the code. This plugin seems to be the only way I have
   found to do it.
 * However, I cannot get the PHP API to connect and I don’t know why. The server
   path is /home/matomo/htdocs/matomo.domainname.com/
 * All the folders/files are in that directory. This plugin is in the usual place
   under my main domain.
 * I have tried every server path variation I can think of to no avail. Even created
   a separate auth token.
 * I can’t any documentation about using that feature, so I’m not sure what file
   it’s looking for. Is there something I’m missing?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/self-hosted-php-api-will-not-connect/#post-17504204)
 * Hi [@escond1do](https://wordpress.org/support/users/escond1do/), I think you 
   are using the Connect Matomo plugin ([https://wordpress.org/plugins/wp-piwik/](https://wordpress.org/plugins/wp-piwik/))?
   That’s a different plugin that I’m not entirely familiar with. Matomo for WordPress
   is a Matomo embedded in your WordPress install, as opposed to a plugin that just
   sends tracking requests to a self-hosted Matomo.
 *  Thread Starter [escond1do](https://wordpress.org/support/users/escond1do/)
 * (@escond1do)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/self-hosted-php-api-will-not-connect/#post-17504316)
 * Whoops, sorry about that.
 *  Plugin Support [emermatomo](https://wordpress.org/support/users/emermatomo/)
 * (@emermatomo)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/self-hosted-php-api-will-not-connect/#post-17509881)
 * [@escond1do](https://wordpress.org/support/users/escond1do/) We just want to 
   ask if there is anything we can help you with before we close this topic?
 *  Thread Starter [escond1do](https://wordpress.org/support/users/escond1do/)
 * (@escond1do)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/self-hosted-php-api-will-not-connect/#post-17516928)
 * I’m good, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Self Hosted PHP API Will Not Connect’ is closed to new replies.

 * ![](https://ps.w.org/matomo/assets/icon-256x256.png?rev=3531741)
 * [Matomo Analytics - Powerful, Privacy-First Insights for WordPress](https://wordpress.org/plugins/matomo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/matomo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/matomo/)
 * [Active Topics](https://wordpress.org/support/plugin/matomo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/matomo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/matomo/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [escond1do](https://wordpress.org/support/users/escond1do/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/self-hosted-php-api-will-not-connect/#post-17516928)
 * Status: resolved