Report this

What is the reason for this report?

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

Posted on November 5, 2017
OLLE

By OLLE

Hello,

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 :)



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.