PHP Version Checker

Current PHP version: 8.2.30

PHP Binaries on Server

Array
(
    [0] => /usr/local/bin/php
)

PHP-FPM Processes

Array
(
    [0] => truthemp  466651  0.0  0.0   3976  2960 ?        S    21:01   0:00 sh -c ps aux | grep php-fpm
    [1] => truthemp  466653  0.0  0.0   3304   724 ?        S    21:01   0:00 grep php-fpm
)

Apache PHP Modules

Array
(
)

PHP Versions in Common Locations

Array
(
    [0] => lrwxrwxrwx 1 root root   18 Feb  6  2022 /usr/bin/php -> /usr/local/bin/php
    [1] => lrwxrwxrwx 1 root root   24 Nov 17 18:19 /usr/local/bin/php -> /usr/local/php74/bin/php
    [2] => lrwxrwxrwx 1 root root   31 Nov 17 18:19 /usr/local/bin/php-config -> /usr/local/php74/bin/php-config
    [3] => lrwxrwxrwx 1 root root   27 Nov 17 18:19 /usr/local/bin/phpize -> /usr/local/php74/bin/phpize
    [4] => 
    [5] => /opt/alt/php55:
    [6] => total 28
    [7] => drwxr-xr-x  7 root root 4096 Oct  7  2023 .
    [8] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [9] => drwxr-xr-x  5 root root 4096 Oct 12  2023 etc
    [10] => drwxr-xr-x  2 root root 4096 Oct  7  2023 icons
    [11] => drwxr-xr-x  2 root root 4096 Oct  7  2023 link
    [12] => drwxr-xr-x  7 root root 4096 Oct  7  2023 usr
    [13] => drwxr-xr-x  3 root root 4096 Oct  7  2023 var
    [14] => 
    [15] => /opt/alt/php56:
    [16] => total 24
    [17] => drwxr-xr-x  6 root root 4096 Apr 13  2023 .
    [18] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [19] => drwxr-xr-x  5 root root 4096 Sep 25 00:37 etc
    [20] => drwxr-xr-x  2 root root 4096 Apr 13  2023 link
    [21] => drwxr-xr-x  7 root root 4096 Jul  2  2024 usr
    [22] => drwxr-xr-x  4 root root 4096 Feb  6  2022 var
    [23] => 
    [24] => /opt/alt/php70:
    [25] => total 24
    [26] => drwxr-xr-x  6 root root 4096 Oct 12  2022 .
    [27] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [28] => drwxr-xr-x  7 root root 4096 Sep 25 00:37 etc
    [29] => drwxr-xr-x  2 root root 4096 Oct 12  2022 link
    [30] => drwxr-xr-x  7 root root 4096 Jul  2  2024 usr
    [31] => drwxr-xr-x  3 root root 4096 Feb  6  2022 var
    [32] => 
    [33] => /opt/alt/php71:
    [34] => total 24
    [35] => drwxr-xr-x  6 root root 4096 Oct 12  2022 .
    [36] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [37] => drwxr-xr-x  7 root root 4096 Sep 25 00:37 etc
    [38] => drwxr-xr-x  2 root root 4096 Oct 12  2022 link
    [39] => drwxr-xr-x  7 root root 4096 Jul  2  2024 usr
    [40] => drwxr-xr-x  3 root root 4096 Feb  6  2022 var
    [41] => 
    [42] => /opt/alt/php72:
    [43] => total 24
    [44] => drwxr-xr-x  6 root root 4096 Oct 12  2022 .
    [45] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [46] => drwxr-xr-x  7 root root 4096 Sep 25 00:37 etc
    [47] => drwxr-xr-x  2 root root 4096 Oct 12  2022 link
    [48] => drwxr-xr-x  7 root root 4096 Jul  2  2024 usr
    [49] => drwxr-xr-x  3 root root 4096 Feb  6  2022 var
    [50] => 
    [51] => /opt/alt/php73:
    [52] => total 24
    [53] => drwxr-xr-x  6 root root 4096 Oct 12  2022 .
    [54] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [55] => drwxr-xr-x  7 root root 4096 Sep 25 00:37 etc
    [56] => drwxr-xr-x  2 root root 4096 Oct 12  2022 link
    [57] => drwxr-xr-x  7 root root 4096 Jul  2  2024 usr
    [58] => drwxr-xr-x  3 root root 4096 Feb  6  2022 var
    [59] => 
    [60] => /opt/alt/php74:
    [61] => total 24
    [62] => drwxr-xr-x  6 root root 4096 Oct  7  2023 .
    [63] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [64] => drwxr-xr-x  7 root root 4096 Sep 25 00:37 etc
    [65] => drwxr-xr-x  2 root root 4096 Oct  7  2023 link
    [66] => drwxr-xr-x  7 root root 4096 Sep  9  2024 usr
    [67] => drwxr-xr-x  3 root root 4096 Oct  7  2023 var
    [68] => 
    [69] => /opt/alt/php80:
    [70] => total 24
    [71] => drwxr-xr-x  6 root root 4096 Oct  7  2023 .
    [72] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [73] => drwxr-xr-x  7 root root 4096 Sep 25 00:37 etc
    [74] => drwxr-xr-x  2 root root 4096 Oct  7  2023 link
    [75] => drwxr-xr-x  7 root root 4096 Sep  9  2024 usr
    [76] => drwxr-xr-x  3 root root 4096 Oct  7  2023 var
    [77] => 
    [78] => /opt/alt/php81:
    [79] => total 24
    [80] => drwxr-xr-x  6 root root 4096 Oct  7  2023 .
    [81] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [82] => drwxr-xr-x  7 root root 4096 Sep 25 00:37 etc
    [83] => drwxr-xr-x  2 root root 4096 Oct  7  2023 link
    [84] => drwxr-xr-x  7 root root 4096 Sep  9  2024 usr
    [85] => drwxr-xr-x  3 root root 4096 Oct  7  2023 var
    [86] => 
    [87] => /opt/alt/php82:
    [88] => total 16
    [89] => drwxr-xr-x  4 root root 4096 Aug 30  2024 .
    [90] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [91] => drwxr-xr-x  3 root root 4096 Aug 30  2024 etc
    [92] => drwxr-xr-x  3 root root 4096 Aug 30  2024 usr
    [93] => 
    [94] => /opt/alt/php83:
    [95] => total 16
    [96] => drwxr-xr-x  4 root root 4096 Aug 30  2024 .
    [97] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [98] => drwxr-xr-x  3 root root 4096 Aug 30  2024 etc
    [99] => drwxr-xr-x  3 root root 4096 Aug 30  2024 usr
    [100] => 
    [101] => /opt/alt/php84:
    [102] => total 16
    [103] => drwxr-xr-x  4 root root 4096 Feb 19  2025 .
    [104] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [105] => drwxr-xr-x  3 root root 4096 Feb 19  2025 etc
    [106] => drwxr-xr-x  3 root root 4096 Feb 19  2025 usr
    [107] => 
    [108] => /opt/alt/php85:
    [109] => total 16
    [110] => drwxr-xr-x  4 root root 4096 Jan 17 07:25 .
    [111] => drwxr-xr-x 33 root root 4096 Jan 17 07:25 ..
    [112] => drwxr-xr-x  3 root root 4096 Jan 17 07:25 etc
    [113] => drwxr-xr-x  3 root root 4096 Jan 17 07:25 usr
)

