Tiny Core Extensions > TCE Tips & Tricks

Installing Apache breakes App Browser "ab" on command line


Installing apache.tcz, installs something caleld "Apache Bench" as "ab" which
overrides the link to Appbrowser "ab", and so you won't be able to install anything
from the command line (like in microcore) by typing "ab" and pull out your hair wondering why..

$ ab -V
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

THE FIX (rename apache bench to some other name, say abb):
add a renaming of the file by putting a directive in  /opt/bootlocal.sh and then save /opt/bootlocal.sh permanently with   filetool.sh -b

$ vi /opt/bootlocal.sh
press i (for insert mode inside vi, then type below:)

sudo  mv /usr/local/bin/ab /usr/local/bin/abb

press ESC (to exit insert mode from within vi)
press ZZ (to save and quit from within vi)

Now save bootlocal.sh permanently
$ filetool.sh -b

You can use /usr/bin/ab to always get to the command line ab tool.
Or you can setup an alias in your .ashrc

Hi mrstarr
From the apache info file:

--- Quote ---      WARNING: apache2 includes a binary at
         /usr/local/bin/ab. This binary will
         override the ab command in TC unless it is
         used explicitly.
--- End quote ---


[0] Message Index

Go to full version