I need to test my php script for APNS on the VPS. I already set up apache and php server, i have my php script in place. But when i try to send a push notification from wordpress plugin, it say “connection failed”. How can i check if the 2195 & 2196 ports are open in my VPS? And if are closed, how can i open them? many thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Check out <a href=“https://www.digitalocean.com/community/articles/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server”>How to Setup a Firewall with UFW on an Ubuntu and Debian Cloud Server</a>; although if you did not previously set up a firewall, then it would not be a firewall blocking those ports. <br> <br>Perhaps you have permissions issues. Check the <code>owner:group</code> attributes of your WordPress installation. What’s the output of: <br><pre>ls -la /path/to/WordPress/installation/</pre> <br>If you see <code>root:root</code> sprinkled in there, execute: <br><pre>sudo chown -R www-data:www-data /path/to/WordPress/installation/</pre>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.