Skip to content

BIntelligent/pterodactyl-nginx-egg-git

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pterodactyl Nginx egg

Nginx web server egg with PHP and optional Wordpress installation.

Features

You can select the desired PHP version.

  • ✅ 8.3

How to install

  • Step 1: Download the egg (json file egg-nginx.json)
  • Step 2: In your panel, go to the "Nests" category in the sidebar
  • Step 3: Import the egg under "Import egg" and then press "save" at the bottom right
  • Step 4: Create a new server and select the "Nginx" egg
  • Step 5: Select the corresponding Docker image with the desired PHP version
  • Step 6: Fill in the text fields. Whether Wordpress is desired or not. It is important to enter the selected PHP version in the PHP version field.

FAQ

In which folder do I upload my files for my site?

Here the "www" folder is used as a public folder, which can be accessed by everyone. Added files can be accessed in this folder.

How to use https://

Go to the file:

/home/container/nginx/conf.d/default.conf

Change "listen" to:

listen <YOUR_PORT> ssl;

Please also change the spacer distance. Otherwise the "listen" will be overwritten each time the egg is restarted.

Add the following lines:

    ssl_certificate /home/container/your_cert.crt;
    ssl_certificate_key /home/container/your_cert_key.key;
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers HIGH:!aNULL:!MD5;

Adjust the lines accordingly. Furthermore, if not already done, adjust to your domain:

server_name www.example.com;

Change PHP version

Changing the PHP version is currently still somewhat cumbersome. A revised version will be available in the future.

  • Step 1: Change the content of the file "php_version.txt" in "/home/container" to the version you want e.g. "8.3" txt_file

  • Step 2: In your Pterodactyl panel, go to the "Startup" tab on your web server. Change the variable "PHP VERSION" to the desired version. variable

  • Step 3: Finally, you need to customise the Docker image. Select the appropriate Docker image to match the version. docker_image

  • Step 4: Restart your container

PHP extensions

PHP extensions of PHP version 8.3:

Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, psr, xml, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, ldap, exif, memcache, mongodb, msgpack, mysqli, odbc, pcov, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, ps, pspell, readline, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, mailparse, memcached, inotify, maxminddb, protobuf, Zend OPcache

Small differences in the extensions between the PHP versions

License

MIT

Originally forked and edited from https://gitlab.com/tenten8401/pterodactyl-nginx

About

Nginx web server with PHP8.x/7.3 and Wordpress support

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Dockerfile 79.1%
  • Shell 20.9%