Report this

What is the reason for this report?

Implementing an Apple Push Notification Server

Posted on May 16, 2014

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.



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!

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.

For the files that shouldn’t be accessible from the web, /home/user/PushChat should be fine. <br> <br>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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.