Quantcast
Channel: SATellite TV | CCcam forum | IPTV forum | IPTV | Internet TV
Viewing all articles
Browse latest Browse all 3417

Installing the "Stalker" portal

$
0
0
Installing the "Stalker" portal

Necessary services & packets

  1. apache2
  2. apache2-rewrite
  3. nginx
  4. nginx-extras
  5. memcached
  6. mysqld >= 5
  7. php5 >= 5.3.0
  8. php5-mysql
  9. php-pear
  10. php-soap *
  11. php5-intl *
  12. php-gettext *
  13. php5-memcache *
  14. phing (for version >= 4.8.0) **
  15. node.js (nodejs package) >= v0.4.8 (for PVR management)
  16. upstart (for stalkerd - PVR mangemant)
  17. php5-curl *
  18. php5-tidy *
  19. php5-imagick *
  20. 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



  • 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

Tip

GRANT ALL PRIVILEGES ON stalker_db.* TO stalker@localhost IDENTIFIED BY '1' WITH GRANT OPTION;

  • 4. Configuration file /var/www/stalker_portal/server/config.ini.

    WARNING
    Do 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

    Tip
    sudo 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.

    Tip
    apt-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:

    Tip
    service apache2 restart

Tip


Viewing all articles
Browse latest Browse all 3417

Trending Articles