I am not able to launch my site. (I cloned the code using git into the droplet!) Please help me out.

I followed this link perfectly :

I also installed apache, mysql and git properly.

and they do show up as I enter my IP address.

But when I enter : IPaddress/projectname (it gives a 404 - Not Found error stating “requested URL was not found on this server”).

Please help.

Show comments

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.

You provide very little information to go on. A 404 error indicates that the requested file was not found so my first guess would be that you cloned your git repository to the wrong location. The default apache web root is /var/www/html/ so if you wanted your content to be available at it would need to be placed in /var/www/html/mycontent on your droplet.

Another possible issue is if your permissions are not set properly. If you ran your git clone as the user root then your files would be owned by root and may not be readable by the web server (apache runs as the user “www-data”). You can use the following command to set the ownership of everything in your web root recursively.

chown -Rf www-data:www-data /var/www/html