Created
November 26, 2018 13:41
-
-
Save spoutnik16/351c9ece18e9cce197af9e141393c054 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| wget https://download.owncloud.org/community/owncloud-10.0.3.tar.bz2 | |
| 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