Editing FoolFuuka/Install/Ubuntu16
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 4: | Line 4: | ||
__NOTOC__ | __NOTOC__ | ||
== Prepare things == | == Prepare things == | ||
Line 53: | Line 40: | ||
<pre>sudo apt-get update | <pre>sudo apt-get update | ||
sudo apt-get install git nginx hhvm percona-server-server | sudo apt-get install git nginx hhvm percona-server-server-5.7 imagemagick maven openjdk-9-jdk-headless redis-server sphinxsearch</pre> | ||
== Install composer for downloading FoolFuuka dependencies. == | == Install composer for downloading FoolFuuka dependencies. == | ||
Line 76: | Line 63: | ||
upload_max_filesize = 32M | upload_max_filesize = 32M | ||
post_max_size = 32M | post_max_size = 32M | ||
</nowiki>}} | </nowiki>}} | ||
Line 168: | Line 152: | ||
== Disable transparent_hugepage == | == Disable transparent_hugepage == | ||
<pre>su -c 'echo never > /sys/kernel/mm/transparent_hugepage/enabled'</pre> | |||
<pre>su -c 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' | |||
<pre>sudo nano /etc/default/grub</pre> | <pre>sudo nano /etc/default/grub</pre> | ||
Line 186: | Line 169: | ||
}} | }} | ||
== edit | == edit MariaDB to use utf8mb4 for correct unicode processing == | ||
{{hc|sudo nano /etc/mysql/my.cnf|<nowiki> | |||
[client] | |||
{{hc|sudo nano /etc/mysql/ | |||
[ | |||
default-character-set = utf8mb4 | default-character-set = utf8mb4 | ||
[mysqld] | [mysqld] | ||
character-set-client-handshake = FALSE | character-set-client-handshake = FALSE | ||
Line 203: | Line 180: | ||
collation-server = utf8mb4_general_ci | collation-server = utf8mb4_general_ci | ||
open-files-limit=40000 | open-files-limit=40000 | ||
skip-log-bin | skip-log-bin | ||
## Comment these to disable binary log | |||
#log_bin = /var/log/mysql/mariadb-bin | |||
#log_bin_index = /var/log/mysql/mariadb-bin.index | |||
#expire_logs_days = 10 | |||
#max_binlog_size = 100M | |||
[ | [mysql] | ||
default-character-set = utf8mb4 | default-character-set = utf8mb4 | ||
</nowiki>}} | </nowiki>}} | ||
Enable toku (Find and Uncomment the load module) | |||
<pre>sudo nano /etc/mysql/conf.d/tokudb.cnf </pre> | |||
<pre>sudo systemctl stop mysql | <pre>sudo systemctl stop mysql | ||
Line 222: | Line 207: | ||
CREATE USER 'asagi'@'localhost' IDENTIFIED BY 'pass'; | CREATE USER 'asagi'@'localhost' IDENTIFIED BY 'pass'; | ||
CREATE USER 'foolfuuka'@'localhost' IDENTIFIED BY 'pass'; | CREATE USER 'foolfuuka'@'localhost' IDENTIFIED BY 'pass'; | ||
CREATE USER 'sphinx'@'localhost' IDENTIFIED BY ' | CREATE USER 'sphinx'@'localhost' IDENTIFIED BY 'w3e2yzjQSG5WGDwM'; | ||
CREATE DATABASE asagi DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci; | CREATE DATABASE asagi DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci; | ||
CREATE DATABASE foolfuuka DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci; | CREATE DATABASE foolfuuka DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci; | ||
Line 239: | Line 224: | ||
sudo su asagi | sudo su asagi | ||
cd ~ | cd ~ | ||
git clone https://github.com/ | git clone https://github.com/oohnoitz/asagi.git optimizations | ||
cd asagi | cd asagi | ||
mvn package assembly:single | mvn package assembly:single | ||
Line 271: | Line 256: | ||
"deletedThreadsThresholdPage": 8, | "deletedThreadsThresholdPage": 8, | ||
"refreshDelay": 30, | "refreshDelay": 30, | ||
"throttleAPI": | "throttleAPI": false, | ||
"throttleURL": "a.4cdn.org", | "throttleURL": "a.4cdn.org", | ||
"throttleMillisec": 11100, | "throttleMillisec": 11100, | ||
Line 383: | Line 368: | ||
Also make sure to install imagemagick and set the path in the config to it. | Also make sure to install imagemagick and set the path in the config to it. | ||
{{Note|<nowiki>In the installer one should have FoolFuuka table prefix set (default is fine ff_). But after installing one needs to set BOARD PREFIX to blank since asagi doesn't have any. FoolFuuka table prefix != board table prefix.</nowiki>}} | {{Note|<nowiki>In the installer one should have FoolFuuka table prefix set (default is fine ff_). But after installing one needs to set BOARD PREFIX to blank since asagi doesn't have any. FoolFuuka table prefix != board table prefix. Here's </nowiki>[https://github.com/p0wer0n/FoolFrame/commit/3368e24dc9d89b881460f8c876ddb91c78b5b955 a code change that does it.]}} | ||
== Add boards, Configure Sphinx == | == Add boards, Configure Sphinx == |