Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
sudo su root
apt update && apt upgrade -y
## open ssh server
apt install -y openssh-server
/etc/init.d/ssh start
systemctl start ssh
systemctl enable ssh
## apache2
apt install apache2 -y
systemctl start apache2
systemctl enable apache2
pt install -y apache2 mariadb-server libapache2-mod-php7.0 php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-intl php7.0-mcrypt php-imagick php7.0-zip php7.0-xml php7.0-mbstring
cd /tmp
tar -xvf owncloud-10.0.3.tar.bz2
chown -R www-data:www-data owncloud
mv owncloud /var/www/html/
echo "Alias /owncloud \"/var/www/html/owncloud/\" " >> /etc/apache2/sites-available/owncloud.conf
ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf
a2enmod headers
systemctl restart apache2
a2enmod env
a2enmod dir
a2enmod mime
mysql -u root –p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment