Report this

What is the reason for this report?

How do I configure the web server to run scripts?

Posted on 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



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.