Step By Step Install Instructions For Concrete5

Posted by admin on February 17, 2012

I've put together a step by step guide on how I quickly install Concrete5 using a simple PHP script and cPanel.

Here is my 6 step process

  1. In cPanel - create you MySQL Database, User and add the user to the database with proper permissions
    1. Use cPanel for this... it's very easy to do, you setup all your own passwords.
  2. Get the URL of the C5 Install from Concrete5.org
    1. You will use this in the next step.  This is important so that you can go ahead and get a specific version of the software.
  3. Create a download script (and make sure it's using the script from step 2) and run it
    1. You'll find the code I use below.  Note - my web host ran this with no problem.  It took about 5 seconds to run, and left me with a blank screen.  If you get an error message, you'll likely have to manually download the install zip, then upload it to your server.  This usually only saves a few minutes, but it's nice to not have to download then upload the same file when you can simply do it in one step.  Also - save this file to your hard drive, and then you can upload it whenever you want to deploy a new install.
  4. Unzip the c5 install archive
    1. Just go ahead and use the tool built into the file manager.
  5. Move the files into root
    1. I like my C5 install in the root, seems cleaner.
  6. Visit the website and run through the install screens
    1. You're done.  You created the username, database and passwords, so it should be pretty easy to fill out and be up and running!
<?php
$url = 'http://www.concrete5.org/download_file/-/view/33453/';
$outputfile = "c5.zip";
$cmd = "wget -q \"$url\" -O $outputfile";
exec($cmd);
?>

I updated the code to download and unzip... there can be more done here, but it may vary from server to server on file locations etc.

<?php
$url = 'http://www.concrete5.org/download_file/-/view/51635/8497/';
$outputfile = "c5.zip";
$cmd = "wget -q \"$url\" -O $outputfile";
exec($cmd);
$cmd = "unzip c5.zip";
exec($cmd);
?>

News