Connect PHP cripts remotely : I'm trying to use some PHP scripts but when i try o use them it gives me an error ("this page isn't working"). I can see the PHP files in the navigator this way http://public-ip/folder/  but then when i tape http://public-ip/folder/script.php  it appears the error. If it helps the same error appears if i access it with local ip (192.168.1.24).

It is an Ubuntu Server, XAMPP installed with PHP 7.0, Apache2, phpMyAdmin, MySQL (i have permission),...

Thanks a lot