can't install Concrete5

I just created a droplet (collab-cards), requested the Ubuntu LAMP stack, am trying to install Concrete5. The online help says “So let’s navigate to the Apache web server root directory first: cd /var/www”

Except there is no ‘www’ inside /var.

Someone tells me this means the LAMP stack didn’t get set up. But I can’t see what is or isn’t there, how to add a LAMP stack if it’s not there, can’t tell what I didn’t wrong along the way, and can’t see how to proceed.

No tutorial I can find online tells me what to do here, it’s been 2 hours I’ve been hunting.

Some tips would be really appreciated at this point, thank you – Alistair

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey @totheralistair -

At first I was worried that you were having issues because the tutorial was outdated, but I just tried it myself and it worked, let me walk you through my process:

  1. Spin up a 1GB LAMP One-Click (a DO Droplet with LAMP pre-installed) - here is a link to the droplet page with everything pre-selected, I also recommend adding an SSH Key so that you don’t have to rely on passwords alone to login.
  2. Login to the new droplet - when you login you will see some vital information, including the mysql root password, SAVE THIS FOR LATER.
  3. Confirm that you have LAMP installed - Now you should be taken to the proper directory with:
cd /var/www 
  1. Copy the latest concrete5 zip to your server
 wget --trust-server-names -O 
  1. Download unzip utility and then unzip the file
 apt-get install unzip 

and then

  1. Give it a simpler folder name, then navigate into the folder
mv concrete5.7.5.9 concrete5
cd concrete5
  1. Next you will need to enable mod_rewrite - An Apache module that helps with URL rewriting rules
a2enmod rewrite
  1. Next you will need to allow concrete5 to set URL rewriting rules by changing the apache config - on this oneclick the default file is called 000-default.conf Open the file by typing…
nano /etc/apache2/sites-available/000-default.conf

Important: Change the line that says DocumentRoot /var/www/html to DocumentRoot /var/www/concrete5. Then, paste this entire block of code before the </virtualserver> closing tag.

<Directory /var/www/concrete5>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
  1. Now close and save the file with a ctrl-x and Y, and restart apache with:
sudo service apache2 restart
  1. Login to mysql to create the database
mysql -u root -p

you will be prompted for a password, use the one that was printed out when you first logged in to the droplet. Then create the db with:

create database concrete5;
  1. Give concrete5 write permissions to the folders it needs to control
chown -R root:www-data application/files/
chown -R root:www-data application/config/
chown -R root:www-data packages/
chmod -R 775 application/files/
chmod -R 775 application/config/
chmod -R 775 packages/

Now, go to your droplet’s IP Address in a browser, (or if you setup DNS use the domain name) it should be running and walking you through the CMS startup process!!!