Following are the instructions to install the Ministra Portal on Ubuntu 16
Infomir-Middleware Installation on Ubuntu Server LTS 16.04Install Ubuntu server 16.04
Make sure that the package libapache2-mod-php5filter is not installed on the system. If necessary, remove it.
Remove content of /etc/apache2/sites-available/ Do not forget to make backup.
Add following content to /etc/apache2/sites-available/000-default.conf
Set in /etc/apache2/ports.conf
Run command
Install nginx
Go to /etc/nginx/sites-available/
Now edit default file and remove all content and paste the following
[/LIKES]
Infomir-Middleware Installation on Ubuntu Server LTS 16.04
- Upgrade Packages
PHP:
Sudo apt-get update
Sudo apt-get upgrade
- Execute Command
PHP:
sudo apt-get install memcached mysql-server php php-mysql php-pear nodejs libapache2-mod-php && sudo pear channel-discover pear.phing.info && sudo pear install -Z phing/phing
- During installation you will prompted for sql password for use root. Please configure password
- Login to MySQL
PHP:
mysql -u root -p
CREATE DATABASE stalker_db;
SHOW DATABASES;
GRANT ALL PRIVILEGES ON stalker_db.* TO stalker@localhost IDENTIFIED BY '1' WITH GRANT OPTION;
FLUSH PRIVILEGES;
- Copy Ministra.zip files in the destination /var/www
- Install and upgrade the version of NPM to 2.15.11
PHP:
sudo apt install npm
sudo npm install -g [email protected]
sudo ln -s /usr/bin/nodejs /usr/bin/node
- Install Unzip and Unzip Ministra.zip
PHP:
sudo apt-get install unzip
unzip Ministra.zip
- Go to (/var/www/stalker_portal/deploy/) and run command
PHP:
sudo phing
PHP:
sudo phing
- Go to (/etc/mysql/mysql.conf.d) and add to the end of the file mysqld.cnf
PHP:
sql_mode=””
- Restart sql services
PHP:
sudo service mysql restart
- Run command to enable mod_encrypt
PHP:
phpenmod mcrypt
- Run command
PHP:
echo "short_open_tag = On" >> /etc/php/7.0/apache2/php.ini
- Enable mode_rewrite
PHP:
a2enmod rewrite
Make sure that the package libapache2-mod-php5filter is not installed on the system. If necessary, remove it.
PHP:
apt-get purge libapache2-mod-php5filter
Remove content of /etc/apache2/sites-available/ Do not forget to make backup.
PHP:
cp 000-default.conf /etc/apache2/sites-available/000-default.backup
cat /dev/null > /etc/apache2/sites-available/000-default.conf
Add following content to /etc/apache2/sites-available/000-default.conf
PHP:
<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>[/B]
Set in /etc/apache2/ports.conf
PHP:
Listen 88
Run command
PHP:
service Apache2 restart
Install nginx
PHP:
sudo apt-get install nginx
Go to /etc/nginx/sites-available/
PHP:
cp default /etc/nginx/sites-available/backup-default
Now edit default file and remove all content and paste the following
PHP:
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;
}
}
- Run command
PHP:
service nginx restart
- Ministra Administration interface will be available via URL
PHP:
http://<your_ip_or_domain_name>/stalker_portal/server/adm/
- Default access
PHP:
login: admin
password: 1
chmod -R a+rwx
[/LIKES]
Last edited: