By Jackcrane
I just tried adding my files from GitHub (git clone https://github.com/myrepository .) 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: http://167.172.155.165/phpinfo.php
Any tips? 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!
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/directorysudo find /path/to/your/directory -type f -exec chmod 664 {} \; sudo find /path/to/your/directory -type d -exec chmod 775 {} \; Best, Dennis
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.