Getting started - kulbakin/anahita GitHub Wiki
Before you start
Make sure that your server meets the system requirements:
- Apache 2.0+ (with mod_mysql, mod_xml, mod_zlib) or nginx
- MySql 5.0+
- php 5.3.3+ with mbstring, apc (not required, but highly recommended)
- If you have Zend Optimizer on your server disable it!
- If you have the suhosin patch installed on your server you might get an error. Here is how you can fix it.
- Composer package management. You can download it following the instructions on http://getcomposer.org/ or just run the following command:
curl -s http://getcomposer.org/installer | php
Installing Anahita
Use the following Composer command to create an Anahita project called myproject. This command automatically downloads all the required files from the Anahita GitHub repository:
composer create-project anahita/project myproject
Please note: system asks you "Do you want to remove the existing VCS (.git, .svn..) history?" so just answer Y and press enter.
Now go to the myproject directory:
cd myproject
If you type php anahita you get a list of all commands available to manage your Anahita installation. In order to initialize your Anahita installation run the following command and provide your database information when it is asked from you:
php anahita site:init
After the command is executed you can go to the http://localhost/myproject/www folder to access your Anahita installation. The first account that is created on this installation will be the Super Administrator account. Go to the http://localhost/myproject/www/people/signup and create an account.
Congratulations! You have just installed your Anahita installation successfully.
Hint: you need to custom configure your server to recognize the http://localhost/myproject/www as the home directory of your website.
Hint: Since you are the Super Admin you can also access the administration back-end via http://localhost/myproject/www/administrator
Installing Anahita apps and components
Now it is time to extend your Anahita installation with some apps and components. Anahita already comes with some really useful ones. To get a list of them simply type the following command:
php anahita package:list
Now in order to install an app, for example the Photos app, type the following command:
php anahita package:install photos
You can even provide a list of apps and components in one line. For example to install the Groups, Topics, and Connect apps use the following command:
php anahita package:install groups topics connect
In order to uninstall apps and extensions you can simply use the following command:
php anahita package:uninstall photos
HINT: In the administration back-end you can go to the Extend > Components and further define whether an app should optionally or always be available on actor profiles (people, groups, etc.). If an app is optionally available, then on each actor profile the app can be enabled under the Edit Profile > Apps.
Congratulations! You have just installed some apps and extensions on your Anahita installation.