How To Install Stalker Middleware portal

Its strongly recommend to use stable 64 bit distribution of Ubuntu Server LTS.


System Requirements :
Approximately for 5000 subscribers
CPU 2×Xeon5620
RAM 16Gb
HDD 2×500Gb RAID-1 (soft or hard)


Example: Install all necessary services & packages for Ubuntu 14.04.3 LTS (performed by superuser “root”):

#apt-get install -y -u apache2 nginx memcached mysql-server php5 php5-mysql php-pear nodejs upstart && pear channel-discover pear.phing.info && pear install phing/phing

#apt-get install unzip

Login to mySQL
#mysql -u root -p

1- create a database called: stalker_db

   CREATE DATABASE stalker_db;

2- Create user: stalker & pass: 1

   CREATE USER 'stalker'@'localhost' IDENTIFIED BY '1';

3- Give Permissions for User to the Database

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

4- Reload all the Privileges
 
   FLUSH PRIVILEGES;


Download unzip and copy to /var/www/html/stalker_portal:

#wget https://github.com/azhurb/stalker_portal/archive/v5.0.2.zip
#unzip v5.0.2.zip
#cp -a stalker_portal* /var/www/html/stalker_portal
#cd /var/www/html/stalker_portal/deploy/
#phing


Edit the below files
Make the changes in /etc/mysql/my.cnf:

#echo "max_allowed_packet = 32M" >> /etc/mysql/my.cnf


Make the changes in /etc/php5/apache2/php.ini:

#echo "short_open_tag = On" >> /etc/php5/apache2/php.ini


Then run below command:

#a2enmod rewrite

Make sure that the package libapache2-mod-php5filter is not installed on the system. If necessary, remove it.

#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:

#nano /etc/apache2/ports.conf
NameVirtualHost *:88
Listen 88


Then restart apache:

#/etc/init.d/apache2 restart

NGINX: Example of configuration /etc/nginx/sites-available/default :

server {
    listen       80;
    server_name  localhost;
 
    location / {
        proxy_pass http://127.0.0.1:88/;
        proxy_set_header Host $host:$server_port;
        proxy_set_header X-Real-IP $remote_addr;
    }
 
    location ~* \.(htm|html|jpeg|jpg|gif|png|css|js)$ {
        root /var/www;
        expires 30d;
    }
}



Restart nginx

#service nginx restart



From web browser run:

http://ip:88/stalker_portal

user:admin
pwd: 1

All done

  • 11 Users Found This Useful
Was this answer helpful?

Related Articles

Explaining: Unicast / Multicast and UDP and RTP ?

UnicastUnicast udp/rtp is for point to point, i.e udp://188.132.3.4:8000 you're sending udp/rtp...