Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I prevent other users on an Apache virtual host from reading my scripts via php?

0
Posted

How do I prevent other users on an Apache virtual host from reading my scripts via php?

0

Identify the group that apache runs as, then chown the directories 0750 and files 0640 after chgrp’ing them all to the same apache group, and you’re set. I have my apache run as user apache and group webdev and permissions at 0570/0460 respectively, which allows apache to read and everyone in webdev to write. however, no-one else has permissions.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123