On my CentOS7 machine the following works: systemctl status httpd
Cheers, Dave. On 6/25/20 12:48 AM, Leonard Hoay (Dr) wrote: > > Dear XAMPP/Apache PHP Administrator, > > > > May I know how to check whether the Apache is installed and running on > this server? Also, where it directory/folder located? > > > > Could anyone give your advice? Thanks in advance! > > > > > > Regards, > > Hoay > > > > > > # cat /etc/os-release > > > > NAME="CentOS Linux" > > VERSION="7 (Core)" > > ID="centos" > > ID_LIKE="rhel fedora" > > VERSION_ID="7" > > PRETTY_NAME="CentOS Linux 7 (Core)" > > ANSI_COLOR="0;31" > > CPE_NAME="cpe:/o:centos:centos:7" > > HOME_URL="https://www.centos.org/" > > BUG_REPORT_URL="https://bugs.centos.org/" > > > > CENTOS_MANTISBT_PROJECT="CentOS-7" > > CENTOS_MANTISBT_PROJECT_VERSION="7" > > REDHAT_SUPPORT_PRODUCT="centos" > > REDHAT_SUPPORT_PRODUCT_VERSION="7" > > > > > > # ps -aux | grep -i http > > root 15030 0.0 0.0 112712 984 pts/0 S+ 12:36 0:00 grep > --color=auto -i http > > > > # ps -aux | grep -i apac > > root 15038 0.0 0.0 112712 984 pts/0 R+ 12:36 0:00 grep > --color=auto -i apac > > > > # > > > > > > ------------------------------------------------------------------------ > > CONFIDENTIALITY: This email is intended solely for the person(s) named > and may be confidential and/or privileged. If you are not the intended > recipient, please delete it, notify us and do not copy, use, or > disclose its contents. > Towards a sustainable earth: Print only when necessary. Thank you. >