Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS How to Make a Website Debugging HTML and CSS Problems Use Developer Tools

I am using Digital Ocean for web hosting and need help!

I am using Digital Ocean for web hosting. Over the last 24 hours, I've figured out what needs to be done to set up a basic droplet. Then I realized I need to set up a LAMP stack since Digital Ocean is self-service. So I did that where I set up MySQL database, Apache server and PHP using their tutorial (https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04).

However, now when I visit my domain name "preethikasireddy.io", it doesn't work and goes to the default Apache info page. I am not sure how to to point Apache to my local website files that we create in this track (index.html, about.html, contact.html, etc.)

I would love help in knowing how to do this.

Thank you

1 Answer

Jeff Jacobson-Swartfager
Jeff Jacobson-Swartfager
15,419 Points

Double check your work on step 3. Have you set up dir.conf according to the directions?

You'll also need to make sure you restart apache.

sudo service apache2 restart

Next, double check step 4. To test your PHP install, you'll need to be sure to visit http://your_server_IP_address/info.php after creating info.php in the appropriate location.

That same location (/var/www/html/) is where you can stick your html files.

If you're still stuck, you may need to make updates to your hosts file. Take a look at How to Set Up Apache Virtual Hosts on Ubuntu 14.04 LTS

Greg Kaleka
Greg Kaleka
39,021 Points

For a guy with most of his points in JS, CSS, and Design, you sure seem to know your server management!

Jeff Jacobson-Swartfager
Jeff Jacobson-Swartfager
15,419 Points

Thanks, Greg! Hopefully it helps Preethi get up and running!