LAMP stack wierdness
Greetings. I have a problem I have never encountered with the LAMP stack. I have LAMP installed in Linuxmint 17 on my personal pc. The stack is configured correctly and serving html and php files on localhost (www/site1/, www/site2/, www/site3/, etc.) with the exception of one site (www/site4/). I developed the site using index.html (i.e. www/site4/index.html) and was having no problem until I decided to convert to index.php (using the contents of the index.html file broken down as includes in the index.php file). On reloading the site (www/site4/), apache2 serves the "download" option rather than the index.php. Strange thing is that the php module is loaded, serves the php test page, works on all of the other sites, permissions are correct, DirectoryIndex is present in both the apache2 config file and .htaccess, and works on localhost/www/site4 if the url is localhost/site4/index.php, but not unless index.php is specified. It's probably something simple and obvious, but I have checked and re-checked everything I know to check, and my searching has yielded nothing. I'll be grateful if someone could suggest or point me in the right direction of understanding and correcting the problem. Thanks.
|