Implementing an Apple Push Notification Server

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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.