Issue: cPanel based server running CentOS 7.3 that is already running Apache (httpd), need to install ab, so as to benchmark other servers.
Solution: Install on the command line:
Edit yum:
nano /etc/yum.conf
Remove entry referencing: httpd*
Then install ab:
yum install httpd-tools
Add back the httpd* reference to yum (that was removed above).
Now test a benchmark of some OTHER server, example:
ab -c 5 -n 1000 https://www.domain-name.com/
The above may take quite some time as it has to cycle through 1000 – So… maybe use a lower number just to test that ab is functioning.
Note that:
-c 5 means 5 concurrent connections at a time
and
-n 1000 means 1000 requests will be sent to the server.
More information can be found here:
https://forums.cpanel.net/threads/using-apache-ab-for-benchmarking-and-gnuplot-for-graphing.275542/