查看 Apache2 的 status 狀態時, 出現 www-browser not found 的錯誤情形, 要怎麼解決呢?
Apache2 status 出現 www-browser not found 修復
Apache2 status 出現的錯誤訊息如下述:
- $ apache2ctl status
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
/usr/sbin/apache2ctl: 99: /usr/sbin/apache2ctl: www-browser: not found
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars - $ sudo apache2ctl status # 或 sudo /usr/sbin/apache2ctl status
/usr/sbin/apache2ctl: 99: /usr/sbin/apache2ctl: www-browser: not found
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars
解法
- 找到 www-browser, 安裝 www-browser 即可.
- sudo apt-get install w3m
- apache2ctl status # 或 sudo /usr/sbin/apache2ctl status