I just recently installed php with apache, and i wonder about permissions. Is it alright to
chmod -R 777 /usr/local/apache/htdocs
doing that would give you zero security, I'd leave your directories at 775, scripts at 755 and files at 664