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.


Hi! Where did you clone your repo?

Submit an 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.

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