Editing FoolFuuka/Install/Debian
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 20: | Line 20: | ||
Then, Comment out repo in {{ic|/etc/apt/sources.list.d/*}} and add to end: | Then, Comment out repo in {{ic|/etc/apt/sources.list.d/*}} and add to end: | ||
<pre>deb http://ppa.launchpad.net/builds/sphinxsearch-stable/ubuntu precise main | <pre> deb http://ppa.launchpad.net/builds/sphinxsearch-stable/ubuntu precise main | ||
deb-src http://ppa.launchpad.net/builds/sphinxsearch-stable/ubuntu precise main </pre> | deb-src http://ppa.launchpad.net/builds/sphinxsearch-stable/ubuntu precise main </pre> | ||
<pre>sudo apt-get update</pre> | <pre>sudo apt-get update</pre> | ||
== Install all the needed packages. == | == Install all the needed packages. == | ||
Nginx, HHVM, PHP5 Cli, PHP5 Curl, MariaDB, OpenJDK w/ compilier, Maven, Sphinxsearch | Nginx, HHVM, PHP5 Cli, PHP5 Curl, MariaDB, OpenJDK w/ compilier, Maven, Sphinxsearch | ||
<pre>sudo apt-get install git nginx hhvm | <pre>sudo apt-get install git nginx hhvm php5-cli php5-curl php5-mysqlnd mariadb-server libmariadbclient-dev mariadb-client imagemagick openjdk-7-jre openjdk-7-jdk openjdk-7-jre-lib maven sphinxsearch</pre> | ||
== Install composer for downloading FoolFuuka dependencies. == | == Install composer for downloading FoolFuuka dependencies. == | ||
Line 47: | Line 46: | ||
Then remove the line starting with hhvm.server.port, and in its place add the following one: | Then remove the line starting with hhvm.server.port, and in its place add the following one: | ||
<pre>hhvm.server.file_socket=/var/run/hhvm/hhvm.sock</pre> | <pre> hhvm.server.file_socket=/var/run/hhvm/hhvm.sock</pre> | ||
== Set required php.ini vars. == | == Set required php.ini vars. == | ||
{{hc|sudo nano /etc/ | {{hc|sudo nano /etc/hhvm/php.ini|<nowiki> | ||
date.timezone = UTC | date.timezone = UTC | ||
upload_max_filesize = 32M | upload_max_filesize = 32M | ||
post_max_size = 32M | post_max_size = 32M | ||
</nowiki>}} | </nowiki>}} | ||
== Restart HHVM == | == Restart HHVM == | ||
Line 101: | Line 98: | ||
index index.php index.html index.htm; | index index.php index.html index.htm; | ||
location / { | location / { | ||
try_files $uri $uri/ /index.php$is_args$args; | try_files $uri $uri/ /index.php$is_args$args; | ||
} | } | ||
location ~ \.php$ { | location ~ \.php$ { | ||
fastcgi_pass unix:/var/run/php5-fpm.sock; | fastcgi_pass unix:/var/run/php5-fpm.sock; | ||
Line 111: | Line 106: | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
include fastcgi_params; | include fastcgi_params; | ||
} | } | ||
Line 119: | Line 115: | ||
<pre>sudo service nginx restart</pre> | <pre>sudo service nginx restart</pre> | ||
== Create the database and install Foolfuuka user accounts. == | == Create the database and install Foolfuuka user accounts. == | ||
{{Warning|Don't use this command: {{ic|sudo mysql_install_db}}}} | |||
<pre>sudo mysql_secure_installation</pre> | <pre>sudo mysql_secure_installation</pre> | ||
Line 135: | Line 133: | ||
{{hc|sudo nano /etc/mysql/my.cnf|<nowiki> | {{hc|sudo nano /etc/mysql/my.cnf|<nowiki> | ||
[client] | [client] | ||
default-character-set = utf8mb4 | default-character-set = utf8mb4 | ||
[mysql] | [mysql] | ||
default-character-set = utf8mb4 | default-character-set = utf8mb4 | ||
[mysqld] | [mysqld] | ||
character-set-client-handshake = FALSE | character-set-client-handshake = FALSE | ||
character-set-server = utf8mb4 | character-set-server = utf8mb4 | ||
collation-server = utf8mb4_general_ci | collation-server = utf8mb4_general_ci | ||
</nowiki>}} | </nowiki>}} | ||
== Restart MariaDB == | == Restart MariaDB == | ||
Line 167: | Line 164: | ||
{{hc|sudo nano /etc/security/limits.conf| | {{hc|sudo nano /etc/security/limits.conf| | ||
* soft nofile 63545 | * soft nofile 63545 | ||
* hard nofile 63545 | * hard nofile 63545 | ||
* soft nproc 63545 | * soft nproc 63545 | ||
* hard nproc 63545 | * hard nproc 63545 | ||
}} | }} | ||
Line 176: | Line 173: | ||
{{hc|sudo nano /etc/mysql/my.cnf|<nowiki> | {{hc|sudo nano /etc/mysql/my.cnf|<nowiki> | ||
# Put this after [mysqld] | # Put this after [mysqld] | ||
open-files-limit=40000 | open-files-limit=40000 | ||
</nowiki>}} | </nowiki>}} | ||
Line 183: | Line 180: | ||
sudo reboot</pre> | sudo reboot</pre> | ||
<pre>mysql -u root -p | <pre>mysql -u root -p | ||
set global default_storage_engine=TokuDB; | set global default_storage_engine=TokuDB; | ||
SET GLOBAL log_bin_trust_function_creators = 1;</pre> | SET GLOBAL log_bin_trust_function_creators = 1;</pre> | ||
Now, Install FoolFuuka at the website using foolfuuka credentials | Now, Install FoolFuuka at the website using foolfuuka credentials | ||
Line 201: | Line 198: | ||
Insert the following JSON into that file: | Insert the following JSON into that file: | ||
<pre> | <pre>### | ||
{"settings": { | {"settings": { | ||
"dumperEngine": "DumperJSON", | "dumperEngine": "DumperJSON", | ||
Line 306: | Line 303: | ||
} | } | ||
}} | }} | ||
</pre> | ###</pre> | ||
== Start asagi (There is a better way to do this). == | == Start asagi (There is a better way to do this). == | ||
Line 326: | Line 322: | ||
Now, Configure asagi as the database and remove the table prefix from FoolFuuka. | Now, Configure asagi as the database and remove the table prefix from FoolFuuka. | ||
== Add boards, Configure Sphinx == | == Add boards, Configure Sphinx == | ||
http://IP/admin > Search > Generate Config. | |||
Copy config out of FF and add your MySQL database information. Paste this to /etc/sphinxsearch/sphinx.conf | |||
=== Build the indexes === | === Build the indexes === | ||
Line 381: | Line 335: | ||
=== Configure Crontab === | === Configure Crontab === | ||
<pre> | <pre> | ||
@hourly sudo -u sphinxsearch /usr/bin/indexer --rotate *_delta > /dev/null | @hourly sudo -u sphinxsearch /usr/bin/indexer --rotate *_delta > /dev/null | ||
Line 389: | Line 341: | ||
@monthly sudo -u sphinxsearch /usr/bin/indexer --rotate *_ancient > /dev/null | @monthly sudo -u sphinxsearch /usr/bin/indexer --rotate *_ancient > /dev/null | ||
</pre> | </pre> | ||