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.ini
file.It is probably something like
/etc/php/7.2/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_client
from the list ofdisabled_functions
.
Save the file. -
Restart php fpm:
sudo systemctl restart php7.2-fpm
Or more generally:
sudo systemctl restart php$(php -r 'print PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')-fpm