Prevent others from reading php source?
I have server-computer where are more than just one user. I'd like to use it for PHP and Postgresql development. Now I have following problem: I have php-files in my public_html directory and I'd like to prevent other users from seeing php-sources, because they can see database passwords from those files. If I deny access (chmod to 700) to public_html directory, then nobody will be able to read my pages from internet. How can I make it only deny computer-users to see php-sources and prevent them from entering my public_html-directory? I have set ftp chroot to home directory, but they can still see those files by using ssh.
|