Upgrading From Apache
Upgrading to Stronghold Web Server 4.0 from an Apache Web Server 1.3 involves:
- Copying all customized files from the old server directory tree to the new Stronghold 4.0 directory tree.
- Adding custom configurations from old server configuration file to new server configuration file.
- Modifying the new server configuration file (custom sections) to incorporate SSL support where necessary.
- Stopping the old server and starting the new one with your old site files and modified server configuration file in place.
To Upgrade From an Apache Web Server
- Install Stronghold 4.0 into a new directory, using the instructions in Installing Stronghold Web Server.
- Copy the contents of the old ServerRoot/cgi-bin/ directory into the Stronghold 4.0 www/cgi-bin/ directory.
- Copy the contents of the old ServerRoot/htdocs/ directory into the Stronghold 4.0 www/htdocs/ directory.
Take care not to overwrite Stronghold 4.0 documentation files.
- Copy the contents of the old ServerRoot/conf/ directory into the Stronghold 4.0 conf/ directory.
Take care not to overwrite Stronghold 4.0 files.
- Create a new subdirectory in the Stronghold 4.0 logs/ directory for storing your old log files:
# mkdir ServerRoot/var/log/old
- Copy the contents of the old ServerRoot/logs/ directory into the new
Stronghold 4.0 ServerRootvar/log/old/ directory.
- Open both the old and new server configuration files using a text editor in separate windows.
- Copy and paste any custom configurations from the old file into the new file.
To configure additional virtual hosts as SSL virtual hosts, add SSL directives to each additional <VirtualHost> section.
See the Apache Desktop Reference for the new SSL directives.
- Save the modified server configuration file.
- Stop the old server with: apachectl stop
- Start the new server with the ServerRoot/bin/start-server script.