Connecting to http:IP/Owncloud downloads an index.php file

OS:Ubuntu 16.04

Connecting to http:IP/Owncloud downloads an index.php file

The nginx server is online but when adding /owncloud at end of ip it just downloads php file and nothing shows on browser

Is owncloud a folder inside the folder which your HTTP server exposes?

Do you actually have PHP installed and integrated with nginx?

Which MIME type do you have the .php extension mapped to in your nginx configuration? Try 'curl --head http:IP/owncloud'.