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.
I have a PHP script running on my LAMP server that requires certain files
Share
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).http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM