Installing the "Stalker" portal
Necessary services & packets
Example: Install all necessary services & packages for Ubuntu 14.04.3 LTS (performed by superuser root):
Installation order
Necessary services & packets
- apache2
- apache2-rewrite
- nginx
- nginx-extras
- memcached
- mysqld >= 5
- php5 >= 5.3.0
- php5-mysql
- php-pear
- php-soap *
- php5-intl *
- php-gettext *
- php5-memcache *
- phing (for version >= 4.8.0) **
- node.js (nodejs package) >= v0.4.8 (for PVR management)
- upstart (for stalkerd - PVR mangemant)
- php5-curl *
- php5-tidy *
- php5-imagick *
- php5-geoip *
* - beginning from the version 4.8.35 they are automatically installed with phing using
** - phing installation:
Tip
pear channel-discover pear.phing.info
pear install phing/phing
Example: Install all necessary services & packages for Ubuntu 14.04.3 LTS (performed by superuser root):
Tip
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get install -y -u apache2 nginx memcached mysql-server php5 php5-mysql php-pear nodejs upstart && sudo pear channel-discover pear.phing.info && sudo pear install -Z phing/phing | ![]() |
Installation order
- 1. Install the necessary services, packages;
- 2. Download and unzip current release of Stalker MW in your web-server directory (For example in /var/www/). Project files should be available by the URL http://<your_ip_or_domain_name>/stalker_portal/;
- 3.Create MySQL user with permision to access stalker_db database only:Tip
- 4. Configuration file /var/www/stalker_portal/server/config.ini.
WARNINGDo not edit file config.ini! If you want to change some settings - create file custom.ini and add the necessary configuration.
Do not copy the entire content of config.ini in custom.ini. Add customized sections to custom.ini only.
- 5. Go to /var/www/stalker_portal/deploy/ and run phing
Tipsudo phing
Configure MySQL, PHP, Node.js, Apache, Nginx
MySQL
echo "max_allowed_packet = 32M" >> /etc/mysql/my.cnf
PHP
echo "short_open_tag = On" >> /etc/php5/apache2/php.ini
Node.js- Check that the config.ini and custom.ini have the correct values for daemon_api_url and stalker_api_url
Apache- Enable mod_rewrite:
a2enmod rewrite
- Make sure that the package libapache2-mod-php5filter is not installed on the system. If necessary, remove it.
Tipapt-get purge libapache2-mod-php5filter
- Remove content of /etc/apache2/sites-available/000-default.conf Do not forget to make backup.
cat /dev/null > /etc/apache2/sites-available/000-default.conf
- Add next content to /etc/apache2/sites-available/000-default.conf
<VirtualHost *:88>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory /var/www/stalker_portal/>
Options -Indexes -MultiViews
AllowOverride ALL
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
- Set in /etc/apache2/ports.conf:
Listen 88
- Restart apache:
Tipservice apache2 restart
Tip
![]() |