1

I have a PHP script running on my LAMP server that requires certain files in order to produce HTML content. The script is publicly accessible (i.e. http://example.com/script.php) but the files required by the script must secured. I could probably place the files in any directory other than /var/www and they would be relatively safe, but I'm trying to learn the Linux filesystem and I'd like to use the most appropriate place (according to FHS). Any help would be great.

David Jones
  • 10,117
  • 28
  • 91
  • 139
  • 2
    I don't see programming question here, I think you will find more answers here: http://unix.stackexchange.com/ –  Jun 11 '12 at 20:19
  • Thanks Daniel. I guess this is more standards/security related. I'll wait a bit and if things don't pan out here, then I'll give unix.stackexchange.com a try. – David Jones Jun 11 '12 at 20:31

1 Answers1

1

After a bit of research, I think I've answered my question. The most appropriate location seems to be /srv (with the addition of sub-directories which properly categorize the data).

/srv contains site-specific data which is served by this system.

http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM

David Jones
  • 10,117
  • 28
  • 91
  • 139