Where to store php programs on Ubuntu 18.04

Forum for you who has PHP installation issues

Moderators: egami, macek, gesf

Post Reply
zak100
New php-forum User
New php-forum User
Posts: 3
Joined: Fri May 24, 2019 1:36 pm

Fri May 24, 2019 1:45 pm

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.

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 834
Joined: Mon Feb 22, 2016 5:52 pm

Fri May 24, 2019 5:07 pm

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