Greetings to experts and gurus, I am looking for some help with apache php configuration problem.
Iβve been running several sites from the apache2 installation on the ubuntu server for several years now, without any problems, using the NameVirtualHost * line in the file etc / apache2 / conf.d / virtual.conf. I recently upgraded the server version to the latest version of lts, ββand now I can not run php files.
I run all my sites for the location "/ home / www / [site-name] / htdocs" and I have set up and enable all my sites in / etc / apache 2 / sites-available. I also disabled the default site.
For each site file, I specified the following:
# Indexes + Directory Root. # DirectoryIndex index.html index.htm index.php DocumentRoot /home/www/[site-name]/htdocs/ # CGI Directory ScriptAlias /cgi-bin/ /home/www/[site-name]/cgi-bin/ <Location /cgi-bin> Options +ExecCGI </Location> # Logfiles ErrorLog /home/www/[site-name]/logs/error.log CustomLog /home/www/[site-name]/logs/access.log combined
I restart apache and enter the url for the php test page on my server, and I am greeted with "Internal Server Error". When I check the error log, I get:
Script "/home/www/[site-name.BIZ/htdocs/test.php" permission to "/home/www/[site-nameapter/htdocs/test.php" not in the configured docroot.
source share