• Support
  • GBEnglish
  • DON'T USE PHP8!! Use PHP7.3 only!

GameAP works bad with version above 7.3 of PHP.
Use PHP7.3 only!

How to install PHP 7.3:
<<<<<<<<<<<<<<<<<<<<<<<<<Add PHP Repository
sudo apt update
sudo apt upgrade

sudo apt install -y curl wget gnupg2 ca-certificates lsb-release apt-transport-https

wget https://packages.sury.org/php/apt.gpg
sudo apt-key add apt.gpg

echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list

sudo apt update
apt-get upgrade

<<<<<<<<<<<<<<<<<<<<<<<<<Install PHP
sudo apt-get -y install \
php7.3-common \
php7.3-cli \
php7.3-gd \
php7.3-fpm \
php7.3-pdo \
php7.3-mysql \
php7.3-redis \
php7.3-curl \
php7.3-bz2 \
php7.3-zip \
php7.3-xml \
php7.3-mbstring \
php7.3-bcmath \
php7.3-gmp \
php7.3-intl

<<<<<<<<<<<<<<<<<<<<<<<<<Set Default PHP Version
sudo update-alternatives --set php /usr/bin/php7.3

<<<<<<<<<<<<<<<<<<<<<<<<<Check version
php -v

<<<<<<<<<<<<<<<<<<<<<<<<<Add this line to PHP Configuration
/etc/php/7.3/cli/php.ini

<<<<<<<<<<<<<<<<<<<<<<<<<Install this when you use APACHE
sudo apt install -y apache2 libapache2-mod-php7.3

<<<<<<<<<<<<<<<<<<<<<<<<<Install this when you use NGINX
sudo apt install -y php7.3-fpm

<<<<<<<<<<<<<<<<<<<<<<<<<Reboot Apache/Nginx!

    Benny <<<<<<<<<<<<<<<<<<<<<<<<<Add this line to PHP Configuration
    /etc/php/7.3/cli/php.ini

    where is necessary to add this line?

      Markurry I am also a beginner so maybe my answer look a little bit dumb.

      I use Webmin/Virtualmin on my Debian 10 Server and I added this to:
      PHP Configuration module

      Check that out, maybe it is there by default.

      Suggestion:

      apt-mark hold php-cgi
      apt-mark hold php-fpm
      apt-mark hold php-mbstring
      apt-mark hold php-mysql
      apt-mark hold php-xml

      Add these commands to avoid upgrade PHP version.

      Unfortunately Automatic GameAP Installer also tries to update PHP to the latest version so I decided to reinstall it with Manual.
      Manual installation is more stable.

      In my opinion, 7.4(last 7.x) is the great one, with 8.x we have to wait to compile the rest of modules(like geoip). Php 5.6 i liked too xd.

      GameAP works fine with 7.4
      Why did you cut what works worse with 7.4 and 8.x?

        7 months later
        a month later

        knik, I can confirm PHP 7.4 is working just fine. Has it been tested with PHP 8.0 or PHP 8.1 yet?

        GameAP compatible with PHP 8.0 and 8.1. PHP 7.3 support will be discontinued soon.

        10 months later

        Hello guys
        Could you help me on this plz. I have PHP already installed on my dedicated server ( Linux 22.04 ) but once I run the installer script, I got this error message Unable to find PHP >= 7.3

        I'am confused, would you like to give me a tip plz ?

        best regards

        Write a Reply...