First time adding files to a new 1-click LAMP app

I just tried adding my files from GitHub (git clone .) and I am getting a 500 internal server error from every file added by git. The files are extremely simple, just a little HTML, CSS, and JS. Theres no PHP or SQL or anything yet.

PHP info:

Any tips? 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.

Hey @Jackcrane,

I can notice your webserver can’t find the directory you’ve set for root. Could you post your webserver configuration? Also, could you let me know what the permissions on these files are with ls -la /path/to/your/files.

I would suggest to do the following and try accessing your files again:

  • sudo chown -R my-user:www-data /path/to/your/directory
  • sudo find /path/to/your/directory -type f -exec chmod 664 {} \;
  • sudo find /path/to/your/directory -type d -exec chmod 775 {} \;

Best, Dennis