“apachectl status” will not work if you don’t have lynx ; text-based web browser.
You realize that when you get below message while using the command.
Error
bin/apachectl: line 95: lynx: command not found
Install the lynx and tell it to Apache httpd, he will surely understand.
Download the lynx from here. Change your working directory to the extracted folder and run the command:
./configure --prefix=<path-to-install-lynx> make make install
During lynx installation, it may stop with an error:
configure: error: No curses header-files found
Run the below command before proceeding:
sudo yum search ncurses-devel
Now it’s time to tell httpd about lynx.
In apachectl file (either in bin or conf directory), change the line starting with LYNX=”lynx -dump” to LYNX=”<lynx-installed-path>/lynx -dump”
apachectl status will start working..