Answer the question
In order to leave comments, you need to log in
Show default apache file in browser instead of index.php?
Good evening! On the virtual machine, I created a local site test-lamp.local Only after launching it in the browser of the virtual machine, instead of the contents of the index.php file, I get the default apache page. Please advise why this is happening? Why doesn't the index.php page work???
Answer the question
In order to leave comments, you need to log in
Apparently, either your virtual host is not enabled, or the DocumentRoot in it points to the wrong folder (most likely, to the default one where the stub page is located)
Check the contents of the file /etc/apache2/mods-enabled/dir.conf
It should be like this, in the first place is index.php and not index.html.
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question