Implementing an Apple Push Notification Server

May 16, 2014 3.8k views
Hello everyone, I am trying to implement an Apple Push Notification Server following this tutorial: 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 I receive the fllowing error: "Forbidden You don't have permission to access / on this server. Apache/2.4.7 (Ubuntu) Server at Port 44447" How can I make my files accessible? Thanks again.
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.
Have another answer? Share your knowledge.