From 7bffd66403df6957dc10ab544f0fe925f6fda637 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 1 Feb 2019 21:28:24 -0800 Subject: [PATCH] Fix CentOS community guide --- .vuepress/config.js | 14 +++--- community/about.md | 9 ++-- .../daemon/centos7.md | 0 .../daemon/debian9.md | 0 .../daemon/ubuntu1804.md | 0 .../panel/centos7.md | 49 +++++++++---------- .../panel/debian9.md | 0 .../panel/ubuntu1804.md | 0 8 files changed, 35 insertions(+), 37 deletions(-) rename community/{install => installation-guides}/daemon/centos7.md (100%) rename community/{install => installation-guides}/daemon/debian9.md (100%) rename community/{install => installation-guides}/daemon/ubuntu1804.md (100%) rename community/{install => installation-guides}/panel/centos7.md (67%) rename community/{install => installation-guides}/panel/debian9.md (100%) rename community/{install => installation-guides}/panel/ubuntu1804.md (100%) diff --git a/.vuepress/config.js b/.vuepress/config.js index 6eea7a9a..11ba7734 100644 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -51,21 +51,21 @@ module.exports = { ] }, { - title: 'Install Panel', + title: 'Panel Installation', collapsable: false, children: [ - '/community/install/panel/centos7.md', - '/community/install/panel/ubuntu1804.md', - '/community/install/panel/debian9.md', + '/community/installation-guides/panel/centos7.md', + '/community/installation-guides/panel/ubuntu1804.md', + '/community/installation-guides/panel/debian9.md', ] }, { title: 'Install Daemon', collapsable: false, children: [ - '/community/install/daemon/centos7.md', - '/community/install/daemon/ubuntu1804.md', - '/community/install/daemon/debian9.md', + '/community/installation-guides/daemon/centos7.md', + '/community/installation-guides/daemon/ubuntu1804.md', + '/community/installation-guides/daemon/debian9.md', ] }, { diff --git a/community/about.md b/community/about.md index fdfe5912..9e96ab12 100644 --- a/community/about.md +++ b/community/about.md @@ -1,5 +1,6 @@ -# Introduction -This is the community guide section of the site. +# About +This section of Pterodactyl's site is dedicated to more complex topics, tutorials, and features that we +feel are important to share with the community, but do not fit into the theme of our core documentation. -## -This is the area for community maintained guides that have been validated before being added. \ No newline at end of file +Here you'll find in-depth OS-specific installation guides, advanced network configurations, individual game +setup instructions, and so much more. diff --git a/community/install/daemon/centos7.md b/community/installation-guides/daemon/centos7.md similarity index 100% rename from community/install/daemon/centos7.md rename to community/installation-guides/daemon/centos7.md diff --git a/community/install/daemon/debian9.md b/community/installation-guides/daemon/debian9.md similarity index 100% rename from community/install/daemon/debian9.md rename to community/installation-guides/daemon/debian9.md diff --git a/community/install/daemon/ubuntu1804.md b/community/installation-guides/daemon/ubuntu1804.md similarity index 100% rename from community/install/daemon/ubuntu1804.md rename to community/installation-guides/daemon/ubuntu1804.md diff --git a/community/install/panel/centos7.md b/community/installation-guides/panel/centos7.md similarity index 67% rename from community/install/panel/centos7.md rename to community/installation-guides/panel/centos7.md index 58992a8a..1009462b 100644 --- a/community/install/panel/centos7.md +++ b/community/installation-guides/panel/centos7.md @@ -1,15 +1,17 @@ -# Install pterodactyl on CentOS 7 - -This guide covers the installation of the requirements for a panel with SSL enabled. +# CentOS 7 +In this guide we will install Pterodactyl — including all of it's dependencies — and configure our webserver +to serve it using SSL. [[toc]] -## Install Requirements +::: tip +This guide is based off the [official installation documentation](/panel/getting_started.md) but is tailored specifically for CentOS 7. +::: -The panel requirements can be found [here](/panel/getting_started.md#dependencies) +## Install Requirements +We will first begin by installing all of Pterodactyl's [required](/panel/getting_started.md#dependencies) dependencies. ### MariaDB - ```bash ## Install Repos cat < /etc/yum.repos.d/mariadb.repo @@ -47,8 +49,7 @@ yum update -y yum install -y php72u-php php72u-common php72u-fpm php72u-cli php72u-json php72u-mysqlnd php72u-mcrypt php72u-gd php72u-mbstring php72u-pdo php72u-zip php72u-bcmath php72u-dom php72u-opcache ``` -### nginx - +### Nginx ```bash yum install -y nginx @@ -58,7 +59,6 @@ firewall-cmd --reload ``` ### Redis - ```bash yum install -y redis40u @@ -66,14 +66,14 @@ systemctl start redis systemctl enable redis ``` -### utilities +### Additional Utilities -#### certbot +#### Certbot ```bash yum install -y certbot ``` -#### composer +#### Composer ```bash curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer ``` @@ -82,7 +82,7 @@ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin This following section covers the configuration of parts of the server to run the panel. -### MariaDB +### Configuring MariaDB The fastest way to set up mariadb is to use the `mysql_secure_installation` command and follow prompts ```bash @@ -110,10 +110,9 @@ All done! If you've completed all of the above steps, your MariaDB installation should now be secure. #### Adding MariaDB user -We have a tutorial in the tutorial section -[Setting up MySQL](/tutorials/mysql_setup.md) +To add your first user to the database, see our tutorial on [setting up MySQL](/tutorials/mysql_setup.md). -### PHP +### Setup PHP Place the contents below in a file inside the `/etc/php-fpm.d` folder. The file can be named anything, but a good standard is `www-pterodactyl.conf`. This config will match the nginx config later in the guide. @@ -125,17 +124,15 @@ systemctl enable php-fpm systemctl start php-fpm ``` -### nginx +### Nginx +Please check our [tutorial](/tutorials/creating_ssl_certificates.md) on generating SSL certificates for more information. -follow the [tutorial](/tutorials/creating_ssl_certificates.md) on generating an SSL cert to use. - -#### ssl config +#### SSL Configuration <<< @/.snippets/webservers/nginx-centos.conf{5,11,26-27} -### Redis -The default Redis install is perfectly fine for the panel. +### Redis Setup +The default Redis install is perfectly fine for the panel. If you have Redis already in use you may want to look into +[running another Redis instance](https://community.pivotal.io/s/article/How-to-setup-and-run-multiple-Redis-server-instances-on-a-Linux-host). -If you have Redis already in use you may want to look into running another Redis instance similar to [this guide](https://community.pivotal.io/s/article/How-to-setup-and-run-multiple-Redis-server-instances-on-a-Linux-host) - -## Installing the panel -Follow the regular guide to install the [panel](/panel/getting_started.md#installation) +## Installing the Panel +Excellent, we now have all of the required dependencies installed and configured. From here, follow the [official Panel installation documentation](/panel/getting_started.md#installation). diff --git a/community/install/panel/debian9.md b/community/installation-guides/panel/debian9.md similarity index 100% rename from community/install/panel/debian9.md rename to community/installation-guides/panel/debian9.md diff --git a/community/install/panel/ubuntu1804.md b/community/installation-guides/panel/ubuntu1804.md similarity index 100% rename from community/install/panel/ubuntu1804.md rename to community/installation-guides/panel/ubuntu1804.md