Apache Flashcards

1
Q

check apache service status

A

sudo service apache2 status or apachectl status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

where is the apache config file on Fedora and CentOS?

A

/etc/httpd/conf/httpd.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

where is the apache config file on Debian and Ubuntu?

A

/etc/apache2/apache2.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what command to use to check where the apache config file is?

A

apachectl -V

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

using the find command to find the apache config file

A

find / | grep “apache2.conf”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

list apache loaded modules

A

apachectl -M

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

enable a virtual site

A

sudo a2ensite example.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

disable a virtual site

A

sudo a2dissite example.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

enable an apache moduel

A

sudo a2enmod name_of_module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

disable an apache moduel

A

sudo a2dismod name_of_module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly