When i create or edit some file like `index.php` with below simple content (on Windows) :
Now, I want to run it on Ubuntu by lamp-server. Copied that `index.php` file on `~/public_html/`.Code:<?php echo 'Hello world'; ?>
Finally trying below in Browser :
I get following error:Code:localhost/index.php
But if i create that `index.php` on ubuntu with same content it works fine.Server error
The website encountered an error while retrieving http://localhost/home.php. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
- Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
It's some weird isn't it ?