From 1411239a3cd1649a30f4ff6314e65aaf6b232d88 Mon Sep 17 00:00:00 2001 From: bdmc Date: Wed, 8 Sep 2021 17:34:15 -0400 Subject: [PATCH] Added editing of Apache site file. --- source/devtest.rst | 65 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 52 insertions(+), 13 deletions(-) diff --git a/source/devtest.rst b/source/devtest.rst index d0d6c73..2f87417 100644 --- a/source/devtest.rst +++ b/source/devtest.rst @@ -92,10 +92,18 @@ Since CAcert's current production systems are running on ten-year-old versions o Debian, for any bug fixing or enhancements to the current system, we need to try and reproduce that environment as much as possible. -For that reason, I am specifying Debian 8, Jessie, as our standard Development -Environment, since it is the oldest still supported version of Debian. If absolutely -necessary, we could experiment by downloading older CD versions of Debian, but for -now, let us use Jessie. +For that reason, I am specifying +Debian 7, Stretch, as our standard Development Environment, even though +Debian 8, Jessie, is the oldest still supported version of Debian. + +During experimentation, I found that Debian 6 could not be used after +installation, since a critical part of our environment, *git* from that +version of Debian, will not work with GitHUB or other parts of our +ecosystem. + +I also found that PHP 5 is still standard in Debian 7, where it is +not in Debian 8, but has been replaced with PHP 7. + Creating our Development and Test Platform ++++++++++++++++++++++++++++++++++++++++++ @@ -116,7 +124,7 @@ First Installation Steps * Aptitude - I prefer the command line version of aptitude to apt-get, so install it on every machine that I build. - - Once it has been installed, do: + - It comes pre-installed in Debian 7, so do: + aptitude update + aptitude safe-upgrade - And then install the following tools with "aptitude install vim git rsync" @@ -147,7 +155,7 @@ MySQL 5 is a normal part of Debian 7, so does not require any special effort to * Installing MySQL - aptitude update - - aptitude install mysql-5.5-server mysql-client + - aptitude install mysql-server-5.5 mysql-client Installing Mail and MailHog @@ -169,34 +177,65 @@ Apache ++++++ * Editing Virtual Host + - cd + - cd tools + - wget setenv.conf + + vim setenv.conf + + *Some of the values in this file need to be set for your environment, others can be left* + - cd /etc/apache2/sites-available + - sudo vim default + - *duplicate the /var/www/html Directory block* + - *change /var/www/html in one of them to your cacert directory followed by: cacert-devel/www* + - Set the Document Root to that same directory, like: /home//cacert/cacert-devel/www + - Read the file *setenv.conf* from your tools directory into a blank space in *default* between + the ** branches +related to their work. + +* cd +* cd cacert +* git clone https://github.com/CAcertOrg/cacert-devel.git +* git checkout + Any More Steps ++++++++++++++ -Starting Development --------------------- +At this point, you now should have a working VM ready to start work. + + +Starting a Development Session +------------------------------ Starting MailHog ++++++++++++++++ +The first step in any development session is to start MailHog running, +since Exim4 and Apache will start when the VM start. + + Etc ---