nPerfServer can now serve HTTP/HTTPS requests as well as TCP/WebSockets connections. Therefore, you don't need anymore to install Apache/Nginx and PHP.
You have 2 ways :
Try our new upgrade script and get it working in less than 5 minutes. Do all the hard work for you ! Feedbacks are welcome
System compatibility : Debian 9/10/11, Ubuntu 18.04 & 20.04.
It must be run as root
wget https://repo.nperf.com/conf/easy-upgrade-from-2.0.x.sh && sh easy-upgrade-from-2.0.x.sh
If you prefer to do it by yourself, you can follow the steps below.
Firstly, we have to stop the service and make sure it doesn't restart automatically.
/etc/crontab file and comment nPerf related entries or remove the specific cron.d file if applicable (for example
su - nperf ./nperf-service.sh stop
Supported systems for deb packages are :
If you are using another version of Debian/Ubuntu, please first upgrade to a version listed above.
Debian / Ubuntu is now fully supported for nPerfServer installation, you can get it working in one minute by using nPerf repository :
apt-get install lsb-release &&\ wget -O - https://repo.nperf.com/apt/conf/nperf-server.gpg.key | apt-key add - &&\ echo "deb [arch=amd64] http://repo.nperf.com/apt $(lsb_release -sc) main non-free" > /etc/apt/sources.list.d/nperf.list &&\ apt-get update &&\ apt-get install nperf-server
Copy your UUID file to the new location, so we can identify your server is upgraded! (adapt path of
/home/nperf/nPerf.uuid if needed)
cp /home/nperf/nPerf.uuid /var/lib/nperf-server/nPerfServer.uuid &&\ chown nperf-server. /var/lib/nperf-server/nPerfServer.uuid &&\ chmod 644 /var/lib/nperf-server/nPerfServer.uuid
Edit the config file if needed :
/etc/nperf/nperf-server.conf (If you wanna use your legacy HTTP server, set REDIRECT_PORT_80 to 0)
Then start nPerfServer :
To start automatically nPerfServer with the system, please run:
systemctl enable nperf-server
This apply ONLY if your server is dedicated to nPerf and you wanna use nPerfServer for serving HTTP files!
You can now remove all useless stuff from previous nPerfServer version.
rm -rf /home/nperf
Then remove commented lines
/etc/crontab or remove specific cron.d file.
Do not remove
/etc/cron.d/nperf-server file !
You can also unmount the ramdisk :
umount /var/www/html/nperf (Then, don't forget to remove the corresponding line in
This apply ONLY if your server is dedicated to nPerf!
apt-get remove apache2 rm -rf /var/www
You can also remove PHP.
Congratulations, you have upgraded nPerf server successfully!
You can check your server is OK using our online checker : https://server-check.nperf.com/
If you encounter difficulties, feel free to contact us, we'll help you: https://www.nperf.com/contact/