Wondering how to switch Lighttpd web server to Nginx on SolusVM.
As a part of our AWS Support Services, we often receive similar requests from our AWS customers.
Today, let’s see the steps followed by our Support Techs to help our customers.
How to switch Lighttpd web server to Nginx on SolusVM?
Performance and flexibly of Nginx are better compare to Lighttpd.
Also, Nginx configuration files are much easier to write and maintain than Lighttpd.
Today, let us see the steps followed by our Support Techs to perform this task.
1.Firstly, connect to the SolusVM Master/slave server over SSH.
2.Then, 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
3. In the script prompt select the type of node – Master or Slave.
4. Wait until the script is finished.
If you would like to perform the switch manually – use instruction below:
1. Firstly, 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
2. Then, create a link to SolusVM PHP binary:
# ln -s /usr/local/svmstack/php/bin/php /usr/bin/php
3. Next, install the SolusVM repository:
# yum install solusvm-release
4. Then, stop and disable Lighttpd web server:# service lighttpd stop
# chkconfig lighttpd off
5. Next, 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
6.Next, enable svmstack-* services:
# chkconfig svmstack-nginx on
# chkconfig svmstack-fpm on
7.Finally, start services:
# service svmstack-nginx restart
# service svmstack-fpm restart
[Need help with more AWS queries? We’d be happy to assist]
Conclusion
Today, we discussed the steps followed by our Support Engineers to help our customers to perform the task.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
0 Comments