Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gigsforlinux/cbc805031d002008ea31f534b5e1364e to your computer and use it in GitHub Desktop.
Save gigsforlinux/cbc805031d002008ea31f534b5e1364e to your computer and use it in GitHub Desktop.
I'll Do Humhub-An OpenSource Social Network On LAMP Stack For You
#!/bin/sh
# YouTube:
# Things to do after install Ubuntu 20.04
sudo -i
apt update -y
apt upgrade -y
apt update -y
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt install software-properties-common
add-apt-repository ppa:ondrej/php
apt update
apt install launchpad-getkeys
launchpad-getkeys
add-apt-repository ppa:git-core/ppa
apt update -y
apt upgrade -y
apt update -y
apt install git
git config --global user.name "YourName"
git config --global user.email youremail@gmail.com
apt upgrade -y
apt -f install
apt autoremove
apt -y autoclean
apt -y clean
apt update
reboot
nano /etc/apache2/sites-available/humhub.conf
###edit this file
<VirtualHost *:80>
ServerAdmin admin@your_domain.com
DocumentRoot /var/www/humhub
ServerName your_domain.com
ServerAlias www.your_domain.com
<Directory /var/www/html/humhub>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/humhub_error.log
CustomLog ${APACHE_LOG_DIR}/humhub_access.log combined
</VirtualHost>
#
sudo service apache2 start
sudo systemctl enable apache2
sudo service apache2 restart
sudo service apache2 reload
sudo service apache2 status
sudo service mysql restart
sudo service apache2 restart
sudo service apache2 reload
@gigsforlinux
Author
@gigsforlinux
Copy link
Author

Screenshot from 2022-06-23 00-49-08
Screenshot from 2022-06-23 01-02-34

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