<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vmssoftware.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vmsnick</id>
	<title>VSI OpenVMS Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vmssoftware.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vmsnick"/>
	<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/Special:Contributions/Vmsnick"/>
	<updated>2026-05-10T01:06:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=Apache_(CSWS)_-_Easy_Installation_Guide&amp;diff=2459</id>
		<title>Apache (CSWS) - Easy Installation Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=Apache_(CSWS)_-_Easy_Installation_Guide&amp;diff=2459"/>
		<updated>2021-12-16T12:57:37Z</updated>

		<summary type="html">&lt;p&gt;Vmsnick: /* Creating a Self-Signed Certificate */ Added info about APACHE$CERT_TOOL.COM&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is an easy installation guide for setting up an Apache web server (CSWS) on OpenVMS. As such, it will not go into explicit detail but should rather serve as a checklist to make sure nothing important was missed during the base install. For more guides like this, check out the [https://wiki.vmssoftware.com/Open_Source_Software_for_OpenVMS Open Source Software for OpenVMS] page.&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
Before installing Apache make sure the following prerequisites are met.&lt;br /&gt;
&lt;br /&gt;
* OpenVMS Integrity servers Version 8.4-1H1 or higher.&lt;br /&gt;
* OpenSSL (SSL111) is needed to configure HTTPS for your Apache web server. SSL111 is not to be confused with SSL and SSL1, both of which come with OpenVMS. You can check if SSL111 is installed on your system with the command below.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ prod show prod ssl111&lt;br /&gt;
------------------------------------ ----------- ---------&lt;br /&gt;
PRODUCT                              KIT TYPE    STATE&lt;br /&gt;
------------------------------------ ----------- ---------&lt;br /&gt;
VSI I64VMS SSL111 V1.1-1K            Full LP     Installed&lt;br /&gt;
------------------------------------ ----------- ---------&lt;br /&gt;
&lt;br /&gt;
1 item found&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* It is required that you install CSWS on an ODS-5 enabled disk. The easiest way to check if the disk you are intending to install Apache on is ODS-5 enabled is to use the following command on a mounted disk.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ show devices $1$YOURDISK: /full&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Towards the bottom of the output, you will see the volume status.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
Volumes Status: ODS-5, ...&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optionally, if you intend to use PHP in conjunction with Apache, you should make sure your PHP distribution is up to date. This installation guide will briefly show you how to create a working example of a PHP web page. Using VSI CSWS Version 2.4-48A-1 together with HPE CSWS_PHP V5.2-17A or earlier causes a process crash.&lt;br /&gt;
&lt;br /&gt;
Before you install Apache, if you are currently running an earlier version of the software on your system, it is strongly recommended that you&lt;br /&gt;
&lt;br /&gt;
* Backup your important files. You may also wish to rename your configuration files so that the installation process can create new ones. Then use the old configuration files to transfer any modifications that would be required by your site. Do not use your old configuration files for your new installation. When transferring directives from a previous version, review the Apache documentation to ensure that the syntax is used correctly for the new version.&lt;br /&gt;
&lt;br /&gt;
* Shut down the Apache web server with the command&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ @sys$startup:apache$shutdown.com&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove Apache with the command&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ product remove csws&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To do a complete removal of Apache, follow the instructions in the last section of this document.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
&lt;br /&gt;
Before you install Apache, download the installation kit for CSWS (Apache) to your server and read through the release notes. Then follow these steps:&lt;br /&gt;
&lt;br /&gt;
* Unpack the kit inside your chosen source directory with &lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ run VSI-I64VMS-CSWS-V0204-38D-1.ZIPEXE&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Apache using the PCSI application.&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ product install csws&lt;br /&gt;
&lt;br /&gt;
Performing product kit validation of signed kits ...&lt;br /&gt;
%PCSI-I-VSIVALPASSED, validation of $1$DGA100:[000000.APACHEKIT]VSI-I64VMS-CSWS-V0204-&lt;br /&gt;
38D-1.PCSI$COMPRESSED;1 succeeded&lt;br /&gt;
&lt;br /&gt;
The following product has been selected:&lt;br /&gt;
    VSI I64VMS CSWS V2.4-38D               Layered Product&lt;br /&gt;
&lt;br /&gt;
Do you want to continue? [YES]&lt;br /&gt;
&lt;br /&gt;
Configuration phase starting ...&lt;br /&gt;
&lt;br /&gt;
You will be asked to choose options, if any, for each selected product and for&lt;br /&gt;
any products that may be installed to satisfy software dependency requirements.&lt;br /&gt;
&lt;br /&gt;
Configuring VSI I64VMS CSWS V2.4-38D&lt;br /&gt;
&lt;br /&gt;
    VMS Software Inc. &amp;amp; The Apache Software Foundation.&lt;br /&gt;
&lt;br /&gt;
* This product does not have any configuration options.&lt;br /&gt;
&lt;br /&gt;
Execution phase starting ...&lt;br /&gt;
&lt;br /&gt;
The following product will be installed to destination:&lt;br /&gt;
    VSI I64VMS CSWS V2.4-38D               DISK$SYS1:[VMS$COMMON.]&lt;br /&gt;
&lt;br /&gt;
Portion done: 0%...10%...30%...40%...50%...60%...80%...90%...100%&lt;br /&gt;
&lt;br /&gt;
The following product has been installed:&lt;br /&gt;
    VSI I64VMS CSWS V2.4-38D               Layered Product&lt;br /&gt;
&lt;br /&gt;
VSI I64VMS CSWS V2.4-38D&lt;br /&gt;
&lt;br /&gt;
    Release notes are available in SYS$HELP:CSWS_2_4_38.release_notes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    VMS Software Inc. highly recommends that you read these release notes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    Post-installation tasks are required.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    The OpenVMS Installation and Configuration Guide gives detailed directions.&lt;br /&gt;
    This information is a brief checklist.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    Configure OpenVMS aspects of the web server by:&lt;br /&gt;
&lt;br /&gt;
        $ @SYS$MANAGER:APACHE$CONFIG&lt;br /&gt;
&lt;br /&gt;
    If the OpenVMS username APACHE$WWW does not exist, you will be&lt;br /&gt;
    prompted to create that username.  File ownerships are set to UIC&lt;br /&gt;
    [APACHE$WWW], etc.&lt;br /&gt;
&lt;br /&gt;
    After configuration, start the web server manually by entering:&lt;br /&gt;
&lt;br /&gt;
        $ @SYS$STARTUP:APACHE$STARTUP&lt;br /&gt;
&lt;br /&gt;
    Check that neither SYLOGIN.COM nor the LOGIN.COM write any output to&lt;br /&gt;
    SYS$OUTPUT:.  Look especially for a&lt;br /&gt;
&lt;br /&gt;
        $ SET TERMINAL/INQUIRE.&lt;br /&gt;
&lt;br /&gt;
    Start the web server at system boot time by adding the following&lt;br /&gt;
    lines to SYS$MANAGER:SYSTARTUP_VMS.COM:&lt;br /&gt;
&lt;br /&gt;
        $ file := SYS$STARTUP:APACHE$STARTUP.COM&lt;br /&gt;
        $ if f$search(&amp;quot;&#039;&#039;file&#039;&amp;quot;) .nes. &amp;quot;&amp;quot; then @&#039;file&#039;&lt;br /&gt;
&lt;br /&gt;
    Shutdown the Apache server at system shutdown time by adding the&lt;br /&gt;
    following lines to SYS$MANAGER:SYSHUTDWN.COM:&lt;br /&gt;
&lt;br /&gt;
        $ file := SYS$STARTUP:APACHE$SHUTDOWN.COM&lt;br /&gt;
        $ if f$search(&amp;quot;&#039;&#039;file&#039;&amp;quot;) .nes. &amp;quot;&amp;quot; then @&#039;file&#039;&lt;br /&gt;
&lt;br /&gt;
    Test the installation using your favorite Web browser.&lt;br /&gt;
    Replace host.domain in the following URL (Uniform Resource Locator)&lt;br /&gt;
    with the information for the web server just installed, configured,&lt;br /&gt;
    and started.&lt;br /&gt;
&lt;br /&gt;
    URL http://host.domain/ should display the standard introductory page&lt;br /&gt;
    from the Apache Software Foundation. This has the bold text &amp;quot;It&lt;br /&gt;
    Worked! The Apache Web Server is Installed on this Web Site!&amp;quot; at the&lt;br /&gt;
    top  and the Apache server logo prominently displayed at the bottom.&lt;br /&gt;
    If you do not see this page, check the release notes, particularly&lt;br /&gt;
    the Frequently Asked Questions section.&lt;br /&gt;
&lt;br /&gt;
    If you&#039;d like to use secure connections then you&#039;ll need to create&lt;br /&gt;
    a server certificate.  We recommend that you start by creating a 30&lt;br /&gt;
    day self-signed certificate using the following certificate tool:&lt;br /&gt;
&lt;br /&gt;
        $ @APACHE$COMMON:[OPENSSL.COM]OPENSSL_AUTO_CERT.COM&lt;br /&gt;
&lt;br /&gt;
    Once the certificate has been created you&#039;ll need to uncomment the&lt;br /&gt;
    following directive in the APACHE$COMMON:[CONF]HTTPD.CONF file to&lt;br /&gt;
    enable SSL.&lt;br /&gt;
&lt;br /&gt;
        Include /apache$root/conf/ssl.conf&lt;br /&gt;
&lt;br /&gt;
    Thank you for using the Secure Web Server.&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The post-installation tasks listed above are taken care of in the coming configuration portion of this installation guide.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
&lt;br /&gt;
This part of the easy installation guide will take you through how to complete a basic configuration of Apache. Along the way, some optional tips and tricks will be shared that can prove useful for trouble shooting or testing. As mentioned before, it is assumed that OpenSSL (SSL111) is already installed on your system so that you can set up HTTPS for your web server.&lt;br /&gt;
&lt;br /&gt;
==Running APACHE$CONFIG==&lt;br /&gt;
&lt;br /&gt;
The first thing you need to do after installing Apache is to run SYS$MANAGER:APACHE$CONFIG.COM. This will result in the creation of the APACHE$WWW user account and set it as owner to all of Apache’s files. It will also define logicals needed for Apache to run; one of these is the logical APACHE$ROOT, which gives us easy access to Apache’s root directory.&lt;br /&gt;
&lt;br /&gt;
* Execute the configuration file and answer the questions one by one (highlighted in yellow in the output below). The Apache username is best kept as APACHE$WWW, since you won’t be prompted to create a new Apache user the next time you update Apache (answer with a carriage return) and the password you can choose at random (interactive login is disabled for the account).&lt;br /&gt;
&lt;br /&gt;
:Then, choose your own desired UIC number. If you do not know what UIC numbers are available, you can answer the question with a “?”, which will list the users on the system. As you may be aware, it is important not to specify a UIC of 1 or in the range 300-377 since these numbers are reserved by VSI.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ @sys$manager:apache$config&lt;br /&gt;
&lt;br /&gt;
                Secure Web Server for OpenVMS&lt;br /&gt;
                                      [based on Apache]&lt;br /&gt;
&lt;br /&gt;
        This procedure helps you define the operating environment&lt;br /&gt;
        required to run the Secure Web Server on this system.&lt;br /&gt;
&lt;br /&gt;
[Creating OpenVMS username &amp;quot;APACHE$WWW&amp;quot; ]&lt;br /&gt;
[Starting APACHE$COMMON:[000000]APACHE$ADDUSER.COM ]&lt;br /&gt;
&lt;br /&gt;
Press enter to continue...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PLEASE NOTE:&lt;br /&gt;
&lt;br /&gt;
You will be prompted for the following information:&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;span style=background:yellow&amp;gt;Full name for APACHE$WWW:&amp;lt;/span&amp;gt; ! Full name of site server administrator/owner.&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;span style=background:yellow&amp;gt;Password:&amp;lt;/span&amp;gt; ! Password for the APACHE$WWW account&lt;br /&gt;
&lt;br /&gt;
    UIC Group Number:   ? ! Question mark will display a list of all&lt;br /&gt;
                          ! UIC groups currently in use. Quite useful.&lt;br /&gt;
                          ! Please pick a group separate from all other&lt;br /&gt;
                          ! usernames.&lt;br /&gt;
                          ! Servers are usually given the first unused group,&lt;br /&gt;
                          ! starting at [377,*] and working down.  DO _not_&lt;br /&gt;
                          ! go below SYSGEN parameter MAXSYSGROUP.&lt;br /&gt;
&lt;br /&gt;
    UIC Member Number:  1 ! Question mark will display a list of all&lt;br /&gt;
                          ! UIC members currently in use in that group.&lt;br /&gt;
                          ! %UAF-W-BADSPC, no user matches specification&lt;br /&gt;
                          ! means the group is empty.&lt;br /&gt;
&lt;br /&gt;
***************************************************************************&lt;br /&gt;
*  Creating a NEW user account...                                         *&lt;br /&gt;
*                                                                         *&lt;br /&gt;
*  If at ANY TIME you need help about a prompt, just type &amp;quot;?&amp;quot;.            *&lt;br /&gt;
***************************************************************************&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 *** Processing APACHE$WWW&#039;s account ***&lt;br /&gt;
&lt;br /&gt;
Full name for APACHE$WWW:&lt;br /&gt;
Password (password is not echoed to terminal) [APACHE$WWW]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=background:yellow&amp;gt;UIC Group number [200]: ?&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each user has a specific User Identification Code (UIC) which consists of two&lt;br /&gt;
numbers, and is usually displayed in the format [group,member]. The first&lt;br /&gt;
number is the &amp;quot;group&amp;quot;. People with the same group number can access each&lt;br /&gt;
other&#039;s files through the group protection code.&lt;br /&gt;
&lt;br /&gt;
For instance, if you set protection using the following command:&lt;br /&gt;
        $ SET PROTECTION=(GROUP:R,WORLD) NEWS.TXT&lt;br /&gt;
only people in the same group could read the file &amp;quot;NEWS.TXT&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The following is a list of UIC&#039;s that already exist on the system: (You do not&lt;br /&gt;
have to specify one of these groups, if you do not want to.)&lt;br /&gt;
&lt;br /&gt;
       Owner         Username           UIC       Account  Privs Pri Directory&lt;br /&gt;
&lt;br /&gt;
SYSTEM MANAGER       SYSTEM            [1,4]      SYSTEM   All     4 SYS$SYSROOT:[SYSMGR]&lt;br /&gt;
...&lt;br /&gt;
TCPIP$TELNET   TCPIP$TELNET [3655,1]    TCPIP    Normal  8 SYS$SYSDEVICE:[TCPIP$TELNET]&lt;br /&gt;
TCPIP$FTP      TCPIP$FTP    [3655,2]    TCPIP   Normal  8 SYS$SYSDEVICE:[TCPIP$FTP]&lt;br /&gt;
TCPIP$SSH        TCPIP$SSH     [3655,3]      TCPIP    Normal  8 TCPIP$SSH_DEVICE:[TCPIP$SSH]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=background:yellow&amp;gt;vUIC Group number [200]:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=background:yellow&amp;gt;UIC Member number: 1&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
%UAF-I-ADDMSG, user record successfully added&lt;br /&gt;
%UAF-I-RDBADDMSGU, identifier APACHE$WWW value [000200,000001] added to rights database&lt;br /&gt;
%UAF-I-MDFYMSG, user record(s) updated&lt;br /&gt;
%UAF-I-MDFYMSG, user record(s) updated&lt;br /&gt;
%UAF-I-GRANTMSG, identifier APACHE$APR_ALL granted to APACHE$WWW&lt;br /&gt;
%UAF-I-DONEMSG, system authorization file modified&lt;br /&gt;
%UAF-I-RDBDONEMSG, rights database modified&lt;br /&gt;
&lt;br /&gt;
Check newly created account:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Username: APACHE$WWW                       Owner:&lt;br /&gt;
Account:  AP_HTTPD                         UIC:    [200,1] ([APACHE$WWW])&lt;br /&gt;
CLI:      DCL                              Tables: DCLTABLES&lt;br /&gt;
Default:  APACHE$ROOT:[000000]&lt;br /&gt;
LGICMD:   LOGIN&lt;br /&gt;
Flags:  LockPwd DisNewMail DisMail DisReport&lt;br /&gt;
Primary days:   Mon Tue Wed Thu Fri&lt;br /&gt;
Secondary days:                     Sat Sun&lt;br /&gt;
Primary   000000000011111111112222  Secondary 000000000011111111112222&lt;br /&gt;
Day Hours 012345678901234567890123  Day Hours 012345678901234567890123&lt;br /&gt;
Network:  ##### Full access ######            ##### Full access ######&lt;br /&gt;
Batch:    -----  No access  ------            -----  No access  ------&lt;br /&gt;
Local:    -----  No access  ------            -----  No access  ------&lt;br /&gt;
Dialup:   -----  No access  ------            -----  No access  ------&lt;br /&gt;
Remote:   -----  No access  ------            -----  No access  ------&lt;br /&gt;
Expiration:            (none)    Pwdminimum:  6   Login Fails:     0&lt;br /&gt;
Pwdlifetime:         90 00:00    Pwdchange:      (pre-expired)&lt;br /&gt;
Last Login:            (none) (interactive),            (none) (non-interactive)&lt;br /&gt;
Maxjobs:         0  Fillm:       300  Bytlm:        200000&lt;br /&gt;
Maxacctjobs:     0  Shrfillm:      0  Pbytlm:            0&lt;br /&gt;
Maxdetach:       0  BIOlm:       300  JTquota:        4096&lt;br /&gt;
Prclm:          20  DIOlm:       300  WSdef:         15000&lt;br /&gt;
Prio:            4  ASTlm:       610  WSquo:         30000&lt;br /&gt;
Queprio:         4  TQElm:       610  WSextent:      30000&lt;br /&gt;
CPU:        (none)  Enqlm:      2000  Pgflquo:      250000&lt;br /&gt;
Authorized Privileges:&lt;br /&gt;
  NETMBX       TMPMBX&lt;br /&gt;
Default Privileges:&lt;br /&gt;
  NETMBX       TMPMBX&lt;br /&gt;
Identifier                         Value           Attributes&lt;br /&gt;
  APACHE$APR_ALL                   %X80010002&lt;br /&gt;
%UAF-I-NOMODS, no modifications made to system authorization file&lt;br /&gt;
%UAF-I-RDBNOMODS, no modifications made to rights database&lt;br /&gt;
&lt;br /&gt;
Please verify that this account does not violate any site-specific&lt;br /&gt;
security policy. This account will be enabled and it will have no&lt;br /&gt;
expiration date.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=background:yellow&amp;gt;Is everything satisfactory with the account [YES]:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
PLEASE NOTE:&lt;br /&gt;
&lt;br /&gt;
The APACHE$WWW account was created with the minimum SYSUAF quotas to&lt;br /&gt;
run the server.  On almost all systems, the server should start but&lt;br /&gt;
these parameters will need to be increased to improve performance or&lt;br /&gt;
to keep up with increased demands.&lt;br /&gt;
&lt;br /&gt;
See Release notes for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To operate successfully, the server processes must have read access&lt;br /&gt;
to the installed files and read-write access to certain other files&lt;br /&gt;
and directories.  It is recommended that you use this procedure to&lt;br /&gt;
set the owner UIC on the CSWS files and directories to match the server.&lt;br /&gt;
You should do this each time the product is installed, but it only has&lt;br /&gt;
to be done once for each installation on a cluster.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=background:yellow&amp;gt;Set owner UIC on CSWS files? [YES]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Do you want to enable the impersonation features provided by suEXEC?&lt;br /&gt;
If so, the server will support running CGIs using specified usernames.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=background:yellow&amp;gt;Enable suEXEC? [NO]&amp;lt;/span&amp;gt;&lt;br /&gt;
Setting ownership on files.  This could take a minute or two.  . . .&lt;br /&gt;
&lt;br /&gt;
Disabling suEXEC configuration.  This could take a minute or two.  . . .&lt;br /&gt;
Configuration is complete.  To start the server:&lt;br /&gt;
&lt;br /&gt;
    $ @SYS$STARTUP:APACHE$STARTUP.COM&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* After running the configuration file, you can use the $ SHOW LOGICAL command to see the newly created Apache logicals.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ show logical *apache*&lt;br /&gt;
&lt;br /&gt;
(LNM$PROCESS_TABLE)&lt;br /&gt;
&lt;br /&gt;
(LNM$JOB_892E1D00)&lt;br /&gt;
&lt;br /&gt;
  &amp;quot;APACHE$ODS5_AVAIL&amp;quot; = &amp;quot;1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(LNM$GROUP_000001)&lt;br /&gt;
&lt;br /&gt;
(LNM$SYSTEM_TABLE)&lt;br /&gt;
&lt;br /&gt;
  &amp;quot;APACHE$APR_SHR&amp;quot; = &amp;quot;APACHE$COMMON:[000000]APACHE$APR_SHR.EXE&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$APR_SHRP&amp;quot; = &amp;quot;APACHE$COMMON:[000000]APACHE$APR_SHRP.EXE&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$APU_SHR&amp;quot; = &amp;quot;APACHE$COMMON:[000000]APACHE$APU_SHR.EXE&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$COMMON&amp;quot; = &amp;quot;$1$DGA100:[SYS0.SYSCOMMON.APACHE.]&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$HTTPD_SHR&amp;quot; = &amp;quot;APACHE$COMMON:[000000]APACHE$HTTPD_SHR.EXE&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$ROOT&amp;quot; = &amp;quot;APACHE$SPECIFIC&amp;quot;&lt;br /&gt;
        = &amp;quot;APACHE$COMMON&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$SPECIFIC&amp;quot; = &amp;quot;$1$DGA100:[SYS0.SYSCOMMON.APACHE.SPECIFIC.ELMILE.]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(LNM$SYSCLUSTER_TABLE)&lt;br /&gt;
&lt;br /&gt;
(DECW$LOGICAL_NAMES)&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Automatic Start-up and Shutdown Commands==&lt;br /&gt;
&lt;br /&gt;
In this section we will set up commands for Apache to automatically shut down and start back up when the system is rebooted.&lt;br /&gt;
&lt;br /&gt;
* Edit the file SYS$MANAGER:SYSTARTUP_VMS.COM and insert the following lines towards the bottom of the file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ file := SYS$STARTUP:APACHE$STARTUP.COM&lt;br /&gt;
$ if f$search(&amp;quot;&#039;&#039;file&#039;&amp;quot;) .nes. &amp;quot;&amp;quot; then @&#039;file&#039;&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Next, edit the file SYS$MANAGER:SYSHUTDWN.COM and insert the lines shown below.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ file := SYS$STARTUP:APACHE$SHUTDOWN.COM&lt;br /&gt;
$ if f$search(&amp;quot;&#039;&#039;file&#039;&amp;quot;) .nes. &amp;quot;&amp;quot; then @&#039;file&#039;&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ensuring SYS$SCRATCH Points To ODS-5 Device==&lt;br /&gt;
&lt;br /&gt;
As was explained in the introduction of this installation guide, it is important that Apache is installed on an ODS-5 enabled device. This also holds true for the logical SYS$SCRATCH, which defines a location where Apache can store temporary files; some of these may utilize extended filenames and, thus, require the device where the SYS$SCRATCH directory is located to be ODS-5.&lt;br /&gt;
&lt;br /&gt;
* Verify this with the commands shown below.&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ show logical sys$scratch&lt;br /&gt;
   &amp;quot;SYS$SCRATCH&amp;quot; = &amp;quot;SYS$SYSROOT:[SYSMGR]&amp;quot; (LNM$JOB_892B6E00)&lt;br /&gt;
&lt;br /&gt;
$ show logical SYS$SYSROOT&lt;br /&gt;
   &amp;quot;SYS$SYSROOT&amp;quot; = “&amp;lt;span style=background:yellow&amp;gt;YOURDISK&amp;lt;/span&amp;gt;:[SYS0.]&amp;quot; (LNM$SYSTEM_TABLE)&lt;br /&gt;
        = &amp;quot;SYS$COMMON:&amp;quot;&lt;br /&gt;
1	&amp;quot;SYS$COMMON&amp;quot; = &amp;quot;&amp;lt;span style=background:yellow&amp;gt;YOURDISK&amp;lt;/span&amp;gt;:[SYS0.SYSCOMMON.]&amp;quot; (LNM$SYSTEM_TABLE)&lt;br /&gt;
&lt;br /&gt;
$ show device /full &amp;lt;span style=background:yellow&amp;gt;YOURDISK&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* An easy way to ensure that SYS$SCRATCH always points to an ODS-5 device is to create a scratch directory inside the Apache file structure. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ create/directory apache$root:[000000.SCRATCH] /prot=(s:rwe,o:rwed,g:re) /log&lt;br /&gt;
	%CREATE-I-CREATED, APACHE$SPECIFIC:[000000.SCRATCH] created&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:In the next section, we will define the logical SYS$SCRATCH inside the file APACHE$ROOT: [000000]LOGIN.COM to point to this directory. Since the logical will be defined on the process level, the directory will only be used by Apache.&lt;br /&gt;
&lt;br /&gt;
==Utilizing LOGIN.COM==&lt;br /&gt;
&lt;br /&gt;
Inside the root directory for Apache, you will find APACHE$ROOT:[000000]LOGIN.COM which is executed when CSWS is started. Inside this file, you will find a command procedure that cleans up log files inside Apache’s root directory – these are created each time a subprocess is spawned and tend to fill up the directory over time.&lt;br /&gt;
&lt;br /&gt;
* To activate the command procedure, you will need to first comment out the preceding $ EXIT command. Then specify a version limit you find appropriate for each spawned subprocess; the default is 10. To edit the file, use the $ EDIT command.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ edit APACHE$ROOT:[000000]LOGIN.COM&lt;br /&gt;
$ ! Login.Com for Apache HTTP (WWW) Server&lt;br /&gt;
$ !&lt;br /&gt;
$ &amp;lt;span style=background:yellow&amp;gt;! exit&amp;lt;/span&amp;gt;&lt;br /&gt;
$ !&lt;br /&gt;
$ ! Use the following DCL commands to prevent the APACHE$SPECIFIC:[000000]&lt;br /&gt;
$ ! directory from filling up with old LOG files by limiting the number of&lt;br /&gt;
$ ! versions of each file.&lt;br /&gt;
$ !&lt;br /&gt;
$ temp1 = f$trnlnm(&amp;quot;apache$specific&amp;quot;)&lt;br /&gt;
$ temp2 = f$length(temp1)&lt;br /&gt;
$ temp3 = f$extract(temp2-1,1,temp1)&lt;br /&gt;
$ if (f$extract(temp2-2,1,temp1) .eqs. &amp;quot;.&amp;quot;)&lt;br /&gt;
$ then temp1 = f$extract(0,temp2-2,temp1) + temp3&lt;br /&gt;
$ else temp1 = f$extract(0,temp2-1,temp1) + temp3&lt;br /&gt;
$ endif&lt;br /&gt;
$ set directory &amp;lt;span style=background:yellow&amp;gt;/version_limit=10&amp;lt;/span&amp;gt; &#039;temp1&#039;&lt;br /&gt;
$ !&lt;br /&gt;
$ exit&lt;br /&gt;
$ ! End of file&lt;br /&gt;
[End of file]&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optionally, you can also add the following lines of code prior to the command procedure. The comments to the side explain the purpose of the commands and defined logicals, which can be commented out if you deem them unnecessary. Then bottom command defines the SYS$SCRATCH logical mentioned in the previous section.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ set process/parse = extend			  ! ODS-5 Support&lt;br /&gt;
$ set process/units = bytes                       ! Changes Blocks to bytes, MB, GB etc...&lt;br /&gt;
$ DEFINE DECC$ARGV_PARSE_STYLE ENABLE             ! ODS-5 Support&lt;br /&gt;
$ DEFINE DECC$EFS_CASE_PRESERVE ENABLE            ! ODS-5 Support&lt;br /&gt;
$ DEFINE DECC$FILE_SHARING &amp;quot;TRUE&amp;quot;                 ! Used to aid in Apache Startup optimization&lt;br /&gt;
$ DEFINE DECC$ACL_ACCESS_CHECK &amp;quot;TRUE&amp;quot;             ! Ensure that ACL&#039;s are being honored by CRTL&lt;br /&gt;
$ DEFINE DECC$ALLOW_REMOVE_OPEN_FILES &amp;quot;TRUE&amp;quot;      ! Use for Removing Open Files during shutdown&lt;br /&gt;
$! DEFINE DECC$FILENAME_UNIX_NO_VERSION ENABLE    ! Use this carefully.&lt;br /&gt;
$! DEFINE APACHE$SPL_DISABLED &amp;quot;TRUE&amp;quot;              ! TRUE = ON FALSE = OFF For Troubleshooting startup issues.&lt;br /&gt;
$! DEFINE SYS$SCRATCH APACHE$ROOT:[SCRATCH]       ! Redefining SYS$SCRATCH&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changes to the Main Configuration File==&lt;br /&gt;
&lt;br /&gt;
Before starting up the web server, it is a good idea to specify the DNS name for the server (or the IP-address) in the main configuration file so that you can connect to it. In addition, since the release of version 2.4-48, it is recommended that you define the Mutex directive during the initial configuration; otherwise, directives that require a Mutex to be defined will cause the web server to fail to start.&lt;br /&gt;
&lt;br /&gt;
* Edit the file APACHE$COMMON:[000000.CONF]HTTPD.CONF and scroll down until you find the section where you can define a Mutex directive. By removing the number sign (#), you can activate one of the prewritten directives. In this installation guide we will use vmsdlm (highlighted below).&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Mutex: Allows you to set the mutex mechanism and mutex file directory&lt;br /&gt;
# for individual mutexes, or change the global defaults&lt;br /&gt;
#&lt;br /&gt;
# Uncomment and change the directory if mutexes are file-based and the default&lt;br /&gt;
# mutex file directory is not on a local disk or is not appropriate for some&lt;br /&gt;
# other reason.&lt;br /&gt;
#&lt;br /&gt;
# Mutex default:logs&lt;br /&gt;
# Mutex flock:/apache$root/logs&lt;br /&gt;
# Mutex sem&lt;br /&gt;
&amp;lt;span style=background:yellow&amp;gt;Mutex vmsdlm&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Next, scroll down until you find the directive ServerName. Uncomment it and specify your DNS name (or IP-address if you do not have a DNS name) at port 80.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ edit apache$common:[000000.conf]httpd.conf&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
ServerName example.eng.vmssoftware.com:80&lt;br /&gt;
# Also possible to use IP-address, as shown below&lt;br /&gt;
#ServerName 123.123.1.23:80&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Just above the ServerName directive, you can also change the ServerAdmin directive. Change it to your email address to add yourself as the admin of the server.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
ServerAdmin you@your.address.com&lt;br /&gt;
	&lt;br /&gt;
...&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Press Ctrl-Z to exit the editor and save your changes.&lt;br /&gt;
&lt;br /&gt;
===Optional - Activate Sever-Info and Server-Status===&lt;br /&gt;
&lt;br /&gt;
* Once again, edit the main configuration file APACHE$COMMON:[000000.CONF]HTTPD.CONF and uncomment the two modules shown below (you can find them in the list of modules further down in the document). You will also need to uncomment the directive ExtendedStatus On, which you can find directly beneath the modules.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ edit APACHE$COMMON:[000000.CONF]HTTPD.CONF&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
LoadModule info_module&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
LoadModule status_module&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# ExtendedStatus controls whether Apache will generate &amp;quot;full&amp;quot; status&lt;br /&gt;
# information (ExtendedStatus On) or just basic information (ExtendedStatus&lt;br /&gt;
# Off) when the &amp;quot;server-status&amp;quot; handler is called. The default is Off.&lt;br /&gt;
#&lt;br /&gt;
ExtendedStatus On&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the same configuration file, scroll down until you almost reach the bottom and uncomment the server-status and server-info &amp;lt;Location&amp;gt; directives. Also, make sure that you change the “Allow from” directive to suit your preferred security settings. In this guide, to keep things simple, these directives have been set to “Allow from all”.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Allow server status reports generated by mod_status,&lt;br /&gt;
# with the URL of http://servername/server-status&lt;br /&gt;
# Change the &amp;quot;.example.com&amp;quot; to match your domain to enable.&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;Location /server-status&amp;gt;&lt;br /&gt;
    SetHandler server-status&lt;br /&gt;
    Order deny,allow&lt;br /&gt;
    Deny from all&lt;br /&gt;
    &amp;lt;span style=background:yellow&amp;gt;Allow from all&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Allow remote server configuration reports, with the URL of&lt;br /&gt;
#  http://servername/server-info (requires that mod_info.c be loaded).&lt;br /&gt;
# Change the &amp;quot;.example.com&amp;quot; to match your domain to enable.&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;Location /server-info&amp;gt;&lt;br /&gt;
    SetHandler server-info&lt;br /&gt;
    Order deny,allow&lt;br /&gt;
    Deny from all&lt;br /&gt;
    &amp;lt;span style=background:yellow&amp;gt;Allow from all&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Note:&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt; While these modules are handy when making changes to the web server, they should be disable or password protected at all other times to prevent others from using them.&lt;br /&gt;
&lt;br /&gt;
==Starting Apache==&lt;br /&gt;
&lt;br /&gt;
Having completed the changes to the main configuration file, you can now go ahead and start up the Apache web server.&lt;br /&gt;
&lt;br /&gt;
* Execute the following start-up file to start the server.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ @sys$startup:apache$startup&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To see if the process has started, you can use the command&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ show system /proc=apache*&lt;br /&gt;
OpenVMS V8.4-2L1  on node YOURNODE  28-MAY-2021 06:10:20.81   Uptime  3 22:33:57&lt;br /&gt;
  Pid    Process Name    State  Pri      I/O       CPU       Page flts  Pages&lt;br /&gt;
00000486 APACHE$SWS      LEF      6      822   0 00:00:00.22       862    913&lt;br /&gt;
00000487 APACHE$SWS0000  LEF      5      668   0 00:00:00.27       812    864&lt;br /&gt;
00000488 APACHE$SWS0001  LEF      5      666   0 00:00:00.39       812    863&lt;br /&gt;
00000489 APACHE$SWS0002  LEF      5      666   0 00:00:00.33       812    863&lt;br /&gt;
0000048A APACHE$SWS0003  LEF      5      669   0 00:00:00.36       812    863&lt;br /&gt;
0000048B APACHE$SWS0004  LEF      5      666   0 00:00:00.31       812    863&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:If Apache fails to start, have a look at the log files in APACHE$SPECIFIC:[LOGS] and try to figure out why.&lt;br /&gt;
&lt;br /&gt;
* You can shut down Apache by executing the command below.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ @sys$startup:apache$shutdown.com&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Connecting to your Web Server==&lt;br /&gt;
&lt;br /&gt;
After starting the web server, you should be able to connect to it using the HTTP protocol (HTTPS is not yet set up). This section offers two ways to test your connection.&lt;br /&gt;
&lt;br /&gt;
* The easiest way to test the connection to your server is by simply using a web browser. This will display the default homepage file APACHE$COMMON:[HTDOCS]index.html - a file that consists of a single message written in HTML code saying “It works!”. If you activated the server-info and server-status modules, you can attempt to connect to them as well.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
http://example.eng.vmssoftware.com&lt;br /&gt;
http://example.eng.vmssoftware.com/server-info&lt;br /&gt;
http://example.eng.vmssoftware.com/server/status&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:If your connection fails, shut down Apache and have a look at the log files located in APACHE$SPECIFIC:[LOGS] to figure out why the connection failed.&lt;br /&gt;
&lt;br /&gt;
===Optional – Testing Connection with TELNET===&lt;br /&gt;
&lt;br /&gt;
If you do not have a browser handy, a quick and easy way to test your unencrypted connection and see if your web server is working is to use TELNET.&lt;br /&gt;
&lt;br /&gt;
* To connect to your webserver from the same system using TELNET, use the following commands.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ TELNET 0 80&lt;br /&gt;
%TELNET-I-TRYING, Trying ... 127.0.0.1&lt;br /&gt;
%TELNET-I-SESSION, Session 01, host localhost, port 80&lt;br /&gt;
-TELNET-I-ESCAPE, Escape character is ^]&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;(Press Enter and type the command below)&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;span style=background:yellow&amp;gt;HEAD / HTTP/1.0&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;(Press Enter twice)&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;span style=background:yellow&amp;gt;HTTP/1.1 200 OK&amp;lt;/span&amp;gt;&lt;br /&gt;
Date: Mon, 31 May 2021 10:52:10 GMT&lt;br /&gt;
Server: Apache/2.4.38 (OpenVMS)&lt;br /&gt;
Last-Modified: Fri, 28 May 2021 07:33:23 GMT&lt;br /&gt;
ETag: &amp;quot;2d-5c35ee3fe76c0&amp;quot;&lt;br /&gt;
Accept-Ranges: bytes&lt;br /&gt;
Content-Length: 45&lt;br /&gt;
Connection: close&lt;br /&gt;
Content-Type: text/html; charset=ISO-8859-1&lt;br /&gt;
&lt;br /&gt;
%TELNET-S-REMCLOSED, Remote connection closed&lt;br /&gt;
-TELNET-I-SESSION, Session 01, host localhost, port 80&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Instead of using “HEAD / HTTP/1.0”, you can also try to use “GET /index.html HTTP/1.0” if you want to GET your index.html file.&lt;br /&gt;
&lt;br /&gt;
==Flushing the Memory==&lt;br /&gt;
&lt;br /&gt;
When you shut down Apache, the memory is automatically flushed to disk so that you can review the log files. It is not always convenient, however, to shut down the web server every time you need to have a look at the log files, which is why it could be useful to know how to manually flush the memory.&lt;br /&gt;
&lt;br /&gt;
* First, you need to run the command procedure shown below to define the necessary symbol.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ @apache$root:[000000]apache$setup.com&lt;br /&gt;
$ show sym httpd&lt;br /&gt;
  HTTPD == &amp;quot;$ APACHE$COMMON:[000000]APACHE$HTTPD.EXE&amp;quot;&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Next, to find out how to use the httpd utility, type it in at the command prompt followed by the -h flag for help.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ httpd -h&lt;br /&gt;
Usage: APACHE$HTTPD.EXE;1	[-D name] [-d directory] [-f file]&lt;br /&gt;
 				[-C &amp;quot;directive&amp;quot;] [-c &amp;quot;directive&amp;quot;]&lt;br /&gt;
[-k start|restart|graceful|graceful-stop|stop|flush]&lt;br /&gt;
[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S]&lt;br /&gt;
Options:&lt;br /&gt;
  -D name            : define a name for use in &amp;lt;IfDefine name&amp;gt; directives&lt;br /&gt;
  -d directory       : specify an alternate initial ServerRoot&lt;br /&gt;
  -f file            : specify an alternate ServerConfigFile&lt;br /&gt;
  -C &amp;quot;directive&amp;quot;     : process directive before reading config files&lt;br /&gt;
  -c &amp;quot;directive&amp;quot;     : process directive after reading config files&lt;br /&gt;
  -e level           : show startup errors of level (see LogLevel)&lt;br /&gt;
  -E file            : log startup errors to file&lt;br /&gt;
  -v                 : show version number&lt;br /&gt;
  -V                 : show compile settings&lt;br /&gt;
  -h                 : list available command line options (this page)&lt;br /&gt;
  -l                 : list compiled in modules&lt;br /&gt;
  -L                 : list available configuration directives&lt;br /&gt;
  -t -D DUMP_VHOSTS  : show parsed vhost settings&lt;br /&gt;
  -t -D DUMP_RUN_CFG : show parsed run settings&lt;br /&gt;
  -S                 : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG&lt;br /&gt;
  -t -D DUMP_MODULES : show all loaded modules&lt;br /&gt;
  -M                 : a synonym for -t -D DUMP_MODULES&lt;br /&gt;
  -t -D DUMP_INCLUDES: show all included configuration files&lt;br /&gt;
  -t                 : run syntax check for config files&lt;br /&gt;
  -T                 : start without DocumentRoot(s) check&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To flush the memory to disk, use the -k flag followed by the keyword “flush”.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ httpd -k flush&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Setting Up HTTPS Support for Apache==&lt;br /&gt;
&lt;br /&gt;
In this part of the configuration, you will first create a self-signed certificate with OpenSSL and then change the configuration settings to allow for HTTPS connections to the Apache web server. This section assumes that SSL111 (not SSL or SSL1) is already installed on your system. You can confirm this with the $ PRODUCT SHOW PRODUCT command.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ prod show prod ssl111&lt;br /&gt;
------------------------------------ ----------- ---------&lt;br /&gt;
PRODUCT                              KIT TYPE    STATE&lt;br /&gt;
------------------------------------ ----------- ---------&lt;br /&gt;
VSI I64VMS SSL111 V1.1-1IA           Full LP     Installed&lt;br /&gt;
------------------------------------ ----------- ---------&lt;br /&gt;
&lt;br /&gt;
1 item found&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating a Self-Signed Certificate===&lt;br /&gt;
&lt;br /&gt;
To create a self-signed certificate, it is easiest to use the built-in utility APACHE$COMMON:[000000]APACHE$CREATE_ROOT.COM, which will guide you through the process (will create directories).&lt;br /&gt;
&lt;br /&gt;
* Run the command procedure APACHE$CERT_TOOL.COM and answer the questions to create your self-signed certificate:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
1. View a Certificate&lt;br /&gt;
&lt;br /&gt;
2. View a Certificate Request&lt;br /&gt;
&lt;br /&gt;
3. Create a Certificate Request&lt;br /&gt;
&lt;br /&gt;
4. Create a Self-Signed Certificate&lt;br /&gt;
&lt;br /&gt;
5. Create a Certificate Authority&lt;br /&gt;
&lt;br /&gt;
6. Sign a Certificate Request&lt;br /&gt;
&lt;br /&gt;
7. Hash Certificate Authorities&lt;br /&gt;
&lt;br /&gt;
8. Hash Certificate Revocations&lt;br /&gt;
&lt;br /&gt;
9. Exit&lt;br /&gt;
&lt;br /&gt;
Enter Option: &amp;lt;span style=background:yellow&amp;gt;4&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
Encrypt Private Key ? [N]&lt;br /&gt;
Encryption Bits ? [1024] &amp;lt;span style=background:yellow&amp;gt;2048&amp;lt;/span&amp;gt;&lt;br /&gt;
Certificate Key File ? [OPENSSL_ROOT:[KEY]SERVER.KEY] &amp;lt;span style=background:yellow&amp;gt;apache$root:[conf.ssl_key]server.key&amp;lt;/span&amp;gt;&lt;br /&gt;
Certificate File ? [OPENSSL_ROOT:[CRT]SERVER.CRT] &amp;lt;span style=background:yellow&amp;gt;apache$root:[conf.ssl_crt]server.crt&amp;lt;/span&amp;gt;&lt;br /&gt;
Country Name ? [US]&lt;br /&gt;
State or Province Name ? [Massachusetts]&lt;br /&gt;
City Name ? [Burlington]&lt;br /&gt;
Organization Name ? [VMS SOFTWARE INC.]&lt;br /&gt;
Organization Unit Name ? [OPENVMS SUPPORT]&lt;br /&gt;
Common Name ? [example.eng.vmssoftware.com]&lt;br /&gt;
Email Address ? [you@your.address]&lt;br /&gt;
Display the Certificate ? [N] Y&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Pay special attention to the portions of the certificate creation that are highlighted in yellow. It is recommended that you use 2048 encryption bits instead of the default 1024. Furthermore, you also need to place the key and certificate files inside the Apache file structure.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;A comment about self-signed certificates:&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt; Recently, using self-signed certificates has become increasingly difficult. It is possible that, although HTTPS is set up correctly for Tomcat, the browser refuses the connection. If so, you may wish to try another browser, choose some other method to test your connection, or obtain a valid certificate from a Certificate Authority.&lt;br /&gt;
&lt;br /&gt;
===Configuring HTTPS===&lt;br /&gt;
&lt;br /&gt;
With key and certificate in hand, you can now configure Apache to allow for HTTPS connections.&lt;br /&gt;
&lt;br /&gt;
* First edit the main configuration file APACHE$COMMON:[000000.CONF]HTTPD.CONF and, at the very bottom of the file, uncomment the Include directive that imports SSL-specific configuration directives from the file APACHE$ROOT:[CONF]SSL.CONF.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ edit apache$common:[000000.conf]httpd.conf&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
Include /apache$root/conf/ssl.conf&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Next, edit APACHE$ROOT:[CONF]SSL.CONF and add the correct pathways to your key and certificate files. If you have obtained a certificate from a Certificate Authority, you can also specify the certificate chain file here. Alternatively, you might have a bundle file that contains key, certificate, and certificate chain file all together that you can specify instead.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ edit apache$root:[conf]ssl.conf&lt;br /&gt;
#   Server Certificate:&lt;br /&gt;
#   Point SSLCertificateFile at a PEM encoded certificate.  If&lt;br /&gt;
#   the certificate is encrypted, then you will be prompted for a&lt;br /&gt;
#   pass phrase.  Note that a kill -HUP will prompt again. A test&lt;br /&gt;
#   certificate can be generated with `make certificate&#039; under&lt;br /&gt;
#   built time. Keep in mind that if you&#039;ve both a RSA and a DSA&lt;br /&gt;
#   certificate you can configure both in parallel (to also allow&lt;br /&gt;
#   the use of DSA ciphers, etc.)&lt;br /&gt;
SSLCertificateFile &amp;lt;span style=background:yellow&amp;gt;/apache$root/conf/ssl_crt/server.crt&amp;lt;/span&amp;gt;&lt;br /&gt;
#SSLCertificateFile /apache$root/conf/ssl_crt/server-dsa.crt&lt;br /&gt;
&lt;br /&gt;
#   Server Private Key:&lt;br /&gt;
#   If the key is not combined with the certificate, use this&lt;br /&gt;
#   directive to point at the key file.  Keep in mind that if&lt;br /&gt;
#   you&#039;ve both a RSA and a DSA private key you can configure&lt;br /&gt;
#   both in parallel (to also allow the use of DSA ciphers, etc.)&lt;br /&gt;
SSLCertificateKeyFile &amp;lt;span style=background:yellow&amp;gt;/apache$root/conf/ssl_key/server.key&amp;lt;/span&amp;gt;&lt;br /&gt;
#SSLCertificateKeyFile /apache$root/conf/ssl_key/server-dsa.key&lt;br /&gt;
&lt;br /&gt;
#   Server Certificate Chain:&lt;br /&gt;
#   Point SSLCertificateChainFile at a file containing the&lt;br /&gt;
#   concatenation of PEM encoded CA certificates which form the&lt;br /&gt;
#   certificate chain for the server certificate. Alternatively&lt;br /&gt;
#   the referenced file can be the same as SSLCertificateFile&lt;br /&gt;
#   when the CA certificates are directly appended to the server&lt;br /&gt;
#   certificate for convinience.&lt;br /&gt;
#SSLCertificateChainFile /apache$root/conf/ssl_crt/ca.crt&lt;br /&gt;
&lt;br /&gt;
#   Certificate Authority (CA):&lt;br /&gt;
#   Set the CA certificate verification path where to find CA&lt;br /&gt;
#   certificates for client authentication or alternatively one&lt;br /&gt;
#   huge file containing all of them (file must be PEM encoded)&lt;br /&gt;
#   Note: Inside SSLCACertificatePath you need hash symlinks&lt;br /&gt;
#         to point to the certificate files. Use the provided&lt;br /&gt;
#         Makefile to update the hash symlinks after changes.&lt;br /&gt;
#SSLCACertificatePath /apache$root/conf/ssl_crt&lt;br /&gt;
#SSLCACertificateFile /apache$root/conf/ssl_crt/&amp;lt;span style=background:yellow&amp;gt;DigiCertCA.crt&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Above, a self-signed certificate has been used and, so, only the paths to the key and certificate files have been specified (highlighted in yellow above). If you have acquired your certificate from a certificate authority, you might also need to add the CA Certificate File using the SSLCACertificateFile directive (highlighted in yellow at the end of the output above).&lt;br /&gt;
&lt;br /&gt;
* Finally, restart the web server to implement the changes and connect to your web server via HTTPS. If the connection fails, you will need to review the log files and try to figure out why.&lt;br /&gt;
&lt;br /&gt;
===Optional – Convert Key and Certificate to DER Encoding===&lt;br /&gt;
&lt;br /&gt;
The key and certificate created earlier are in a PEM format. This means that if you edit the files, or type them out, you can see the characters and numbers in the encrypted files as plain text, though, they remain humanly unreadable. It is possible, however, to convert the files to other formats, such as DER, for encoding purposes. Once converted to DER encoding, the files are no longer readable and appears to be in a binary format. Sometimes, it is also convenient to combine the key, certificate, and CA certificate into one single file.&lt;br /&gt;
&lt;br /&gt;
* To convert the certificate and key from PEM to DER encoding, use the following commands.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ openssl x509 -outform der -in apache$specific:[conf.ssl_crt]server.crt -out -&lt;br /&gt;
_$ apache$specific:[conf.ssl_crt]server_crt.der&lt;br /&gt;
$ openssl rsa -outform der -in apache$specific:[conf.ssl_key]server.key -out -&lt;br /&gt;
_$ apache$specific:[conf.ssl_key]server_key.der&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
View the DER encoded certificates and keys with the commands&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ openssl x509 -in apache$specific:[conf.ssl_crt]server_crt.der -inform der -text -noout&lt;br /&gt;
$ openssl rsa -in apache$specific:[conf.ssl_key]server_key.der -inform der -text -noout&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you get the following error when viewing your encoded certificate, it means that you are trying to view a DER encoded certificate when your certificate is in fact PEM encoded.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
unable to load certificate&lt;br /&gt;
12626:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:647:Expecting: TRUSTED CERTIFICATE&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:If you get the following error, it means that you are trying to view a PEM encoded certificate with a command meant for DER encoded certificates.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
unable to load certificate.&lt;br /&gt;
13978:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:1306:&lt;br /&gt;
13978:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1&lt;br /&gt;
error:tasn_dec.c:380:Type=X509&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To transform a DER encoded certificate and key to the PEM format, use&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ openssl x509 -inform der -in apache$specific:[conf.ssl_crt]server_crt.der -out -&lt;br /&gt;
_$ apache$specific:[conf.ssl_crt]server_crt.pem&lt;br /&gt;
&lt;br /&gt;
$ openssl rsa -inform der -in apache$specific:[conf.ssl_key]server_key.der -out -&lt;br /&gt;
_$ apache$specific:[conf.ssl_key]server_key.pem&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To now view the certificate and key files in the PEM format, use&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ openssl x509 -in cert.pem -inform pem -text -noout&lt;br /&gt;
$ openssl rsa -in key.pem  -inform pem -text -noout&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In some cases, it is advantageous to combine multiple pieces of the X.509 infrastructure into a single file. One common example would be to combine both the private key and public key into the same certificate. The easiest way to combine certificates, keys and chains is to convert each of them to PEM format and then copy the contents of each file into a new file.  This is suitable for combining files to use in applications like Apache. &lt;br /&gt;
&lt;br /&gt;
:On OpenVMS you can combine PEM format self-signed certificates and keys with the DCL command $ APPEND. Below, the contents of the key file and the certificate file are appended to the new, empty file cert_and_key.pem.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ create apache$specific:[conf.ssl_crt]cert_and_key.pem&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;(Press Ctrl-Z)&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ append apache$specific:[conf.ssl_key]server_key.pem, - &lt;br /&gt;
_$ apache$specific:[conf.ssl_crt]server_crt.pem – &lt;br /&gt;
_$ apache$specific:[conf.ssl_crt]cert_and_key.pem&lt;br /&gt;
%APPEND-W-INCOMPAT, APACHE$SPECIFIC:[sslkeys]server.key;1 (input) and APACHE$SPECIFIC:[sslcerts]cert_and_key2.pem;1 (output) have incompatible attributes&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:If you have obtained your certificate from a Certificate Authority, you can append your PEM format key, certificate, and CA certificate to a new empty file with&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ append apache$specific:[conf.ssl_key]server_key.pem, -&lt;br /&gt;
_$ apache$specific:[conf.ssl_crt]server_crt.pem, - &lt;br /&gt;
_$ apache$specific:[conf.ssl_crt]CAcrt.pem – &lt;br /&gt;
_$ apache$specific:[conf.ssl_crt]cert_key_and_CA.pem&lt;br /&gt;
%APPEND-W-INCOMPAT, APACHE$SPECIFIC:[sslkeys]server_key.pem;1 (input) and APACHE$SPECIFIC:[sslcerts]]cert_key_and_CA.pem;1 (output) have incompatible attributes&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Note:&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; The combined key and certificate files must be in the PEM format. Converting to DER encoding after combining these files will not be successful as only the certificate will remain after the conversion.&lt;br /&gt;
&lt;br /&gt;
===Optional – Testing HTTPS Connection Using OpenSSL===&lt;br /&gt;
&lt;br /&gt;
If you cannot access your web server through a browser, or simply do not have one handy, a quick and easy way to see if HTTPS is working is to test the connection using OpenSSL. This section will walk you through how to do just that.&lt;br /&gt;
&lt;br /&gt;
* Start up SSL111 (OpenSSL) and enable the environment.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ @sys$startup:ssl111$startup.com&lt;br /&gt;
$ @ssl111$root:[com]ssl111$utils.com define&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Then, use the command below to see if you can establish an HTTPS connection. Make sure you specify the correct DNS name and port for your server.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ OpenSSL s_client “-connect” example.eng.vmssoftware.com:443 “-showcerts” “-state”&lt;br /&gt;
&amp;lt;span style=background:yellow&amp;gt;CONNECTED(00000003)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SSL_connect:before SSL initialization&lt;br /&gt;
SSL_connect:SSLv3/TLS write client hello&lt;br /&gt;
SSL_connect:SSLv3/TLS write client hello&lt;br /&gt;
SSL_connect:SSLv3/TLS read server hello&lt;br /&gt;
SSL_connect:TLSv1.3 read encrypted extensions&lt;br /&gt;
...&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Optional - Setting up PHP for Apache==&lt;br /&gt;
&lt;br /&gt;
This section will show you how to set up PHP for web development with Apache; to complete it, you need to already have PHP installed on your system.&lt;br /&gt;
&lt;br /&gt;
===Loading PHP module===&lt;br /&gt;
&lt;br /&gt;
The first thing you need to do is to load the PHP module in the Apache’s main configuration file.&lt;br /&gt;
&lt;br /&gt;
* Copy over the file PHP$ROOT:[csws]mod_php5.exe to the directory where Apache stores its modules. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ copy php$root:[csws]mod_php5.exe apache$common:[modules] /log&lt;br /&gt;
%COPY-S-COPIED, PHP$ROOT:[csws]mod_php5.exe;1 copied to APACHE$COMMON:[modules]mod_php5.exe;1 (79KB)&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To import the module, you need to make some changes in the main configuration file. A common and convenient practice is to keep the configuration for PHP separate, as was the case earlier in this document for SSL. Use the $ EDIT command to create the file APACHE$COMMON: [CONF]mod_php.conf and paste the lines below into the file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ edit apache$common:[conf]mod_php.conf&lt;br /&gt;
## Load PHP module&lt;br /&gt;
       LoadModule php5_module modules/mod_php5.exe&lt;br /&gt;
## Define types to be associated with MOD_PHP&lt;br /&gt;
       AddType application/x-httpd-php .php .phtml&lt;br /&gt;
       AddType application/x-httpd-php-source .phps&lt;br /&gt;
[End of file]&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To incorporate these changes, add the following line at the very bottom of the main configuration file.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ edit apache$common:[conf]httpd.conf&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
Include /apache$root/conf/mod_php.conf&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The last thing you need to do is restart Apache to load the changes in the main configuration file. &lt;br /&gt;
&lt;br /&gt;
===A PHP Example===&lt;br /&gt;
&lt;br /&gt;
Now that PHP has been set up with Apache, you can try to create a .php file and attempt to load it in your web browser. However, you need to make sure that the .php files have the correct file format Stream_LF in order for them to load correctly.&lt;br /&gt;
&lt;br /&gt;
* First create a test file in the APACHE$SPECIFIC:[HTDOCS] directory with the .php extension and fill it with some PHP code.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ create apache$specific:[htdocs]test.php&lt;br /&gt;
&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
echo &amp;quot;Testing the PHPINFO () function&amp;lt;br&amp;gt;\n&amp;quot;;&lt;br /&gt;
phpinfo (INFO_ALL);       &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;(Press Ctrl-Z)&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Next, convert the file from the file format Variable Length to Stream_LF. There are several ways to do this on OpenVMS, the easiest of which to use the built-in utility that comes with the Apache installation APACHE$ROOT:[000000]APACHE$CONVERT_STREAMLF.COM. Though, to convert .php files, we first need to make some changes to APACHE$ROOT:[000000]APACHE$CVT _TYPES.DAT. Edit the file and add the line highlighted in yellow below.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ edit apache$root:[000000]APACHE$CVT_TYPES.DAT&lt;br /&gt;
# APACHE$CVT_TYPES.DAT&lt;br /&gt;
#&lt;br /&gt;
#       File types that get converted by APACHE$CONVERT_STREAMLF.COM&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
.HTM*           #All HTML files (.HTM, .HTML, .HTML.FR, etc)&lt;br /&gt;
.SHTML          #Server-side includes&lt;br /&gt;
.TXT            #All TXT files&lt;br /&gt;
&amp;lt;span style=background:yellow&amp;gt;.PHP            #All PHP Scripts&amp;lt;/span&amp;gt;&lt;br /&gt;
[End of file]&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Now, run APACHE$ROOT:[000000]APACHE$CONVERT_STREAMLF.COM to convert your .php file. The command procedure will ask you for the top directory for all the files you want to convert to Stream_LF, which in our case is APACHE$SPECIFIC:[HTDOCS] (highlighted in yellow).&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ @apache$root:[000000]apache$convert_streamlf.com&lt;br /&gt;
Top Directory: &amp;lt;span style=background:yellow&amp;gt;apache$specific:[htdocs]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Starting conversion of apache$specific:[htdocs...]&lt;br /&gt;
This could take a while...&lt;br /&gt;
&lt;br /&gt;
Conversions complete.&lt;br /&gt;
  See SYS$SCRATCH:Convert_Dir.Log for a log of transactions.&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This will create a new version of your php file, the file format of which you can find out with the command shown below.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ dir apache$specific:[htdocs]test.php;2 /full&lt;br /&gt;
&lt;br /&gt;
Directory APACHE$SPECIFIC:[HTDOCS]&lt;br /&gt;
&lt;br /&gt;
test.php;2                    File ID:  (11941,32,0)&lt;br /&gt;
Size:       0.50KB/8KB        Owner:    [APACHE$WWW]&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
Record format:      &amp;lt;span style=background:yellow&amp;gt;Stream_LF&amp;lt;/span&amp;gt;, maximum 0 bytes, longest 43 bytes&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* As a last step, load the file in your browser by visiting your relevant address.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
https://example.eng.vmssoftware.com/test.php&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* After testing the test.php file, you should delete it since it lists sensitive information about your server.&lt;br /&gt;
&lt;br /&gt;
=Removal=&lt;br /&gt;
&lt;br /&gt;
To completely remove Apache (and all its files), do the following:&lt;br /&gt;
&lt;br /&gt;
* Shut down Apache.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ @sys$startup:apache$shutdown&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Before you uninstall Apache, you should take note of where Apache is installed by taking a look at the Apache logicals. These will be removed with the removal of Apache.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ show logical *apache*&lt;br /&gt;
&lt;br /&gt;
(LNM$PROCESS_TABLE)&lt;br /&gt;
&lt;br /&gt;
(LNM$JOB_892E1D00)&lt;br /&gt;
&lt;br /&gt;
  &amp;quot;APACHE$ODS5_AVAIL&amp;quot; = &amp;quot;1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(LNM$GROUP_000001)&lt;br /&gt;
&lt;br /&gt;
(LNM$SYSTEM_TABLE)&lt;br /&gt;
&lt;br /&gt;
  &amp;quot;APACHE$APR_SHR&amp;quot; = &amp;quot;APACHE$COMMON:[000000]APACHE$APR_SHR.EXE&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$APR_SHRP&amp;quot; = &amp;quot;APACHE$COMMON:[000000]APACHE$APR_SHRP.EXE&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$APU_SHR&amp;quot; = &amp;quot;APACHE$COMMON:[000000]APACHE$APU_SHR.EXE&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$COMMON&amp;quot; = &amp;quot;&amp;lt;span style=background:yellow&amp;gt;YOURDISK&amp;lt;/span&amp;gt;:[SYS0.SYSCOMMON.APACHE.]&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$HTTPD_SHR&amp;quot; = &amp;quot;APACHE$COMMON:[000000]APACHE$HTTPD_SHR.EXE&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$ROOT&amp;quot; = &amp;quot;APACHE$SPECIFIC&amp;quot;&lt;br /&gt;
        = &amp;quot;APACHE$COMMON&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$SPECIFIC&amp;quot; = &amp;quot;&amp;lt;span style=background:yellow&amp;gt;YOURDISK&amp;lt;/span&amp;gt;:[SYS0.SYSCOMMON.APACHE.SPECIFIC.&amp;lt;span style=background:yellow&amp;gt;YOURNODE&amp;lt;/span&amp;gt;.]&amp;quot;&lt;br /&gt;
  &amp;quot;APACHE$VSIKITS&amp;quot; = &amp;quot;DSA0:[000000.]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(LNM$SYSCLUSTER_TABLE)&lt;br /&gt;
&lt;br /&gt;
(DECW$LOGICAL_NAMES)&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Uninstall Apache using the command below. If you want to completely remove Apache, you will want to answer “YES” to deleting the Apache Htdocs &amp;amp; Icons directory trees. The response is highlighted in yellow in the output.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ product remove csws&lt;br /&gt;
&lt;br /&gt;
The following product has been selected:&lt;br /&gt;
    VSI I64VMS CSWS V2.4-38D               Layered Product&lt;br /&gt;
&lt;br /&gt;
Do you want to continue? [YES]&lt;br /&gt;
&lt;br /&gt;
The following product will be removed from destination:&lt;br /&gt;
    VSI I64VMS CSWS V2.4-38D               DISK$SYS1:[VMS$COMMON.]&lt;br /&gt;
&lt;br /&gt;
Portion done: 0%&lt;br /&gt;
&lt;br /&gt;
Deleting the Apache Htdocs &amp;amp; Icons directory trees will remove ALL user&lt;br /&gt;
data stored within.&lt;br /&gt;
&lt;br /&gt;
Delete the Apache Htdocs &amp;amp; Icons directory trees ? [NO]: &amp;lt;span style=background:yellow&amp;gt;YES&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  This could take a minute or two.  . . .&lt;br /&gt;
&lt;br /&gt;
...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%&lt;br /&gt;
&lt;br /&gt;
The following product has been removed:&lt;br /&gt;
    VSI I64VMS CSWS V2.4-38D               Layered Product&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you wish to do a complete removal of Apache, you should know that there are still files located in APACHE$ROOT:[000000], which itself is a search list consisting of APACHE$COMMON:[000000] and APACHE$SPECIFIC:[000000], that have not been removed. Since these logicals are now gone, you will need to use the locations from the $ SHOW LOGICAL *APACHE* command you used earlier. &lt;br /&gt;
&lt;br /&gt;
To remove the entire APACHE$COMMON directory tree (and APACHE$SPECIFIC as it is located in the same directory structure), you can use the $ DELETE /TREE command. However, because all files are deleted without mercy, you need to be very careful and make sure you do not delete any important files by mistake. Use this command at your own risk.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;lt;!----&amp;gt;&amp;gt;&lt;br /&gt;
$ delete /tree &amp;lt;span style=background:yellow&amp;gt;YOURDISK&amp;lt;/span&amp;gt;:[SYS0.SYSCOMMON.APACHE...]*.*;* /log&lt;br /&gt;
%DELETE-I-FILDEL, YOURDISK:[SYS0.SYSCOMMON.APACHE]APACHE$CONFIG.DAT;1 deleted (8KB)&lt;br /&gt;
%DELETE-I-FILDEL, YOURDISK:[SYS0.SYSCOMMON.APACHE]LOGIN.COM;6 deleted (8KB)&lt;br /&gt;
%DELETE-I-FILDEL, YOURDISK:[SYS0.SYSCOMMON.APACHE]LOGIN.COM;5 deleted (8KB)&lt;br /&gt;
...&lt;br /&gt;
$ delete $1$DGA100:[SYS0.SYSCOMMON]APACHE.DIR;1 /conf&lt;br /&gt;
DELETE $1$DGA100:[SYS0.SYSCOMMON]APACHE.DIR;1 ? [N]: Y&lt;br /&gt;
$ delete /tree SYS$SYSDEVICE:[APACHE...] /log&lt;br /&gt;
%DELETE-I-FILDEL, SYS$SYSDEVICE:[APACHE]APACHE$CONFIG.DAT;1 deleted (8KB)&lt;br /&gt;
%DELETE-I-FILDEL, SYS$SYSDEVICE:[APACHE.OPENSSL.COM]OPENSSL_EXIT_CMD.TPU;1 deleted &lt;br /&gt;
(8KB)&lt;br /&gt;
%DELETE-I-FILDEL, SYS$SYSDEVICE:[APACHE.SPECIFIC.YOURNODE]APACHE$HTTPD.DMP;1 deleted &lt;br /&gt;
(42.58MB)&lt;br /&gt;
...&lt;br /&gt;
$ delete SYS$SYSDEVICE:[000000]APACHE.DIR;1 /conf&lt;br /&gt;
DELETE SYS$SYSDEVICE:[000000]APACHE.DIR;1 ? [N]: Y&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The last remnants of Apache are its username APACHE$WWW inside the SYSUAF and any Apache logicals that you may have defined. First, delete the username account.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ mcr authorize&lt;br /&gt;
UAF&amp;gt; remove apache$www&lt;br /&gt;
%UAF-I-REMMSG, record removed from system authorization file&lt;br /&gt;
%UAF-I-RDBREMMSGU, identifier APACHE$WWW value [000200,000201] removed from rights &lt;br /&gt;
database&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Then, to delete the logicals, use the DEASSIGN command.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
$ deassign /job APACHE$ODS5_AVAIL&lt;br /&gt;
$ deassign /sys APACHE$VSIKITS&lt;br /&gt;
$ show logical *apache*&lt;br /&gt;
&lt;br /&gt;
(LNM$PROCESS_TABLE)&lt;br /&gt;
&lt;br /&gt;
(LNM$JOB_892E1D00)&lt;br /&gt;
&lt;br /&gt;
(LNM$GROUP_000001)&lt;br /&gt;
&lt;br /&gt;
(LNM$SYSTEM_TABLE)&lt;br /&gt;
&lt;br /&gt;
(LNM$SYSCLUSTER_TABLE)&lt;br /&gt;
&lt;br /&gt;
(DECW$LOGICAL_NAMES)&lt;br /&gt;
%SHOW-S-NOTRAN, no translation for logical name *APACHE*&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Vmsnick</name></author>
	</entry>
</feed>