How do I configure the web server to run scripts?

December 3, 2014 585 views

What is the default configuration for the digital ocean ubuntu LAMP?

All websites I create under /var/www can contain scripts that execute when called from the browser.

Where is this set up and how can I duplicate it? I want to do some testing on a vagrant box (scotch box) before making any changes on Digital Ocean.

Thank you,

2 Answers

The default LAMP image does not contain any custom configuration. To set up a base Ubuntu server with this setup you should just need to run:

apt-get update;
apt-get install apache2 mysql-server libapache2-mod-auth-mysql php5-mysql php5 libapache2-mod-php5 php5-mcrypt php5-gd

I guess I was just spacing out. It seems to work fine now. Thanks for the reply.

Have another answer? Share your knowledge.