You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Leonard Hoay (Dr)" <le...@ntu.edu.sg> on 2020/06/25 04:48:29 UTC
[users@httpd] Apache on CentOS Linux
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.
RE: [users@httpd] Apache on CentOS Linux
Posted by "Leonard Hoay (Dr)" <le...@ntu.edu.sg>.
Hi Petr
Thank you so much!
Look like the apache is not install and running on this server!
Regards,
Hoay
[root@hpc-cloud-96 ~]# ls /etc/httpd
ls: cannot access /etc/httpd: No such file or directory
[root@hpc-cloud-96 ~]# ls /etc/httpd*
ls: cannot access /etc/httpd*: No such file or directory
[root@hpc-cloud-96 ~]# ls /var/log/htt*
ls: cannot access /var/log/htt*: No such file or directory
[root@hpc-cloud-96 ~]#
From: hostalp@post.cz [mailto:hostalp@post.cz]
Sent: Thursday, June 25, 2020 6:29 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache on CentOS Linux
Hello,
in the case of the standard httpd installation (as provided by the distro, it may be of course installed from other sources):
- is installed? (including the mod_ssl which enables the TLS/SSL support)
yum list installed httpd mod_ssl
- is enabled and running?
systemctl status httpd.service
(also your "ps -aux | grep -i http" should list some running httpd processes)
- config location
/etc/httpd/conf/httpd.conf - main config file
/etc/httpd/conf.d/ - additional (for specific purposes) config files
/etc/httpd/conf.modules.d/ - config of modules (which are loaded or not)
- logs location
/var/log/httpd/
Best regards,
Petr
---------- Original Messsage ----------
From: Leonard Hoay (Dr) <le...@ntu.edu.sg>>
To: users@httpd.apache.org<ma...@httpd.apache.org> <us...@httpd.apache.org>>
Sent: 25. 6. 2020 6:49:04
Subject: [users@httpd] Apache on CentOS Linux
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.
Re: [users@httpd] Apache on CentOS Linux
Posted by ho...@post.cz.
Hello,
in the case of the standard httpd installation (as provided by the distro,
it may be of course installed from other sources):
- is installed? (including the mod_ssl which enables the TLS/SSL support)
yum list installed httpd mod_ssl
- is enabled and running?
systemctl status httpd.service
(also your "ps -aux | grep -i http" should list some running httpd
processes)
- config location
/etc/httpd/conf/httpd.conf - main config file
/etc/httpd/conf.d/ - additional (for specific purposes) config files
/etc/httpd/conf.modules.d/ - config of modules (which are loaded or not)
- logs location
/var/log/httpd/
Best regards,
Petr
---------- Original Messsage ----------
From: Leonard Hoay (Dr) <le...@ntu.edu.sg>
To: users@httpd.apache.org <us...@httpd.apache.org>
Sent: 25. 6. 2020 6:49:04
Subject: [users@httpd] Apache on CentOS Linux
"
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.
"
RE: [users@httpd] Apache on CentOS Linux
Posted by "Leonard Hoay (Dr)" <le...@ntu.edu.sg>.
Hi David,
Thank you so much!
Look like the apache is not install and running on this server!
Regards,
Hoay
[root@hpc-cloud-96 ~]# 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
[root@hpc-cloud-96 ~]# 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
[root@hpc-cloud-96 ~]# systemctl status httpd
Unit httpd.service could not be found.
[root@hpc-cloud-96 ~]#
From: David Copeland [mailto:david.copeland@jsidata.ca]
Sent: Thursday, June 25, 2020 7:29 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache on CentOS Linux
On my CentOS7 machine the following works:
systemctl status httpd
Cheers,
Dave.
On 6/25/20 12:48 AM, Leonard Hoay (Dr) wrote:
[cid:image001.gif@01D64B34.4B682F70]
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/"<https://www.centos.org/>
BUG_REPORT_URL="https://bugs.centos.org/"<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.
Re: [users@httpd] Apache on CentOS Linux
Posted by David Copeland <da...@jsidata.ca>.
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.
>