Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Red Hat / CentOS / Fedora – Install/Configure Cerbot

Posted on January 6, 2017 By David Kittell

This is a work in progress….

# Install/Configure Apache - Start
# Install Apache
sudo yum -y install httpd

# Install SSL
sudo yum -y install mod_ssl openssl

# Start and Enable Apache
sudo systemctl start httpd.service
sudo systemctl enable httpd.service

# Open Firewall for HTTP and HTTPS
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload

# Install/Configure PHP - Start
# Install PHP with extensions
sudo yum -y install php php-soap curl curl-devel

# Create simple PHP Info page to verify PHP is working in Apache
sudo echo "<?PHP phpinfo() ?>" | sudo tee /var/www/html/info.php

echo "AddType application/x-httpd-php .php" | sudo tee -a /etc/httpd/conf/httpd.conf
# Install/Configure PHP - Stop

# Restart Apache
sudo systemctl restart httpd.service

# Install/Configure Apache - Stop

# Download/Install EPEL - Start
cd ~/
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -Uvh epel-release-latest-7.noarch.rpm
sudo yum repolist all | grep epel
# Download/Install EPEL - Stop

# Install Cerbot
sudo yum -y install python-certbot-apache

# Configure Cerbot with Apache
sudo certbot --apache

All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

CentOS Code Fedora Red Hat SSL UNIX UNIX Shell Scripts

Post navigation

Previous post
Next post

Related Posts

Good Integer

Posted on April 11, 2013October 24, 2021

protected int nGoodInt (string sNumber) { sNumber = sNumber.Trim(); int Num; bool isNum = int.TryParse(sNumber, out Num); if (isNum) { return Num; } else { return 0; } } protected System.Boolean IsNumeric(System.Object Expression) { if (Expression == null || Expression is DateTime) { return false; } if (Expression is Int16…

Read More

Ektron – Remove Content/Folder Permissions

Posted on August 20, 2014October 26, 2015

Use EXTREME caution on this query. I recommend you do a backup of your database before you run this script as this will remove all permissions that someone has setup on Ektron. TRUNCATE TABLE [permissions_tbl]; UPDATE [content] SET [inherit_permissions] = 0 ,[inherit_permissions_from] = 0 ,[private] = 0; Originally Posted on…

Read More

Excel – VLookup – Unique Join WorkSheets

Posted on February 10, 2016February 12, 2016

=VLOOKUP(B2,Sheet2!A:B,2,FALSE) Sheet1 Column A Column B Moo ./.htaccess Sheet2 Column A Column B ./.htaccess 235 Add the code above to Column C in Sheet1 and it will match Column B from Sheet1 with Column A from Sheet2 and get the value to display from Column B from Sheet2 Originally Posted…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes