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__
== PHP7 Dependencies ==
We actually use PHP 7 now so here are the known dependencies (substitute php7.2 for your favorite point version):
<pre>
apt-get install php7.2-cli php7.2-fpm php7.2-bcmath php7.2-json php7.2-opcache php7.2-readline php7.2-curl php7.2-mysql php7.2-mbstring php7.2-gd php7.2-zip php7.2-xml
apt-get install git nginx percona-server-server-5.7 imagemagick maven openjdk-9-jdk-headless redis-server
apt-get install percona-server-tokudb-5.7
</pre>
php7.2-pdo is also required, but php7.2-mysql should bring it in as a dependency.
== Prepare things ==
== Prepare things ==


Line 25: Line 12:
[https://docs.hhvm.com/hhvm/installation/linux#ubuntu-16.10-yakkety from docs.hhvm.com]
[https://docs.hhvm.com/hhvm/installation/linux#ubuntu-16.10-yakkety from docs.hhvm.com]
<pre>sudo apt-get install software-properties-common
<pre>sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xB4112585D386EB94
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
sudo add-apt-repository &quot;deb http://dl.hhvm.com/ubuntu $(lsb_release -sc) main&quot;</pre>
sudo add-apt-repository &quot;deb http://dl.hhvm.com/ubuntu $(lsb_release -sc) main&quot;</pre>


== Add repo for Percona Server for MySQL 5.7 ==
== Add repo for MariaDB 10.1 ==


[https://www.percona.com/doc/percona-server/5.7/installation/apt_repo.html from www.percona.com]
[https://downloads.mariadb.org/mariadb/repositories/#mirror=accretive from downloads.mariadb.org]


<pre>wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb
<pre>sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb</pre>
sudo add-apt-repository &quot;deb [arch=amd64,i386,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial main&quot;</pre>


== Add repo for NGINX Stable ==
== Add repo for NGINX Stable ==
Line 41: Line 28:
<pre>wget https://nginx.org/keys/nginx_signing.key
<pre>wget https://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
sudo apt-key add nginx_signing.key
sudo add-apt-repository &quot;deb http://nginx.org/packages/ubuntu/ $(lsb_release -sc) nginx&quot;</pre>
sudo add-apt-repository &quot;deb http://nginx.org/packages/ubuntu/ xenial nginx&quot;</pre>


== Add repo for sphinxsearch ==
== Add repo for sphinxsearch ==
Line 53: Line 40:


<pre>sudo apt-get update
<pre>sudo apt-get update
sudo apt-get install git nginx hhvm percona-server-server-5.7 percona-server-tokudb-5.7 imagemagick maven openjdk-9-jdk-headless redis-server sphinxsearch</pre>
sudo apt-get install git nginx hhvm mariadb-server mariadb-client imagemagick maven openjdk-8-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
hhvm.mysql.socket = /var/run/mysqld/mysqld.sock
pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock
mysqli.socket = /var/run/mysqld/mysqld.sock
</nowiki>}}
</nowiki>}}


Line 168: Line 152:
== Disable transparent_hugepage ==
== Disable transparent_hugepage ==


Add this to your /etc/rc.local file
<pre>su -c 'echo never > /sys/kernel/mm/transparent_hugepage/enabled'</pre>
<pre>su -c 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' &</pre>


<pre>sudo nano /etc/default/grub</pre>
<pre>sudo nano /etc/default/grub</pre>
Line 186: Line 169:
}}
}}


== edit Percona to use utf8mb4 for correct unicode processing ==
== edit MariaDB to use utf8mb4 for correct unicode processing ==
Enable toku (Find and Uncomment the load module)


<pre>ps-admin --enable-tokudb -u root -p</pre>
{{hc|sudo nano /etc/mysql/my.cnf|<nowiki>
You may need to run that command again. Check the output to verify.
[client]
 
{{hc|sudo nano /etc/mysql/conf.d/mysql.cnf|<nowiki>
[mysql]
default-character-set = utf8mb4
default-character-set = utf8mb4
</nowiki>}}


{{hc|sudo nano /etc/mysql/percona-server.conf.d/mysqld.cnf|<nowiki>
[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
default_storage_engine = TokuDB
## Comment these to disable binary log
max_connections = 1000
#log_bin = /var/log/mysql/mariadb-bin
#log_bin_index = /var/log/mysql/mariadb-bin.index
#expire_logs_days = 10
#max_binlog_size        = 100M


[client]
[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 'pass';
   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/desuarchive/asagi.git
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": true,
       "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 ==
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)

Templates used on this page: