Developer Guide: Installing Mothership
We have created a command-line installer to simplify the process of installing Mothership. Please see the System Requirements before proceeding.
Using the installer
- Create an empty the database in MySQL
- Download the installer
- Run the
php [path to]/mothership.pharin your terminal and follow the prompts.
By default, the installer will install to the current directory. To install into a separate directory, give it as a parameter, e.g.
php [path to]/mothership.phar my-installation to install to a directory called my-installation
To install Mothership manually, you will need to have Composer installed.
composer create-project mothership-ec/mothership * <path to installation>
- Add your database details to config/db.yml
bin/cog migrate:runfrom the installation directory in the terminal
bin/cog asset:dump and bin/cog asset:generatefrom the installation directory in the terminal
chmod -R 777 tmp public logs datafrom the installation directory in the terminal
bin/cog task:run user:create_adminin your terminal to create the first admin user
Mothership will now be installed in the location you specified, and will use the default 'Skeleton' theme. See our guide for setting up Apache environments for next steps.