Skip to main content

Linux useful commands for Apache

When Apache run on linux, there are several usefull commands:

Assumption: Apache is installed on /sw/pkg/apache.

See server status
/sw/pkg/apache/bin/apachectl

Validate configuration files
/sw/pkg/apache/bin/httpd -t

Stop apache
/sw/pkg/apache/bin/apachectl -k stop

See server version
/sw/pkg/apache/bin/httpd -v

See who listen on port 80
netstat  | grep 80
netstat -ltnp | grep ':80'

Comments

You certainly deserve a round of applause for your post and more specifically, your blog in general. Very high quality material!

Popular posts from this blog

Jenkins error: groovy.lang.MissingPropertyException

I tried to run groovy build step and got below error. This post will describe how I solved the problem.

Caught: groovy.lang.MissingPropertyException: No such property: hudson for class: script


What is PKI

PKI = Public Key Infrastructure
(Resource) Method of asserting the identity and validity of a person (or entity) that you have not previously met or interacted.

It use of certificates containing identifying information and public keys (these certificates are more properly called X.509 certificates).

PKI accomplishes this by defining a central authority who is mutually trusted by all users of the system.