# API Connection on Hostinger with Cyber Panel

**URL:** <https://forum.mautic.org/t/api-connection-on-hostinger-with-cyber-panel/30150>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [December 8, 2023, 7:33am UTC](https://forum.mautic.org/t/api-connection-on-hostinger-with-cyber-panel/30150 "2023-12-08T07:33:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![malik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malik/32/433_2.png) [@malik](https://forum.mautic.org/u/malik)\
**Post date:** [December 8, 2023, 7:33am UTC](https://forum.mautic.org/t/api-connection-on-hostinger-with-cyber-panel/30150/1 "2023-12-08T07:33:12Z")

</div>

**Your software**  
_Mautic version is_ : v4.4.10, WordPress, OptimizePress  
_My PHP version is_ : 8.0  
_My MySQL/MariaDB version is_ : 10.3.39-MariaDB

**ISSUE**

- I am using VPS with CyberPanel
- Using WordPress + OptimizePress on my main domain
- Using Mautic on sub-domain
- Trying to connect OptimizePress & Mautic using their API connector but not working

_Steps I have tried to fix the problem_ :

- One of the suggestions was to open ports #80 & #443 to allow connection between main domain & sub-domain
- I added these ports in my CyberPanel as exceptions (to keep it open) but the API connection between WordPress (OptimizePress) & Mautic is not working
- Is there any specific port that I have to open to make the API connection possible? How do I find it?

Any idea? Please suggest

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [December 8, 2023, 10:36am UTC](https://forum.mautic.org/t/api-connection-on-hostinger-with-cyber-panel/30150/2 "2023-12-08T10:36:33Z")

</div>

A few things:

1. Check the API is turned on **and you have cleared the cache after switching it on**
2. Check you’re not getting blocked by a Wordpress security plugin like Wordfence - we see that a lot.
3. Make sure you’re not getting interference from mod\_security or similar such server-side settings

Then, please check your Mautic logs and see if there’s any errors in the logs - likewise the logs at the WordPress end, and report those back.

---

<div class="post-metadata">

**Author:** ![malik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malik/32/433_2.png) [@malik](https://forum.mautic.org/u/malik)\
**Post date:** [December 9, 2023, 12:46pm UTC](https://forum.mautic.org/t/api-connection-on-hostinger-with-cyber-panel/30150/3 "2023-12-09T12:46:00Z")

</div>

> [@silavapi](#):
>
> mod\_security

Thanks for the suggestions  
#1) API is turned on & cache is cleared  
#2) Security Plugin is disabled  
#3) mod\_security is not installed on my VPS yet

The input I got from OptimizePress is that it

> This makes me think there could be something on the WordPress or hosting side of things that doesn’t like that connection.

Any idea which port is generally used to sync data in & out or Mautic via API?
