Tuesday, April 19, 2016

/usr/local/apache2/bin/apachectl: 95: /usr/local/apache2/bin/apachectl: lynx: not found

I have built APACHE 2.4 version from the scratch. Therefore it does not have init scripts to control the apache service. It use apachectl command which is located in /usr/local/apache2/bin directory.
Apachectl command support for start, stop and status arguments.

But when I tried to check the status of the apache service, it produce the above error.

Root cause: As you can see in the error message lynx command is not found in the server. The reason is when apachectl check the status it uses lynx command and issue the below command.
lynx http://localhost

To rectify this issue you need to install the lynx command. I have played with the debian version. So the command is apt-get install lynx