PDA

View Full Version : WHM/cpanel how to edit/customize BANDWIDTH LIMIT EXCEEDED page



Fli
04-27-2016, 06:18 PM
Backup original file:


cp -Rp /home/cpeasyapache/src/mod_bwlimited.c /home/cpeasyapache/src/mod_bwlimited.c.bak;cp -Rp /usr/local/apache/modules/mod_bwlimited.so /usr/local/apache/modules/mod_bwlimited.so.bak

Edit the file:


vi /home/cpeasyapache/src/mod_bwlimited.c

find: The server is temporarily unable to service

and edit that lines around that. I was able to use html tags like <br /> to add line breaks or <a href=http...>). Make sure not to use quotation marks so you do not break the code.

Save changes (Esc key, :wq , enter key)

Compile the file:


/usr/local/apache/bin/apxs -iac /home/cpeasyapache/src/mod_bwlimited.c

restart httpd:


service httpd stop;service httpd start;service httpd status

Now the bandwidth limit exceeded page should be working fine, veriffy that.

--------

In case something went wrong during file editting, restore backup file:


cp -Rpf /home/cpeasyapache/src/mod_bwlimited.c.bak /home/cpeasyapache/src/mod_bwlimited.c

and then recompile file and restart htttpd:


/usr/local/apache/bin/apxs -iac /home/cpeasyapache/src/mod_bwlimited.c


service httpd stop;service httpd start;service httpd status