mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-10 10:44:43 -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.
|
||||
:::
|
||||
|
||||
## Install Requirements
|
||||
We will first begin by installing all of Pterodactyl's [required](/panel/getting_started.md#dependencies) dependencies.
|
||||
## Install Requirements and Additional Utilities
|
||||
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
|
||||
```bash
|
||||
@ -35,8 +45,8 @@ systemctl start mariadb
|
||||
systemctl enable mariadb
|
||||
```
|
||||
|
||||
### PHP 7.2
|
||||
We recommend the ius repo to get the latest php packages.
|
||||
### PHP 7.3
|
||||
We recommend the remi repo to get the latest php packages.
|
||||
|
||||
```bash
|
||||
## 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
|
||||
```
|
||||
|
||||
### 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
|
||||
```bash
|
||||
yum install -y nginx
|
||||
@ -69,17 +88,13 @@ systemctl start redis
|
||||
systemctl enable redis
|
||||
```
|
||||
|
||||
### Additional Utilities
|
||||
#### SELinux commands
|
||||
|
||||
#### Composer
|
||||
The following command will allow nginx to work with redis and
|
||||
```bash
|
||||
yum install -y unzip # Required for Composer
|
||||
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
```
|
||||
|
||||
#### SELinux tools
|
||||
```bash
|
||||
yum install -y policycoreutils policycoreutils-python selinux-policy selinux-policy-targeted libselinux-utils setroubleshoot-server setools setools-console mcstrans
|
||||
setsebool -P httpd_can_network_connect 1
|
||||
setsebool -P httpd_execmem 1
|
||||
setsebool -P httpd_unified 1
|
||||
```
|
||||
|
||||
## Server Configuration
|
||||
@ -126,16 +141,6 @@ systemctl enable 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
|
||||
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
|
||||
these programs to work with SELinux.
|
||||
|
||||
### Redis Permissions
|
||||
### Redis Permissions Errors
|
||||
``` bash
|
||||
audit2allow -a -M redis_t
|
||||
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
|
||||
``` bash
|
||||
audit2allow -a -M http_port_t
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user