{"id":333,"date":"2025-04-30T10:19:50","date_gmt":"2025-04-30T08:19:50","guid":{"rendered":"https:\/\/www.24x7serverguard.com\/blog\/?p=333"},"modified":"2025-04-30T10:19:50","modified_gmt":"2025-04-30T08:19:50","slug":"to-set-up-a-new-server-on-a-plain-almalinux-os-minimal-installation-youll-need-to-follow-a-structured-process-to-prepare-it-for-use-whether-for-hosting-application-deployment-or-inter","status":"publish","type":"post","link":"https:\/\/www.24x7serverguard.com\/blog\/installation\/to-set-up-a-new-server-on-a-plain-almalinux-os-minimal-installation-youll-need-to-follow-a-structured-process-to-prepare-it-for-use-whether-for-hosting-application-deployment-or-inter\/","title":{"rendered":"To set up a new server on a plain AlmaLinux OS (minimal installation), you&#8217;ll need to follow a structured process to prepare it for use \u2014 whether for hosting, application deployment, or internal services. Here&#8217;s a step-by-step guide:"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u2705 <strong>Basic AlmaLinux Server Setup Checklist (Post-Installation)<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. <strong>Update the Server<\/strong><\/h4>\n\n\n\n<p>dnf update -y<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>2. <strong>Set the Hostname<\/strong><\/p>\n\n\n\n<p>hostnamectl set-hostname your.hostname.com<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>3. <strong>Create a New Sudo User<\/strong><\/p>\n\n\n\n<p>adduser newadmin<br>passwd newadmin<br>usermod -aG wheel newadmin<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>4. <strong>Configure the Firewall<\/strong><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Enable and start firewalld<\/h1>\n\n\n\n<p>systemctl <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">enable <\/mark>firewalld &#8211;now<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Allow basic ports (SSH, HTTP, HTTPS)<\/h1>\n\n\n\n<p>firewall-cmd &#8211;permanent &#8211;add-service=ssh<br>firewall-cmd &#8211;permanent &#8211;add-service=http<br>firewall-cmd &#8211;permanent &#8211;add-service=https<br>firewall-cmd &#8211;reload<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5. <strong>Partition the Disk (if not yet done)<\/strong><\/h4>\n\n\n\n<p>Use <code>lsblk<\/code> to identify available disks.<\/p>\n\n\n\n<p>Example using <code>fdisk<\/code> for <code>\/dev\/sdb<\/code>:<\/p>\n\n\n\n<p>fdisk \/dev\/sdb<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Follow prompts to create new partition (n), write (w)<\/h1>\n\n\n\n<p>mkfs.ext4 \/dev\/sdb1<br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">mkdir <\/mark>\/mnt\/data<br>mount \/dev\/sdb1 \/mnt\/data<br><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">echo <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">&#8220;\/dev\/sdb1 \/mnt\/data ext4 defaults 0 0&#8221; <\/mark>>> \/etc\/fstab<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">6. <strong>Set Up SSH Security<\/strong><\/h4>\n\n\n\n<p>Edit SSH config:<\/p>\n\n\n\n<p>nano \/etc\/ssh\/sshd_config<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Change: PermitRootLogin no<\/h5>\n\n\n\n<h5 class=\"wp-block-heading\">Optional: Port 2222 (custom port)<\/h5>\n\n\n\n<p>systemctl restart sshd<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>7. <strong>Install Common Utilities<\/strong><\/p>\n\n\n\n<p>dnf install -y wget curl git net-tools vim unzip<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>8. <strong>Set Timezone &amp; Enable NTP<\/strong><\/p>\n\n\n\n<p>timedatectl set-timezone Asia\/Dubai<br>dnf install -y chrony<br>systemctl <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">enable <\/mark>chronyd &#8211;now<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">9. <strong>Install and Configure a Web Stack (Optional)<\/strong><\/h4>\n\n\n\n<p>For example, LAMP:<\/p>\n\n\n\n<p>dnf install -y httpd mariadb-server php php-mysqlnd<br>systemctl <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">enable <\/mark>httpd mariadb &#8211;now<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2705 Basic AlmaLinux Server Setup Checklist (Post-Installation) 1. Update the Server dnf update -y 2. Set the Hostname hostnamectl set-hostname your.hostname.com 3. Create a New Sudo User adduser newadminpasswd newadminusermod -aG wheel newadmin 4. Configure the Firewall Enable and start firewalld systemctl enable firewalld &#8211;now Allow basic ports (SSH, HTTP, HTTPS) firewall-cmd &#8211;permanent &#8211;add-service=sshfirewall-cmd &#8211;permanent [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":334,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[334,332,336,335,333],"class_list":["post-333","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-installation","tag-application-deployment","tag-new-server-on-a-plain-almalinux-os-minimal-installation","tag-or-internal-services","tag-whether-for-hosting","tag-youll-need-to-follow-a-structured-process"],"_links":{"self":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/comments?post=333"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/333\/revisions"}],"predecessor-version":[{"id":335,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/333\/revisions\/335"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media\/334"}],"wp:attachment":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media?parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/categories?post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/tags?post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}