Current PHP version: 8.2.33
Array
(
[0] => /usr/local/bin/php
)
Array
(
[0] => truthemp 713794 0.0 0.0 3976 2956 ? S 10:26 0:00 sh -c ps aux | grep php-fpm
[1] => truthemp 713796 0.0 0.0 3304 724 ? S 10:26 0:00 grep php-fpm
)
Array ( )
Array
(
[0] => lrwxrwxrwx 1 root root 18 Feb 6 2022 /usr/bin/php -> /usr/local/bin/php
[1] => lrwxrwxrwx 1 root root 24 Sep 10 00:14 /usr/local/bin/php -> /usr/local/php82/bin/php
[2] => lrwxrwxrwx 1 root root 31 Sep 10 00:14 /usr/local/bin/php-config -> /usr/local/php82/bin/php-config
[3] => lrwxrwxrwx 1 root root 27 Sep 10 00:14 /usr/local/bin/phpize -> /usr/local/php82/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 37 root root 4096 Sep 18 12:53 ..
[9] => drwxr-xr-x 5 root root 4096 Aug 7 20:09 etc
[10] => drwxr-xr-x 2 root root 4096 Aug 7 20:09 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 37 root root 4096 Sep 18 12:53 ..
[19] => drwxr-xr-x 6 root root 4096 Aug 7 20:10 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 37 root root 4096 Sep 18 12:53 ..
[28] => drwxr-xr-x 8 root root 4096 Sep 3 13:48 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 37 root root 4096 Sep 18 12:53 ..
[37] => drwxr-xr-x 8 root root 4096 Sep 3 13:48 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 37 root root 4096 Sep 18 12:53 ..
[46] => drwxr-xr-x 8 root root 4096 Sep 10 13:06 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 37 root root 4096 Sep 18 12:53 ..
[55] => drwxr-xr-x 8 root root 4096 Sep 10 13:06 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 37 root root 4096 Sep 18 12:53 ..
[64] => drwxr-xr-x 8 root root 4096 Sep 10 13:06 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 37 root root 4096 Sep 18 12:53 ..
[73] => drwxr-xr-x 8 root root 4096 Sep 10 13:06 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 37 root root 4096 Sep 18 12:53 ..
[82] => drwxr-xr-x 8 root root 4096 Sep 10 13:06 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 24
[89] => drwxr-xr-x 6 root root 4096 Aug 7 20:09 .
[90] => drwxr-xr-x 37 root root 4096 Sep 18 12:53 ..
[91] => drwxr-xr-x 10 root root 4096 Sep 18 12:53 etc
[92] => drwxr-xr-x 2 root root 4096 Aug 7 20:09 link
[93] => drwxr-xr-x 7 root root 4096 Aug 7 20:10 usr
[94] => drwxr-xr-x 3 root root 4096 Aug 7 20:09 var
[95] =>
[96] => /opt/alt/php83:
[97] => total 16
[98] => drwxr-xr-x 4 root root 4096 Aug 30 2024 .
[99] => drwxr-xr-x 37 root root 4096 Sep 18 12:53 ..
[100] => drwxr-xr-x 3 root root 4096 Aug 30 2024 etc
[101] => drwxr-xr-x 3 root root 4096 Aug 30 2024 usr
[102] =>
[103] => /opt/alt/php84:
[104] => total 16
[105] => drwxr-xr-x 4 root root 4096 Feb 19 2025 .
[106] => drwxr-xr-x 37 root root 4096 Sep 18 12:53 ..
[107] => drwxr-xr-x 3 root root 4096 Feb 19 2025 etc
[108] => drwxr-xr-x 3 root root 4096 Feb 19 2025 usr
[109] =>
[110] => /opt/alt/php85:
[111] => total 16
[112] => drwxr-xr-x 4 root root 4096 Jan 17 2026 .
[113] => drwxr-xr-x 37 root root 4096 Sep 18 12:53 ..
[114] => drwxr-xr-x 3 root root 4096 Jan 17 2026 etc
[115] => drwxr-xr-x 3 root root 4096 Jan 17 2026 usr
)
DirectAdmin often provides a PHP Selector in the control panel that allows you to change PHP versions without rebooting the server.
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_fcgiSetHandler "proxy:unix:/opt/alt/php82/usr/var/run/php-fpm.sock|fcgi://localhost" # For Apache with mod_suphpsuPHP_ConfigPath /opt/alt/php82/etc/php.ini
✅ Test .htaccess file created.
✅ PHP test file created at /php_test.php.
In most cases, you don't need to reboot the server to change PHP versions. Instead:
If these methods don't work, contact InterServer support to help you enable PHP 8.2 for your account.