Page 1 of 1

[SOLVED] LAMP, subdirectories

Posted: Mon Nov 14, 2016 11:49 am
by Fuzzy
I occasionally (and very poorly) create some php sites to use for my own purposes. After making one of my computers a LAMP, I remember being worried about security at completion of one of my projects, and locked a few things down. Unfortunately, I didn't write down the changes I made, and now I can't figure out how to get things working again. (Don't worry - I don't think it is as bad as it sounds.)

Here's the gist of my problem: /var/www/index.html or whatever.php work fine. However, subdirectories within /var/www/ do not response to http request - including the Apache2 test page at /var/www/html/index.html - even when file permissions look correct.

Any guesses?

Re: LAMP, subdirectories

Posted: Mon Nov 14, 2016 1:12 pm
by deepakdeshp
This should allow access to subdirectories.
http://askubuntu.com/questions/325498/a ... -directory
/etc/apach2 will have the apache config file where you have to make the changes mentioned above.

Re: LAMP, subdirectories

Posted: Tue Nov 15, 2016 1:12 pm
by Fuzzy
Argh! Okay, the problem ended up being 100% user ignorance.

I evidently hadn't disabled anything. I simply forgot that the default configuration of the installation for Apache2 is the html folder, so that I didn't need to include "/html/<filename>" in the path, or /html/foldername/ etc. Yeah, just leaving "/html/" off and entering the remainder of the path works just fine.

Sorry about that. Thanks for the help - your reply actually helped me figure out my issue.

Fuzzy