HumHub is a free and open-source social network portal built to be secure, fast, and extendable. This tutorial will guide you through the installation of HumHub on Alpine Linux Latest.
Begin by installing all required dependencies for HumHub.
$ apk update && apk upgrade
$ apk add nginx mysql-client mysql-server php7 php7-curl php7-gd php7-intl php7-json php7-mbstring php7-mysqlnd php7-openssl php7-pdo_mysql php7-session php7-xml php7-zip
$ wget https://www.humhub.org/en/download/start?file=humhub-latest.zip
$ unzip humhub-latest.zip -d /var/www/
humhub.conf
in the /etc/nginx/conf.d/
directory.$ nano /etc/nginx/conf.d/humhub.conf
server {
listen 80;
server_name example.com; # Change to your domain name
root /var/www/humhub;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ .php$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
$ /etc/init.d/mysql start
$ mysql
CREATE DATABASE humhubdb;
CREATE USER 'humhubuser'@'localhost' IDENTIFIED BY 'humhubpassword';
GRANT ALL PRIVILEGES ON humhubdb.* TO 'humhubuser'@'localhost';
FLUSH PRIVILEGES;
exit;
protected/config/common.php
file.$ nano /var/www/humhub/protected/config/common.php
return [
'params' => [
'installer' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=humhubdb',
'username' => 'humhubuser',
'password' => 'humhubpassword',
'charset' => 'utf8',
],
'timestapServer' => 'local', # Change to your timestamp server
'baseUrl' => null, # Change to your site URL
],
],
];
$ /etc/init.d/nginx start
$ /etc/init.d/php-fpm7 start
Open your web browser and navigate to your site URL.
Follow the instructions on the installation wizard to complete the installation.
Congratulations! You have successfully installed HumHub on Alpine Linux Latest.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!