Skip to content

Instantly share code, notes, and snippets.

@linuxkeepup
Created December 1, 2022 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxkeepup/84b8dc18bd0b1592999ef795d90d22e9 to your computer and use it in GitHub Desktop.
Save linuxkeepup/84b8dc18bd0b1592999ef795d90d22e9 to your computer and use it in GitHub Desktop.
HumHub setup on Ubuntu
sudo -i
apt update -y
apt-get upgrade -y
apt update -y
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt install software-properties-common
apt install apt-show-versions
apt upgrade -o APT::Get::Show-Upgraded=true
apt-show-versions | grep upgradeable
apt update -y && apt-get upgrade -y
add-apt-repository ppa:nilarimogard/webupd8
apt update -y
apt install launchpad-getkeys
launchpad-getkeys
add-apt-repository ppa:git-core/ppa
apt update -y
apt install git
git config --global user.name "name"
git config --global user.email mail@domain.com
ssh-keygen -t rsa -b 4096 -C "email@gmail.com"
nano /etc/nginx/sites-available/default
# Remove/Comment all text and replace below texts
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/humhub;
# Add index.php to the list if you are using PHP
index index.php index.htm index.nginx-debian.html;
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
}
apt autoremove
composer check-platform-reqs
composer update --ignore-platform-reqs
composer upgrade --ignore-platform-reqs
composer install --ignore-platform-reqs
php -r "unlink('composer-setup.php');"
nginx -t
systemctl stop apache2
systemctl daemon-reload
systemctl restart nginx
systemctl reload nginx
systemctl status nginx
systemctl restart nginx
systemctl reload nginx
# visit: localhost or 0.0.0.0 or IP_ADDRESS
@linuxkeepup
Copy link
Author

hm1

@linuxkeepup
Copy link
Author

hm3

@linuxkeepup
Copy link
Author

hm4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment