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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.