PHP file error on Lubuntu

Asked by budi machribie

Hi

I've install LAMP on Lubuntu 16.04

Apache is ok

When I tried to load following PHP file ..test.php located at /var/www/

<? php phpinfo ();|

by typing localhost/test.php in the browser I got following message

The requested url /test.php was not found on this server
Apache /2.4.18 (Ubuntu) Server at localhost Port 80

What went wrong

regards

Budi Machribie

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
budi machribie
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Did you restart the apache service after changing the configuration?

Revision history for this message
budi machribie (budimr-yahoo) said :
#2

@Actionparsnip

Yes I did restart the apache service but still same error message

Revision history for this message
budi machribie (budimr-yahoo) said :
#3

Andrew

After I installed the test.php file in /var/www/html it works

regards
Budi M