Functional Verification Test for lsb-apache
Install & Setup
- Download the lsb-apache application package that corresponds
to the LSB version and processor architecture for which certification
is being sought from the
Download Page.
-
Install package on system. Example command line:
rpm -ivh lsb-apache-2.2.8-1.lsb4.i486.rpm
NOTE: Application MUST be installed without use of --nodeps option,
the dependency checks are part of the test.
- Expected result: application should be installed to
/opt/lsb/appbat
/var/opt/lsb/appbat
/etc/opt/lsb/appbat
-
The lsb-apache package utilizes the install_initd/remove_initd commands. After the package install, lsb-apache should be listed as a system service. To verify this, use one of the following commands:
chkconfig --list lsb-apache (Red Hat and other systems providing chkconfig)
sysv-rc-conf --list lsb-apache (Debian and derivatives, you can 'apt-get install sysv-rc-conf' if it is not installed)
ls /etc/rc[0-6].d/*lsb-apache (Debian and derivatives, if sysv-rc-conf is not installed)
- Expected result: lsb-apache should listed as enabled in runlevels 3,4,5
lsb-apache 0:off 1:off 2:off 3:on 4:on 5:on 6:off
-
If the system under test is already running a webserver listening on the
standard port (80), stop it before proceeding with the FVT.
-
Run the command: grep "^nobody" /etc/passwd
- Expected result: Output shows user "nobody" already exists. If it
is not present on the system, run the command: "useradd nobody"
to create the nobody user.
-
Run the command: grep "^nobody" /etc/group
- Expected result: Output shows group "nobody" already exists. If it
is not present on the system, run the command: "groupadd nobody"
to create the nobody group.
-
Run the command: grep "^http" /etc/services
- Expected result: Output shows tcp and udp port definitions for
the http server using port 80. If definitions are not present, perform
a second check: grep "^www" /etc/services. Some systems name
the entry one way, some the other (either is correct, as IANA provides
both in the canonical list). In the unlikely event that there is no
services entry for a webserver on port 80, add the
following two lines to /etc/services:
http 80/tcp
http 80/udp
It is not necessary to add https entries, or any other
http services not associated with port 80, for this test.
Functional Verification Test (FVT)
Results
Cleanup
-
Shut down the lsb-apache webserver with the following command:
/opt/lsb/appbat/sbin/apachectl stop
-
If the native webserver was shut down to run this test, re-enable it.
Reporting Test Results
Include the results of testing this application in the Conformance Statement
submitted to the LSB Certification Authority when seeking LSB Runtime
Environment Certification.
Note this is not a submittable form, instead you affirm on the
certification form that you have followed these steps.
|