Topics

Installing Construct

Requirements

To install Construct, you need a basic server with PHP and MySQL. 

Detailed requirements:

  • Apache server 
  • Apache "mod_rewrite" module
  • Apache "mod_headers" module
  • PHP 5.5.0 or newer
  • PHP GD library
  • PHP mbstring library
  • PHP curl library
  • PHP PDO library
  • MySQL 5 and higher 
  • 30+ MB free disk space
  • ini_set function enabled

Recommended

  • PHP PECL intl library (better number, currency and date formatting)

Installation steps

  • Extract the downloaded files to the folder on your server where you want Construct to be installed. Be sure you don't miss .htaccess. Linux hides all the files that starts with dot by default.
  • Then type appropriate URL in your browser. You will see the installation wizard. Follow the instructions until installation completes.

Database

Construct will try to create a database for you if your provided database user has permission to do so.  Most shared host providers don't allow that. In that case please create the database manually on your host management panel. 

It is very important to set utf8_general_ci collation on the database. Otherwise you won't be able to use non Latin characters.

This is how you can do this using phpMyAdmin:

  • log into phpMyAdmin
  • select your database from the list on the left
  • click on "Operations" from the top set of tabs
  • in the Collation box, choose utf8_general_ci collation from the dropdown menu
  • click go.

Installation via Composer

  • Add the following code to the composer.json file

{
  "require": {
    "impresspages/impresspages": "5.0.*",
    "impresspages/plugin-google-analytics": "*"
  },
  "scripts": {
    "post-install-cmd": ["php vendor/impresspages/impresspages/bin/setup.php public"],
    "post-update-cmd": ["php vendor/impresspages/impresspages/bin/setup.php public"]
  },
  "autoload": {
    "psr-4": {"Plugin\\": "public/Plugin/"}
  }
}

  • Enter the composer install in the command line
  • point your browser to the public directory
  • follow the setup wizard

Known problems

  • If installation hangs on database creation step using 127.0.0.1 as database host, try to use localhost instead of ip address. This problem might be caused by your MySQL server configuration. The opposite is possible on EasyPHP, where installation my hang when using localhost.
comments powered by Disqus