mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-11 14:00:27 -06:00
Merge pull request #115 from parkervcp/update/centos-panel-guide
Update/centos panel guide
This commit is contained in:
commit
cb1911fe26
@ -8,8 +8,18 @@ to serve it using SSL.
|
|||||||
This guide is based off the [official installation documentation](/panel/getting_started.md) but is tailored specifically for CentOS 7.
|
This guide is based off the [official installation documentation](/panel/getting_started.md) but is tailored specifically for CentOS 7.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## Install Requirements
|
## Install Requirements and Additional Utilities
|
||||||
We will first begin by installing all of Pterodactyl's [required](/panel/getting_started.md#dependencies) dependencies.
|
We will install all of Pterodactyl's [required](/panel/getting_started.md#dependencies) dependencies and a few aditional utilities.
|
||||||
|
|
||||||
|
|
||||||
|
::: tip
|
||||||
|
If you run `sestatus` and it shows `SELinux status: enabled` you should install the following packages for later
|
||||||
|
:::
|
||||||
|
|
||||||
|
### SELinux tools
|
||||||
|
```bash
|
||||||
|
yum install -y policycoreutils policycoreutils-python selinux-policy selinux-policy-targeted libselinux-utils setroubleshoot-server setools setools-console mcstrans
|
||||||
|
```
|
||||||
|
|
||||||
### MariaDB
|
### MariaDB
|
||||||
```bash
|
```bash
|
||||||
@ -35,8 +45,8 @@ systemctl start mariadb
|
|||||||
systemctl enable mariadb
|
systemctl enable mariadb
|
||||||
```
|
```
|
||||||
|
|
||||||
### PHP 7.2
|
### PHP 7.3
|
||||||
We recommend the ius repo to get the latest php packages.
|
We recommend the remi repo to get the latest php packages.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
## Install Repos
|
## Install Repos
|
||||||
@ -52,6 +62,15 @@ yum update -y
|
|||||||
yum install -y php php-common php-fpm php-cli php-json php-mysqlnd php-mcrypt php-gd php-mbstring php-pdo php-zip php-bcmath php-dom php-opcache
|
yum install -y php php-common php-fpm php-cli php-json php-mysqlnd php-mcrypt php-gd php-mbstring php-pdo php-zip php-bcmath php-dom php-opcache
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Composer
|
||||||
|
```bash
|
||||||
|
yum install -y zip unzip # Required for Composer
|
||||||
|
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
```
|
||||||
|
|
||||||
|
## Install Utility Pakcages
|
||||||
|
|
||||||
|
|
||||||
### Nginx
|
### Nginx
|
||||||
```bash
|
```bash
|
||||||
yum install -y nginx
|
yum install -y nginx
|
||||||
@ -69,17 +88,13 @@ systemctl start redis
|
|||||||
systemctl enable redis
|
systemctl enable redis
|
||||||
```
|
```
|
||||||
|
|
||||||
### Additional Utilities
|
#### SELinux commands
|
||||||
|
|
||||||
#### Composer
|
The following command will allow nginx to work with redis and
|
||||||
```bash
|
```bash
|
||||||
yum install -y unzip # Required for Composer
|
setsebool -P httpd_can_network_connect 1
|
||||||
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
setsebool -P httpd_execmem 1
|
||||||
```
|
setsebool -P httpd_unified 1
|
||||||
|
|
||||||
#### SELinux tools
|
|
||||||
```bash
|
|
||||||
yum install -y policycoreutils policycoreutils-python selinux-policy selinux-policy-targeted libselinux-utils setroubleshoot-server setools setools-console mcstrans
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Server Configuration
|
## Server Configuration
|
||||||
@ -126,16 +141,6 @@ systemctl enable php-fpm
|
|||||||
systemctl start php-fpm
|
systemctl start php-fpm
|
||||||
```
|
```
|
||||||
|
|
||||||
### SELinux commands
|
|
||||||
|
|
||||||
The following command will allow nginx to work with redis and
|
|
||||||
```bash
|
|
||||||
setsebool -P httpd_can_network_connect 1
|
|
||||||
setsebool -P httpd_execmem 1
|
|
||||||
setsebool -P httpd_unified 1
|
|
||||||
restorecon -R /var/www/pterodactyl/
|
|
||||||
```
|
|
||||||
|
|
||||||
### Nginx
|
### Nginx
|
||||||
Please check our [tutorial](/tutorials/creating_ssl_certificates.md) on generating SSL certificates for more information.
|
Please check our [tutorial](/tutorials/creating_ssl_certificates.md) on generating SSL certificates for more information.
|
||||||
|
|
||||||
|
|||||||
@ -128,12 +128,17 @@ On systems with SELinux installed you might encounter unexpected errors when run
|
|||||||
to the daemon to perform actions. These issues can generally be resolved by executing the commands below to allow
|
to the daemon to perform actions. These issues can generally be resolved by executing the commands below to allow
|
||||||
these programs to work with SELinux.
|
these programs to work with SELinux.
|
||||||
|
|
||||||
### Redis Permissions
|
### Redis Permissions Errors
|
||||||
``` bash
|
``` bash
|
||||||
audit2allow -a -M redis_t
|
audit2allow -a -M redis_t
|
||||||
semodule -i redis_t.pp
|
semodule -i redis_t.pp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### In case there is any weirdness with parts of the panel
|
||||||
|
``` bash
|
||||||
|
restorecon -R /var/www/pterodactyl/
|
||||||
|
```
|
||||||
|
|
||||||
### Daemon Connection Errors
|
### Daemon Connection Errors
|
||||||
``` bash
|
``` bash
|
||||||
audit2allow -a -M http_port_t
|
audit2allow -a -M http_port_t
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user