Where to securely place files needed by PHP in Linux filesystem (according to FHS)

I have a PHP manuscript working on my LAMP server that calls for particular files in order to generate HTML web content. The manuscript is openly obtainable (i.e. http://example.com/script.php) yet the files called for by the manuscript has to safeguarded. I can possibly position the files in any kind of directory site apart from /var/www and also they would certainly be reasonably secure, yet I'm attempting to find out the Linux filesystem and also I would certainly such as to make use of one of the most ideal area (according to FHS). Any kind of aid would certainly be wonderful.

2022-06-07 14:32:33
Source Share
Answers: 1

In /var/www, create a folder public_html and also reconfigure that as your origin directory site for Apache. Documents in /var/www can be consisted of, yet not accessed straight.

2022-06-07 14:55:43