This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sysadmin:dokuwiki:dokuwiki_install_aws_ec2 [2020/10/07 17:32] vidyasb |
sysadmin:dokuwiki:dokuwiki_install_aws_ec2 [2020/10/07 20:09] (current) vidyasb |
||
---|---|---|---|
Line 12: | Line 12: | ||
sudo amazon-linux-extras install -y php7.2 | sudo amazon-linux-extras install -y php7.2 | ||
</ | </ | ||
- | - Run the following Linux shell command to install [[https:// | + | - Run the following Linux shell command to install [[https:// |
sudo yum -y install httpd php-xml mod_ssl | sudo yum -y install httpd php-xml mod_ssl | ||
</ | </ | ||
- | - Edit **httpd.conf** file by running '' | + | - Edit **httpd.conf** file by running '' |
- | Listen | + | Replace //<<Server Administrator Email address>>// |
+ | Replace //<< | ||
+ | </ | ||
+ | #Listen 80 | ||
ServerAdmin << | ServerAdmin << | ||
ServerName << | ServerName << | ||
Line 25: | Line 28: | ||
</ | </ | ||
</ | </ | ||
- | - | + | - Run the following Linux shell command to enable Apache httpd server to start at boot as well as immediately:< |
+ | sudo systemctl enable httpd | ||
+ | sudo systemctl start httpd | ||
+ | </ | ||
+ | - Run the following Linux shell commands to download and install [[doku> | ||
+ | For detailed installation procedure, refer to [[doku> | ||
+ | </ | ||
+ | To generate //<< | ||
+ | </ | ||
+ | cd / | ||
+ | sudo wget https:// | ||
+ | sudo tar -zxvf dokuwiki-<< | ||
+ | sudo rm -r dokuwiki-<< | ||
+ | sudo chown -R apache dokuwiki | ||
+ | sudo chgrp -R apache dokuwiki | ||
+ | cd dokuwiki | ||
+ | sudo mv * ../ | ||
+ | cd .. | ||
+ | sudo rm -Rf docuwiki | ||
+ | sudo chmod -R 0700 data | ||
+ | sudo chmod -R 0700 conf | ||
+ | sudo chmod -R 0700 inc | ||
+ | sudo chmod -R 0700 vendor | ||
+ | </ | ||
+ | - Update DNS host record with your Domain Registrar or Domain Management Service | ||
+ | - From web browser on your PC, go to '' | ||
+ | - Fill all the required details | ||
+ | - Generate CloudFlare Origin Certificate | ||
+ | - Run following Linux shell commands to create certificates:< | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | </ | ||
+ | Replace //<< | ||
+ | Replace //<< | ||
+ | Replace //<< | ||
+ | </ | ||
+ | sudo mkdir / | ||
+ | sudo vi / | ||
+ | << | ||
+ | sudo vi / | ||
+ | << | ||
+ | sudo vi / | ||
+ | << | ||
+ | </ | ||
+ | -----BEGIN CERTIFICATE----- | ||
+ | MIIEADCCAuigAwIBAgIID+rOSdTGfGcwDQYJKoZIhvcNAQELBQAwgYsxCzAJBgNV | ||
+ | BAYTAlVTMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMTQwMgYDVQQLEytDbG91 | ||
+ | ZEZsYXJlIE9yaWdpbiBTU0wgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MRYwFAYDVQQH | ||
+ | Ew1TYW4gRnJhbmNpc2NvMRMwEQYDVQQIEwpDYWxpZm9ybmlhMB4XDTE5MDgyMzIx | ||
+ | MDgwMFoXDTI5MDgxNTE3MDAwMFowgYsxCzAJBgNVBAYTAlVTMRkwFwYDVQQKExBD | ||
+ | bG91ZEZsYXJlLCBJbmMuMTQwMgYDVQQLEytDbG91ZEZsYXJlIE9yaWdpbiBTU0wg | ||
+ | Q2VydGlmaWNhdGUgQXV0aG9yaXR5MRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRMw | ||
+ | EQYDVQQIEwpDYWxpZm9ybmlhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC | ||
+ | AQEAwEiVZ/ | ||
+ | V6Z5/ | ||
+ | OomnwbUfLlExVgNdlP0XoRoeMwbQ4598foiHblO2B/ | ||
+ | yrP/ | ||
+ | SmXI/ | ||
+ | lwrFSySWAdwYdgxw180yKU0dvwIDAQABo2YwZDAOBgNVHQ8BAf8EBAMCAQYwEgYD | ||
+ | VR0TAQH/ | ||
+ | HwYDVR0jBBgwFoAUJOhTV118NECHqeuU27rhFnj8KaQwDQYJKoZIhvcNAQELBQAD | ||
+ | ggEBAHwOf9Ur1l0Ar5vFE6PNrZWrDfQIMyEfdgSKofCdTckbqXNTiXdgbHs+TWoQ | ||
+ | wAB0pfJDAHJDXOTCWRyTeXOseeOi5Btj5CnEuw3P0oXqdqevM1/ | ||
+ | VD4aITxity0djzE6Qnx3Syzz+ZkoBgTnNum7d9A66/ | ||
+ | hhurjcoacvRNhnjtDRM0dPeiCJ50CP3wEYuvUzDHUaowOsnLCjQIkWbR7Ni6KEIk | ||
+ | MOz2U0OBSif3FTkhCgZWQKOOLo1P42jHC3ssUZAtVNXrCk3fw9/ | ||
+ | 0iykLhH1trywrKRMVw67F44IE8Y= | ||
+ | -----END CERTIFICATE----- | ||
+ | </ | ||
+ | - Edit **ssl.conf** file by running '' | ||
+ | Replace //<< | ||
+ | </ | ||
+ | SSLCertificateFile / | ||
+ | SSLCertificateKeyFile / | ||
+ | SSLCertificateChainFile / | ||
+ | </ | ||
+ | - Run following Linux shell command to restart Apache httpd service:< | ||
+ | sudo systemctl restart httpd | ||
+ | </ | ||
+ | - Test security of your website by accessing '' |