Hubzilla: Installation
Hubzilla Installation
Quick Copy & Paste Version for the Command Line
The full installation instructions are located in the install directory, or located online at:
Short Version: https://codejournal.dev/help/admin/administrator_guide#Manual_Installation
Detailed Version: https://framagit.org/hubzilla/core/blob/master/install/INSTALL.txt
But after you install it a few dozen times, it just becomes easier to copy and paste the specific commands that you need.
Pro Tip: Use Ctrl+Shift+V to paste the copied text in plain text format. This is useful if you are pasting it into a virtual terminal that expects plain text.
Prerequisites
- An Empty Database (to install Hubzilla in)
- Database Username and Password (assigned to that database)
- The directory you install Hubzilla in must be empty (including hidden files).
Once these are set up, you can continue to the next step.
Clone Hubzilla using the following commands:
git clone https://framagit.org/hubzilla/core.git public_html
cd public_html
mkdir -p "store/[data]/smarty3"
chmod -R 755 store
Clone the Hubzilla addons, widgets, and themes repositories using the following commands:
util/add_addon_repo https://framagit.org/hubzilla/addons.git hzaddons
util/add_widget_repo https://framagit.org/hubzilla/widgets.git hzwidgets
util/add_theme_repo https://framagit.org/hubzilla/themes.git hzthemes
Clone Neuhub using the following commands:
util/add_theme_repo https://framagit.org/federated-works/neuhub/hubzilla-themes.git neuhubthemes
util/add_addon_repo https://framagit.org/federated-works/neuhub/hubzilla-addons.git neuhubaddons
util/add_widget_repo https://framagit.org/federated-works/neuhub/hubzilla-widgets.git neuhubwidgets
Finish Installation in Web Browser
Visit your domain name in a web browser and follow the instructions.
If you are using a cPanel-based server, set your PHP path to:
/usr/local/bin/php
Cron every 10 minutes
cd /home/example/public_html; /usr/local/bin/php Zotlabs/Daemon/Master.php Cron > /dev/null 2>&1
Install Addons
You can optionally install addons by command line to save you time.
These are the ones that I typically install:
util/addons install phpmailer
util/addons install pubcrawl
util/addons install statistics
util/addons install superblock
My installation requires phpmailer for email to function properly. Yours may not need this addon.
Some optional interface-related addons. Whether I install these depends on the purpose of the website.
util/addons install bookmarker
util/addons install mdpost
util/addons install noembed
util/addons install wiki
util/addons install articles
Configuration
Some optional configurations. See Hidden Configs for more details.
util/config system default_profile_photo circle_person
util/config system reserved_channels admin,administrator,scott,wistex,techsero,forum,mod,moderator,official,owner,info
Note: If you plan on using these channel names, create the channels before executing this command.
K&T Host Restart Hubzilla
If you are on K&T Host, you will need to execute one addtional command:
touch /system/action/hubzilla.restart
Development Branches
For testing purposes, we will pull the dev branches instead.
To install the dev branch, you will need to use some modified utilities found here:
https://framagit.org/federated-works/neuhub/snippets/-/tree/main/hubzilla/core/util
Copy those to the util directory of your Hubzilla installation, and give them 755 permissions.
Then execute the following commands to install the dev branch of Neuhub:
util/add_theme_repo_branch https://framagit.org/federated-works/neuhub/hubzilla-themes.git neuhubthemesdev dev
util/add_addon_repo_branch https://framagit.org/federated-works/neuhub/hubzilla-addons.git neuhubaddonsdev dev
util/add_widget_repo_branch https://framagit.org/federated-works/neuhub/hubzilla-widgets.git neuhubwidgetsdev dev
More Documentation
Some additional documentation related to installing Hubzilla on various systems.