Rocky Linux Installation previously CentOS: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
=== Notes === | ===Notes=== | ||
*Hyper-V: Do not use virtual RAM when booting from CD / DVD, it will cause a Kernel Panic | *Hyper-V: Do not use virtual RAM when booting from CD / DVD, it will cause a Kernel Panic | ||
| Line 11: | Line 11: | ||
*Install Webmin RPM via Yum (it will also install dependencies automatically) | *Install Webmin RPM via Yum (it will also install dependencies automatically) | ||
=== Rocky Linux 9 (New Stuff) === | ===Rocky Linux 9 (New Stuff)=== | ||
Cockpit AddOns; | Cockpit AddOns; | ||
* From: https://github.com/45Drives/cockpit-file-sharing | *From: https://github.com/45Drives/cockpit-file-sharing | ||
** Samba PlugIn: dnf install <nowiki>https://github.com/45Drives/cockpit-file-sharing/releases/download/v3.2.9/cockpit-file-sharing-3.2.9-2.el8.noarch.rpm</nowiki> | **Samba PlugIn: dnf install <nowiki>https://github.com/45Drives/cockpit-file-sharing/releases/download/v3.2.9/cockpit-file-sharing-3.2.9-2.el8.noarch.rpm</nowiki> | ||
** Navigator (File Explorer): wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator-0.5.10-1.el8.noarch.rpm, then rpm -Uhv WhateEverFileName | **Navigator (File Explorer): wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator-0.5.10-1.el8.noarch.rpm, then rpm -Uhv WhateEverFileName | ||
SAMBA / SMB: Remember, if SELINUX is enabled it messes up how SAMBA / SMB operates (can be very puzzling and frustrating): edit /etc/selinux/config and set to disabled (...yes I know, but when it's more hassle than it's worth forget it). | SAMBA / SMB: Remember, if SELINUX is enabled it messes up how SAMBA / SMB operates (can be very puzzling and frustrating): edit /etc/selinux/config and set to disabled (...yes I know, but when it's more hassle than it's worth forget it). | ||
| Line 22: | Line 22: | ||
REMI (for multiple PHP version) | REMI (for multiple PHP version) | ||
* dnf install epel-release | *dnf install epel-release | ||
* Install the REMI RPM YUM Repos: dnf install <nowiki>https://rpms.remirepo.net/enterprise/remi-release-9.rpm</nowiki> | *Install the REMI RPM YUM Repos: dnf install <nowiki>https://rpms.remirepo.net/enterprise/remi-release-9.rpm</nowiki> | ||
* It's changed a bit since CentOS 7, so: https://www.digitalocean.com/community/tutorials/how-to-run-multiple-php-versions-on-one-server-using-apache-and-php-fpm-on-centos-8 | *It's changed a bit since CentOS 7, so: https://www.digitalocean.com/community/tutorials/how-to-run-multiple-php-versions-on-one-server-using-apache-and-php-fpm-on-centos-8 | ||
** dnf module list php | **dnf module list php | ||
** dnf module reset php (turns off the current module installer) | **dnf module reset php (turns off the current module installer) | ||
** dnf module enable php:remi-7.4 or 8.0, 8.1, 8.2 (turns on this version installer) | **dnf module enable php:remi-7.4 or 8.0, 8.1, 8.2 (turns on this version installer) | ||
** dnf install php74 php74-php-fpm OR php80 php80-php-fpm OR 81 OR 82, etc. (as of Rocky Linux 9.1: 7.4, 8.0, 8.1, 8.2 are available thru REMI and the default Rocky version is 8.1) | **dnf install php74 php74-php-fpm OR php80 php80-php-fpm OR 81 OR 82, etc. (as of Rocky Linux 9.1: 7.4, 8.0, 8.1, 8.2 are available thru REMI and the default Rocky version is 8.1) | ||
** NOTE: This command will install a DEFAULT PHP version: dnf module install php:8.1/common (the default "appstream" version) or dnf module install php:remi-7.4/common (a REMI version) | **systemctl enable php74-php-fpm OR WhatEverVersion (enable the FPM Service) | ||
**systemctl start php74-php-fpm | |||
**Configure the Socket or Port Number for each FPM version: /opt/remi/WhatEverVersion/php-fpm.d/www.conf (multiple listen = lines can exist) | |||
***listen = 127.0.0.1:WXYZ (for ports) | |||
***listen = /var/opt/remi/php74/run/php-fpm/www.sock (for socket, change phpXY as needed) | |||
**For Apache / HTTPD, include one of the following; | |||
***SetHandler "/var/opt/remi/php74/run/php-fpm/www.sock|fcgi://localhost" (an explanation for this funky syntax is given here:https://serverfault.com/questions/1044315/syntax-of-apache-sethandler-directive-when-configuring-php-fpm) | |||
***SetHandler "proxy:fcgi://127.0.0.1:WXYZ" | |||
**NOTE: This command will install a DEFAULT PHP version: dnf module install php:8.1/common (the default "appstream" version) or dnf module install php:remi-7.4/common (a REMI version) | |||
<nowiki>*</nowiki> DNF = "Next Generation" of YUM | <nowiki>*</nowiki> DNF = "Next Generation" of YUM | ||
=== Other Notes === | Gnome Initial GUI / Desktop Setup | ||
...there are so many suggested solutions that don't work when one wants a single user (root) | |||
* https://www.putorius.net/disable-gnome-initial-setup.html | |||
* https://askubuntu.com/questions/1028822/disable-the-new-ubuntu-18-04-welcome-screen/1030095#1030095 | |||
* The best one that works every time is this: yum remove gnome-initial-setup (can't run if it "don't" exist!) | |||
===Other Notes=== | |||
After GUI installation, get it to boot to command line: <nowiki>http://www.itzgeek.com/how-tos/linux/centos-how-tos/change-default-runlevel-in-centos-7-rhel-7.html#axzz3PuGwJi3X</nowiki> | After GUI installation, get it to boot to command line: <nowiki>http://www.itzgeek.com/how-tos/linux/centos-how-tos/change-default-runlevel-in-centos-7-rhel-7.html#axzz3PuGwJi3X</nowiki> | ||