mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-10 10:44:43 -06:00
1 line
8.8 KiB
JavaScript
1 line
8.8 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{294:function(a,e,s){"use strict";s.r(e);var t=s(15),n=Object(t.a)({},(function(){var a=this,e=a._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[e("h1",{attrs:{id:"enterprise-linux-8-and-fedora-server-40"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#enterprise-linux-8-and-fedora-server-40"}},[a._v("#")]),a._v(" Enterprise Linux 8 and Fedora Server 40")]),a._v(" "),e("p",[a._v("This guide provides comprehensive instructions for installing Pterodactyl v1.X on CentOS 8, Rocky Linux 8, AlmaLinux 8, and Fedora Server 40, including all dependencies.")]),a._v(" "),e("p"),e("div",{staticClass:"table-of-contents"},[e("ul",[e("li",[e("a",{attrs:{href:"#install-dependencies"}},[a._v("Install Dependencies")]),e("ul",[e("li",[e("a",{attrs:{href:"#selinux-configuration"}},[a._v("SELinux Configuration")])]),e("li",[e("a",{attrs:{href:"#installing-dependencies"}},[a._v("Installing Dependencies")])])])]),e("li",[e("a",{attrs:{href:"#php-configuration"}},[a._v("PHP Configuration")])]),e("li",[e("a",{attrs:{href:"#installing-the-panel"}},[a._v("Installing the Panel")])])])]),e("p"),a._v(" "),e("h2",{attrs:{id:"install-dependencies"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#install-dependencies"}},[a._v("#")]),a._v(" Install Dependencies")]),a._v(" "),e("h3",{attrs:{id:"selinux-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#selinux-configuration"}},[a._v("#")]),a._v(" SELinux Configuration")]),a._v(" "),e("p",[a._v("If SELinux is enabled (check with "),e("code",[a._v("sestatus")]),a._v("), install the following packages:")]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" dnf "),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("install")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-y")]),a._v(" policycoreutils selinux-policy selinux-policy-targeted setroubleshoot-server setools setools-console mcstrans\n")])])]),e("h3",{attrs:{id:"installing-dependencies"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#installing-dependencies"}},[a._v("#")]),a._v(" Installing Dependencies")]),a._v(" "),e("p",[a._v("Run the following commands to install all necessary dependencies:")]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Update system")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" dnf update "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-y")]),a._v("\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Install EPEL and Remi repository")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" dnf "),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("install")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-y")]),a._v(" epel-release\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Add additional repositories for PHP (Enterprise Linux 8)")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" dnf "),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("install")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-y")]),a._v(" https://rpms.remirepo.net/enterprise/remi-release-8.rpm\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Add additional repositories for PHP (Fedora Server 40)")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" dnf "),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("install")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-y")]),a._v(" https://rpms.remirepo.net/fedora/remi-release-40.rpm\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Enable PHP 8.3 from Remi")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" dnf module reset php\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" dnf module "),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("enable")]),a._v(" php:remi-8.3 "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-y")]),a._v("\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Install dependencies")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" dnf "),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("install")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-y")]),a._v(" php php-"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v(" mariadb mariadb-server nginx redis "),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("zip")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("unzip")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("tar")]),a._v("\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Start and enable services")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" systemctl "),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("enable")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--now")]),a._v(" mariadb nginx redis\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Configure firewall")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" firewall-cmd --add-service"),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v("http "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--permanent")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" firewall-cmd --add-service"),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v("https "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--permanent")]),a._v(" \n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" firewall-cmd "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--reload")]),a._v("\n\n"),e("span",{pre:!0,attrs:{class:"token comment"}},[a._v("# Install Composer")]),a._v("\n"),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("curl")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("-sS")]),a._v(" https://getcomposer.org/installer "),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("|")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" php -- --install-dir"),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v("/usr/local/bin "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--filename")]),e("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v("composer\n")])])]),e("h2",{attrs:{id:"php-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#php-configuration"}},[a._v("#")]),a._v(" PHP Configuration")]),a._v(" "),e("p",[a._v("Create a new PHP-FPM configuration file in /etc/php-fpm.d/www-pterodactyl.conf:")]),a._v(" "),e("div",{staticClass:"language-conf extra-class"},[e("pre",{pre:!0,attrs:{class:"language-text"}},[e("code",[a._v("[pterodactyl]\n\nuser = nginx\ngroup = nginx\n\nlisten = /var/run/php-fpm/pterodactyl.sock\nlisten.owner = nginx\nlisten.group = nginx\nlisten.mode = 0750\n\npm = ondemand\npm.max_children = 9\npm.process_idle_timeout = 10s\npm.max_requests = 200\n")])])]),e("p",[a._v("Start and enable PHP-FPM:")]),a._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[a._v("sudo")]),a._v(" systemctl "),e("span",{pre:!0,attrs:{class:"token builtin class-name"}},[a._v("enable")]),a._v(" "),e("span",{pre:!0,attrs:{class:"token parameter variable"}},[a._v("--now")]),a._v(" php-fpm\n")])])]),e("h2",{attrs:{id:"installing-the-panel"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#installing-the-panel"}},[a._v("#")]),a._v(" Installing the Panel")]),a._v(" "),e("p",[a._v("Excellent, we now have all of the required dependencies installed and configured. From here, follow the "),e("RouterLink",{attrs:{to:"/panel/1.0/getting_started.html#download-files"}},[a._v("official Panel installation documentation")]),a._v(".")],1),a._v(" "),e("div",{staticClass:"custom-block tip"},[e("p",{staticClass:"custom-block-title"},[a._v("TIP")]),a._v(" "),e("p",[a._v("You will need to change the fastcgi_pass path in the Nginx configuration to "),e("code",[a._v("/var/run/php-fpm/pterodactyl.sock")])])])])}),[],!1,null,null,null);e.default=n.exports}}]); |