How to set up Apple Push Notification on VPS?

Posted November 8, 2013 5.9k views
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

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.

Submit an Answer
1 answer
Check out How to Setup a Firewall with UFW on an Ubuntu and Debian Cloud Server; although if you did not previously set up a firewall, then it would not be a firewall blocking those ports.

Perhaps you have permissions issues. Check the owner:group attributes of your WordPress installation. What's the output of:
ls -la /path/to/WordPress/installation/

If you see root:root sprinkled in there, execute:
sudo chown -R www-data:www-data /path/to/WordPress/installation/
by Shaun Lewis
Learn how to setup a firewall with UFW on an Ubuntu / Debian cloud server.