Applicable to:
- SolusVM
Question
How to switch old software stack with Lighttpd web server to the latest one with Nginx on SolusVM master/slave node?
Answer
-
Connect to the SolusVM Master/slave server over SSH.
-
Download and execute the script to switch to the latest stack:
# curl -o svmupgradestack.sh https://raw.githubusercontent.com/solusvm-support/helpers/master/svmupgradestack.sh && sh svmupgradestack.sh
-
In the script prompt select the type of node - Master or Slave.
-
Wait until the script is finished.
-
Move out you the current system PHP binary and update
svmstack-php
package:# yum update svmstack-php && mv /usr/bin/php /usr/bin/backup-php
-
Create a link to SolusVM PHP binary:
# ln -s /usr/local/svmstack/php/bin/php /usr/bin/php
-
Install the SolusVM repository:
# yum install solusvm-release
-
Stop and disable Lighttpd web server:
# service lighttpd stop
# chkconfig lighttpd off -
Install Nginx web server and legacy configuration:
For Master server:# yum install svmstack-nginx svmstack-nginx-legacy-master-config
For Slave server:# yum install svmstack-nginx svmstack-nginx-legacy-slave-config
-
Enable svmstack-* services:
# chkconfig svmstack-nginx on
# chkconfig svmstack-fpm on -
Start services:
# service svmstack-nginx restart
# service svmstack-fpm restart
Comments
0 commentsPlease sign in to leave a comment.