Where to store php programs on Ubuntu 18.04

A

Anonymous

Guest
Hi,
I am trying to run php on ubuntu 18.04.

Code:
 <!DOCTYPE html>
<html>
<body>

<?php
echo "My first PHP script!";
?>

</body>
</html>




I have installed nginx web server.
Code:
$ whereis nginx
nginx: /usr/sbin/nginx /usr/lib/nginx /etc/nginx /usr/share/nginx /usr/share/man/man8/nginx.8.gz
Kindly guide me the path where should I store the php programs.

Zulfi.
 
whereis shows the installation directories.

You should have been given a location during installation or through usage instructions.

is there a page that displays when entering http://localhost/ in your browser url, this might give you the information that you want?

You could also do a search for html using the 'files' browser from 'Other Locations' - Computer
 
Back
Top