Where to store php programs on Ubuntu 18.04

Forum for you who has PHP installation issues

Moderators: egami, macek, gesf

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

Fri May 24, 2019 1:45 pm

I am trying to run php on ubuntu 18.04.

Code: Select all

 <!DOCTYPE html>

echo "My first PHP script!";


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.

User avatar
php-forum GURU
php-forum GURU
Posts: 1222
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