I changed default html file on lamp and getting 'Internal server error'.


I made a droplet with lamp application. html file in /www folder, which is default one has been opening very well. but right after i change this file to index.php that i want to use, internal server error is occuring on browser when i access to my page. is it because of the name of file or am I changing the file at wrong directory? Please help me if anybody know this problem. Thanks :)

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

It might be worth posting the exact error message and details it displays.

Try this to see if it’s a permissions issue:

$ sudo chmod -R 755 /var/www/index.php