To support the expanded use of Websockets for additional dynamic pages within the Submitty website, we must remove a restriction on a specific php function.
Version v20.08.00 requires the following edits:
-
Locate your
php.inifile.It is probably something like
/etc/php/8.1/fpm/php.ini.Note: You can run this command to print your specific version of php:
php -r 'print PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION."\n";' -
Edit this file:
Removestream_socket_clientfrom the list ofdisabled_functions.
Save the file. -
Restart php fpm:
sudo systemctl restart php8.1-fpmOr more generally:
sudo systemctl restart php$(php -r 'print PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')-fpm