Editing FoolFuuka/Upgrading

From Bibliotheca Anonoma

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 14: Line 14:


Then restart php7 or hhvm
Then restart php7 or hhvm
== Switching to PHP 7.2 ==
Update to the latest version of pleebe/foolfuuka and checkout the latest experimental branch.
If you just ran PHP7 on the normal codebase otherwise, there would be a Void error due to the use of old unsupported functions. {{ic|Fatal error: Cannot use 'Void' as class name as it is reserved in /var/www/foolfuuka/vendor/foolz/plugin/src/Void.php on line 12}}
    cd /var/www/
    git clone https://github.com/pleebe/foolfuuka # if your directory doesn’t already exist
    git pull origin
    git checkout experimental
Pleebe’s FoolFuuka instance now supports PHP7.2 instead of HHVM. PHP7.2 is not likely to be available from 16.04 LTS repos since those repos are too old, so add the ppa.
    sudo add-apt-repository ppa:ondrej/php
    sudo apt-get update
    sudo apt-get install php7.2-fpm php-bcmath php-curl
    composer install # reinstall all php plugins
Then make sure to edit nginx configs to work for the new PHP7 socket. Check its ini for the socket name, and replace /etc/nginx/rbt.conf with it.
hhvm.conf -> php7-2.conf
You may want to increase the amount of workers in php to the amount of cores available, see php.ini.
Please note that all contributions to Bibliotheca Anonoma are considered to be released under the Creative Commons Attribution-ShareAlike (see Bibliotheca Anonoma:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: