Question

Implementing an Apple Push Notification Server

Posted May 16, 2014 4.1k views
Hello everyone, I am trying to implement an Apple Push Notification Server following this tutorial: http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2 However the tutorial is implemented in a local machine using MAMP, I want to implement it under LAMP. In the tutorial it says "You should put these files in a directory on the server that is not accessible from the web, in other words outside of your DocumentRoot" where should I put this files? someplace like /etc/PushChat ? or /home/user/PushChat ? For some reason when I go to http://107.170.112.238:44447 I receive the fllowing error: "Forbidden You don't have permission to access / on this server. Apache/2.4.7 (Ubuntu) Server at 107.170.112.238 Port 44447" How can I make my files accessible? Thanks again.

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.

×
1 answer
For the files that shouldn't be accessible from the web, /home/user/PushChat should be fine.

As for the issue accessing the the site, it is most likely a permissions issue. The www-data user runs the Apache and must have access to the files. What did you point DocumentRoot at? You should probably use "/var/www/html/" as Apache already has the right permissions there.
Submit an Answer