How do I configure the web server to run scripts?

  • Posted December 3, 2014

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


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.

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

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