Question

How do I configure the web server to run scripts?

Posted December 3, 2014 1.8k 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,
–StevenKW

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.

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.

Submit an Answer