Install and configure Concrete5 on your LAMP server - Ubuntu or Debian 7

Difficulty: 1

Time: 30 minutes

Concrete5 is an open-source content management system (CMS) made in PHP. Concrete5 is easy to understand and learn. In this article you will learn, how to install and configure concrete5 on your LAMP server, whether you're using Debian 7 or Ubuntu.

Install LAMP

To use this article, you need to have a LAMP stack installed on your server:

We also recommend setting up an Apache virtual host for the domain name you want to use, which includes pointing your domain name to it:

Install the required dependencies

  1. Install the unzip and the PHP GD libraries.
    sudo apt-get install unzip php5-gd
  2. Restart the Apache services to make the changes effective.
    sudo service apache2 restart

Download and configure conrete5

  1. Navigate to your virtual host directory for the domain name:
    cd your domain's Apache virtual host directory

    Note: If you didn't set up a virtual host directory, you can use cd /var/www/html (Ubuntu) or cd /var/www (Debian 7)

  2. In a browser, visit the official Concrete5 downloads page.
  3. Copy the download link for the newest version of Concrete5.
  4. Use this link with wget to download the latest version as a zip file:
    sudo wget --trust-server-names URL from for version you want to download
  5. Extract the downloaded source.
    sudo unzip downloaded file name
  6. The folder will be named concrete5.x.x.x with each number representing the version number. Use the mv command to simplify this directory.
    sudo mv concrete5.x.x.x concrete5
  7. Navigate to the concrete5 directory.
    cd concrete5
  8. Enable the rewrite module.
    sudo a2enmod rewrite
  9. Open your php.ini file in a text editor.
    sudo vim /etc/php5/apache2/php.ini
  10. Make sure the following line is not commented out (that is: remove the # from in front of it):
  11. Save and close the file:
  12. Restart the Apache server:
    sudo service apache2 restart

Create a MySQL database

  1. Log into your MySQL admin account:
    sudo mysql -u root -p
  2. At the prompt, enter the MySQL root password you chose:

    Note: If you do not remember your root MySQL password, you can reset your root MySQL password.

  3. Create a new MySQL database:
    CREATE DATABASE your conrete5 database;
  4. Create the database administrator account:
    CREATE USER your concrete5 username@localhost IDENTIFIED BY 'your concrete5 password';
  5. Give, or grant, your user permissions to the database:
    GRANT ALL PRIVILEGES ON your conrete5 database.* TO your concrete5 username@localhost;
  6. Confirm that the changes to this user are properly applied:
    SHOW GRANTS FOR 'your username'@'localhost';
    If the changes worked, you should see an output that looks something like this:
    GRANT USAGE ON *.* TO 'your username'@'localhost' IDENTIFIED BY PASSWORD '*977FDAC11B3F74324912DA4F9D489A3E6D59B281'
    GRANT ALL PRIVILEGES ON `your wordpress database`.* TO 'your username'@'localhost'
    If the changes did not apply properly, refresh the MySQL cache and try again:
  7. Once you confirm that the changes worked, exit MySQL:

Grant Permissions

  • Change ownership of the document root to make it writable by Concrete5.
    sudo chown -R www-data:www-data /var/www/html/concrete5
  • Note: Remember that if you are using Debian 7, you will use /var/www/ in your path instead of /var/www/html.

Install Concrete5

  1. In your web browser, go to:
    http://your domain name or IP address/concrete5
  2. Make sure that all server requirements are met, and click Continue to Installation.
  3. Enter the required information for Site, Database, and Administrator. Use the MySQL credentials that you created earlier for the Database Information section. Unless you are using a remote database server, your Server field should just be localhost.
  4. Select the option to install sample content, or create an empty site.
  5. Once all fields have been filled, click Install concrete5.
    Site database information page
  6. After the installation process is complete, click Continue to your site.
    Continue to your site page You will be redirected to the Welcome screen of concrete5.
    Welcome to concrete5 page
  7. Select any of the guides to get started.

That's it! You successfully installed Concrete5 and are ready to start building.

Was This Article Helpful?
Thanks for your feedback. To speak with a customer service representative, please use the support phone number or chat option above.
Glad we helped! Anything more we can do for you?
Sorry about that. Tell us what was confusing or why the solution didn’t solve your problem.