If I write a php file on /var/www/html, the php file works well. For example a simple script in which I print phpinfo().
If I write a php script on my computer, then drag it to my server using Filezilla, it uploads well - to the extent that there are no error messages, and I am able to move the php script to /var/www/html.
However, when I try to access the file through my server's ip address (i.e. [server ip]/file.php - the page displays this error:
The 45.55.136.85 page isn’t working
45.55.136.85 is currently unable to handle this request. HTTP ERROR 500
For more information:
I write the php file in gedit encoded using Current Locale UTF-8 Line Ending Unix/Linux. And I have tried the three available transfer settings with no success Auto/Binary/ASCII on Filezilla
I upload files using FTP over TLS using Filezilla.
I have installed a LAMP stack.

ls -l- Franz Gleichmann