wiki:prodserver
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wiki:prodserver [2021/07/29 22:36] – created guidebeacon | wiki:prodserver [2023/07/18 19:59] (current) – guidebeacon | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Beacon Production Server ====== | ====== Beacon Production Server ====== | ||
| + | |||
| Beacon production is where the public visits beacontechnology.com | Beacon production is where the public visits beacontechnology.com | ||
| - | The hostname is also cpanel.beacontechnology.com | + | The hostname is also chost.beacontechnology.com |
| + | |||
| + | The old hostname was cpanel.beacontechnology.com | ||
| Links | Links | ||
| - | https:// | + | |
| - | https:// | + | * https:// |
| - | https:// | + | |
| + | | ||
| ===== Setup ===== | ===== Setup ===== | ||
| - | To create a new cpanel.beacontechnology.com server follow these steps: | + | To create a new chost.beacontechnology.com server follow these steps: |
| - | - Set up a fresh CentOS 7 minimal. | + | - Set up a fresh Alma 8 minimal. |
| - yum install -y screen | - yum install -y screen | ||
| - run '' | - run '' | ||
| - Inside screen, update the server with: '' | - Inside screen, update the server with: '' | ||
| + | - Make sure the box has a valid hostname like chost.beacontechnology.com Run '' | ||
| - Disable NetworkManager by following this guide: [[https:// | - Disable NetworkManager by following this guide: [[https:// | ||
| - Install cPanel by following this guide: [[https:// | - Install cPanel by following this guide: [[https:// | ||
| - Transfer the .tar.gz file somewhere to the box | - Transfer the .tar.gz file somewhere to the box | ||
| - | - Go to this [[: | + | - Go to this [[wiki: |
| - Update DNS if you have a different IP | - Update DNS if you have a different IP | ||
| + | |||
| + | ==== Additional Setup ==== | ||
| + | |||
| + | === Install ImageMagick === | ||
| + | |||
| + | When reinstalling, | ||
| + | |||
| + | < | ||
| + | Fatal error: Uncaught Error: Class ' | ||
| + | </ | ||
| + | |||
| + | |||
| + | https:// | ||
| + | |||
| + | < | ||
| + | dnf config-manager --set-enabled epel | ||
| + | dnf install ImageMagick ImageMagick-devel -y | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | find / | ||
| + | </ | ||
| + | |||
| + | for each, run this command | ||
| + | |||
| + | < | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | Don't forget to start php-fpm | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | === Session Files === | ||
| + | |||
| + | There are some other things to take into consideration. | ||
| + | |||
| + | The website generates tons of session files and never cleans them up. | ||
| + | |||
| + | To fix this, you can use a cron job to clean them up | ||
| + | |||
| + | < | ||
| + | # cat / | ||
| + | #!/bin/bash | ||
| + | |||
| + | find / | ||
| + | </ | ||
| + | |||
| + | The above has been implemented in a cron job owned by root that runs twice daily. | ||
| + | < | ||
| + | / | ||
| + | |||
| + | find / | ||
| + | find / | ||
| + | </ | ||
| + | |||
| + | === AWstats === | ||
| + | |||
| + | By default WHM does not allow users to update stats anytime they want. To restore the Update Now button in awstats | ||
| + | |||
| + | go to: Server Configuration / Tweak Settings | ||
| + | |||
| + | enable: Allow users to update Awstats from cPanel | ||
| + | |||
| + | To manually run an update from script: | ||
| + | |||
| + | ''/ | ||
wiki/prodserver.1627598177.txt.gz · Last modified: 2021/07/29 22:36 by guidebeacon