Php not working with apache


I installed php and apache. My site is working fine on GoDaddy but when i copied my public_html folder to /var/www/site1. It is not working. I have also changed the domain name to IP and accessing it via IP but it is not picking up. I can see the centos apache testing page. What could be the problem?

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.

Hello, Good to have you at digital ocean. Because all DO droplets are unmanaged, you need to setup the whole system yourself (if you didn’t use a app setup). So after you installed all the prerequisites (apache, php5-(cli,mysql) etc.) you need to configure them. To get a website working, your server needs to handle the domain you would like to use. Apache does this, using VHOST configurations. I recently answered another topic about this, you can find more information there: LINK If you got any more problems, I’ll be happy to answer your post here. If you got it working, please give a report here and a like :)