How to set up Apple Push Notification on VPS?

November 8, 2013 3.6k 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
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.
Have another answer? Share your knowledge.