Note: GCconnex does not work with PHP7 - GCconnex ne fonctionne pas avec PHP7
sudo apt-get update
sudo apt-get install aptitude
sudo aptitude install git apache2 mysql-server php5 libapache2-mod-php5 php5-mysql php5-gd
When prompted, enter a root password for MySQL.
git clone -b gcconnex https://github.com/gctools-outilsgc/gcconnex.git
Setup Composer: Download the install off the site. Default name of the file is "installer" Go into the directory the file was downloaded to (Example: cd /home/username/Downloads).
sudo php installer --install-dir=/bin --filename=composer
Go into your gcconnex directory. (Example: cd /home/username/gcconnex)
composer install
Create a data directory, not in the gcconnex directory!
mkdir gcconnex_data
Example Location: /home/username/gcconnex_data
chmod 777 gcconnex
chmod 777 gcconnex/engine
chmod 700 gcconnex_data
sudo chown www-data:www-data gcconnex_data
cd /var/www/html/
sudo ln -s /EXAMPLE/PATH/TO/gcconnex gcconnex
mysql -u root -p
CREATE DATABASE gcconnexdb;
GRANT ALL ON gcconnexdb.* TO gcconnex@localhost IDENTIFIED BY 'password';
QUIT;
Choose a better password
sudo a2enmod rewrite
sudo nano /etc/apache2/sites-available/000-default.conf
Add the following inside the <VirtualHost *:80></VirtualHost>
tag
<Directory /var/www/html/gcconnex>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Save and close (Ctrl-o then Ctrl-x if you are using nano)
sudo service apache2 restart
Goto http://localhost/gcconnex
. Follow instructions. You will need to enter the database information and the path to the data folder.
chmod 775 gcconnex
chmod 775 gcconnex/engine
The final step to getting the GCconnex experience is to reorder and enable/disable plugins in the Administration section of your installation.
A quick way to sort and activate plugins in the correct order is to activate
the "Plugin Loader" plugin. Do this by going into Configure
-> Plugins
-> ctrl+f Plugin Loader
-> Activate
Then go to
Configure
->Utilities
->Plugin Loader
menu and click on the Import
button.
The plugin_config file has friend_request
as enabled, but for an unknown reason does not activate it properly. So go into Configure
-> Plugins
and ctrl+f for Friend Request
and activate Friend request 4.0