DirectAdmin PHP Selector

DirectAdmin often provides a PHP Selector in the control panel that allows you to change PHP versions without rebooting the server.

  1. Log in to DirectAdmin at https://vda1600.is.cc:2222
  2. Look for 'PHP Version' or 'PHP Selector' in the control panel
  3. Select PHP 8.2 or the highest available version
  4. Apply the changes

.htaccess PHP Version Control

You can try to set the PHP version using .htaccess:

# For Apache with mod_php
AddHandler application/x-httpd-php82 .php

# For Apache with mod_fcgid
AddHandler fcgid-script .php
FcgidWrapper /opt/alt/php82/usr/bin/php-cgi .php

# For Apache with mod_proxy_fcgi

SetHandler "proxy:unix:/opt/alt/php82/usr/var/run/php-fpm.sock|fcgi://localhost"


# For Apache with mod_suphp

suPHP_ConfigPath /opt/alt/php82/etc/php.ini


Creating Test .htaccess File

✅ Test .htaccess file created.

Creating PHP Version Test File

✅ PHP test file created at /php_test.php.

Conclusion

In most cases, you don't need to reboot the server to change PHP versions. Instead:

  1. Use DirectAdmin's PHP Selector if available
  2. Configure .htaccess to specify the PHP version
  3. Check if the changes take effect by visiting /php_test.php

If these methods don't work, contact InterServer support to help you enable PHP 8.2 for your account.

Return to Dashboard