Where to store php programs on Ubuntu 18.04

Forum for you who has PHP installation issues

Moderators: gesf, Michalio

Post Reply
zak100

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

Code: Select all

 <!DOCTYPE html>
<html>
<body>

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

</body>
</html> 







I have installed nginx web server.

Code: Select all

$ 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.
hyper

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
Post Reply