{"id":201,"date":"2024-01-12T20:40:21","date_gmt":"2024-01-12T20:40:21","guid":{"rendered":"https:\/\/slavy.site\/?page_id=201"},"modified":"2024-11-25T21:06:01","modified_gmt":"2024-11-25T21:06:01","slug":"rhel9","status":"publish","type":"page","link":"https:\/\/slavy.site\/index.php\/wp\/rhel9\/","title":{"rendered":"RHEL9"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">After installation on Red Hat Enterprice Linux 9 login in to developers.redhat.com, register the system <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo su\nsubscription-manager register - <a href=\"https:\/\/access.redhat.com\/solutions\/253273\" data-type=\"link\" data-id=\"https:\/\/access.redhat.com\/solutions\/253273\" target=\"_blank\" rel=\"noreferrer noopener\">link<\/a>\nsubscription-manager register --auto-attach\nsubscription-manager list\nupdate the system\ndnf update\nand stop the X server\nsystemctl get-default\nsystemctl set-default multi-user.target\nsystemctl get-default\nsystemctl reboot now<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">NFS<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo su\ninstall nfs - client\nyum install nfs-utils\nmount -t nfs 192.168.100.100:\/jellyfin\/4tb \/nfs\/4tb\n\n<a href=\"https:\/\/www.tecmint.com\/how-to-setup-nfs-server-in-linux\/\" data-type=\"link\" data-id=\"https:\/\/www.tecmint.com\/how-to-setup-nfs-server-in-linux\/\">Install NFS Server and Client on RHEL<\/a><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf update\nsudo dnf install rpcbind nfs-utils -y\nsudo systemctl enable nfs-server\nsudo systemctl enable rpcbind\nsudo systemctl start nfs-server\nsudo systemctl start rpcbind\nsudo systemctl status nfs-server\nsudo systemctl status rpcbind\nsudo firewall-cmd --permanent --add-service={nfs,rpc-bind,mountd}\nsudo firewall-cmd --reload\nsudo mkdir -p \/nfs\/exports\/myshare\nsudo chmod 775 -R \/nfs\/exports\/myshare\nsudo nano \/etc\/exports\n\/nfs\/exports\/myshare  *(rw,sync,root_squash,subtree_check)\nsudo exportfs -rv\nshowmount -e localhost\n\nsudo mount -t nfs 192.168.253.129:\/nfs\/exports\/myshare \/mnt\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">add ssh to firewall<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>firewall-cmd --zone=public --permanent --add-service=ssh\nfirewall-cmd --reload\nfirewall-cmd --list-all\n\n\ninstall Apache Web Server<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo su\nyum install httpd\nsystemctl status httpd.service\nsystemctl start httpd.servise &amp;&amp; systemctl enable httpd.service\nsystemctl status httpd.service\nfirewall-cmd --zone=public --permanent --add-service=http\nfirewall-cmd --reload\n\nopen web browser and test calling the local ip of the server<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wordpress.stackexchange.com\/questions\/94130\/wp-config-php-file-permissions\" data-type=\"link\" data-id=\"https:\/\/wordpress.stackexchange.com\/questions\/94130\/wp-config-php-file-permissions\" target=\"_blank\" rel=\"noreferrer noopener\">sudo setenforce permissive &#8211; SOLVED Unable to write to wp-config.php<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/snapcraft.io\/docs\/installing-snap-on-red-hat\" data-type=\"link\" data-id=\"https:\/\/snapcraft.io\/docs\/installing-snap-on-red-hat\">Installing snap on Red Hat Enterprise Linux (RHEL)<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-9.noarch.rpm\nsudo dnf upgrade\nsudo yum install snapd\nsudo systemctl enable --now snapd.socket\nsudo ln -s \/var\/lib\/snapd\/snap \/snap\n\nsudo snap install obs-studio\n\nsudo snap install obs-cli\n\nsudo dnf install vlc\n\nsudo snap install ardour-snap\n\nsudo snap install butt\n\n<a href=\"https:\/\/www.redhat.com\/sysadmin\/lamp-server\" data-type=\"link\" data-id=\"https:\/\/www.redhat.com\/sysadmin\/lamp-server\" target=\"_blank\" rel=\"noreferrer noopener\">Turning on the LAMP: Linux, Apache, MySQL, and PHP<\/a>\nsudo dnf -y update\nsudo dnf -y install httpd\nsudo systemctl enable httpd.service\nsudo systemctl start httpd.service\nhttp:\/\/&lt;server-name or IP address>\nsudo firewall-cmd --zone=public --add-port=80\/tcp --permanent\nsudo firewall-cmd --reload\nsudo dnf -y install mysql-server mysql\nsudo systemctl enable mysqld.service\nsudo systemctl start mysqld.service\nsudo mysql_secure_installation \nsudo dnf -y install php php-mysqlnd php-cli\nsudo systemctl restart httpd.service\nsudo nano \/var\/www\/html\/test.php\nEnter the following into the test.php file:\n\n&lt;?php\nphpinfo();\n?>\n\nhttp:&#47;&#47;ip\/test.php\n\nhttpd - wich is apache2 use user: apache and group:apache in RHLE, so when need change ownership shoot be:\nchown apache:apache \/var\/www\/html\/worpress\n\nIf have problems in mysql server-a \u0438 \u043d\u0435\u043c\u043e\u0436\u0435\u043c \u0434\u0430 \u0434\u0430\u0434\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0443\u0437\u044a\u0440 \u0432\u044a\u0440\u0445\u0443 \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u0438, \u043c\u043e\u0436\u0435\u043c \u0434\u0430 \u0434\u0430\u0434\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u0432\u044a\u0440\u0445\u0443 \u0432\u0441\u0438\u043a\u043e \u0441\u044a\u0441 \u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430:\nGRANT ALL PRIVILEGES ON *.* TO 'slavy'@'localhost' WITH GRANT OPTION;\n\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/increase-php-file-upload-size\/\" data-type=\"link\" data-id=\"https:\/\/webhostinggeeks.com\/howto\/increase-php-file-upload-size\/\" target=\"_blank\" rel=\"noreferrer noopener\">Increase PHP File Upload Size Limit<\/a>\n\nphp --ini\nsudo nano \/path\/to\/php.ini\n\nupload_max_filesize = 1280M\npost_max_size = 1280M\n\nalso go to edit sudo nano \/etc\/php\/8.1\/apache2\/php.ini with same corrections\n\nsystemctl reload php-fpm\nsystemctl start php-fpm\nsystemctl stop php-fpm\nsystemctl enable php-fpm\nsystemctl status php-fpm\n\n<a href=\"https:\/\/infotechys.com\/virtualbox-on-rhel9-centos9\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Oracle Virtual Box<\/a><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf config-manager --add-repo=https:\/\/download.virtualbox.org\/virtualbox\/rpm\/el\/virtualbox.repo<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf install -y binutils gcc make patch perl libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf search virtualbox<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf install -y VirtualBox-7.0<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo modprobe vboxdrv<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After installation on Red Hat Enterprice Linux 9 login in to developers.redhat.com, register the system NFS add ssh to firewall<\/p>\n<p><a href=\"https:\/\/slavy.site\/index.php\/wp\/rhel9\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">RHEL9<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":5,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-201","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/pages\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":30,"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/pages\/201\/revisions"}],"predecessor-version":[{"id":429,"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/pages\/201\/revisions\/429"}],"up":[{"embeddable":true,"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/pages\/5"}],"wp:attachment":[{"href":"https:\/\/slavy.site\/index.php\/wp-json\/wp\/v2\/media?parent=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}