Wikiarguments deployment

Материал из Вікі Фаланстэра
Перейти к: навигация, поиск
  • Install packages:
sudo apt install mysql-server php5 apache2 memcached php5-imap php5-memcache php5-mysql
  • Clone the repo:
git clone https://github.com/falanster/wikiarguments_by.git

тут як наладзіць SSH ключ: https://help.github.com/articles/generating-ssh-keys/

  • Create database:
mysql -u root -p
CREATE DATABASE wikiargdb;
\q
  • Import sql:
cd wikiargments_by/localization
mysql -u root -p<password> wikiargdb < betatest.sql
  • Rename wikiarguments_by/etc/config.php.sample to wikiarguments_by/etc/config.php and edit it according to your db and hostname.
  • Add to /etc/hosts:
127.0.0.1       wikiarguments
  • Create /etc/apache2/sites-available/wikiarguments.conf, fill it with the following (note the <your_path>):
<VirtualHost *:80>
        ServerAdmin admin@wikiarguments
        DocumentRoot <your_path>/wikiarguments_by
        ServerName wikiarguments
        ServerAlias www.wikiarguments
        RewriteEngine On
        RewriteOptions inherit

        <Directory <your_path>/wikiarguments_by/ >
                Options Includes FollowSymLinks
                AllowOverride All
                Require host wikiarguments
                Require all granted
        </Directory>
</VirtualHost>
  • Enable the site:
sudo a2ensite /etc/apache2/sites-enabled/wikiarguments
  • Enable mod_rewrite:
sudo a2enmod rewrite
  • Restart apache2:
service apache2 restart