Advertisement
Guest User

konfigurasi-owncloud-debian8.7

a guest
Jan 20th, 2019
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1.  
  2. PANDUAN INSTALLASI
  3. ======================================================
  4. #apt-get install mariadb-server mariadb-client apache2 libapache2-mod-php5 php5-json php5-gd php5-mysql php5-curl php5-intl php5-mcrypt php5-imagick
  5. ======================================================
  6. #wget https://download.owncloud.org/community/owncloud-9.0.0.tar.bz2
  7. ======================================================
  8. #tar xjvf owncloud-9.0.0.tar.bz2
  9. ======================================================
  10. #cp -R owncloud /var/www
  11. ======================================================
  12. #cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/owncloud.conf
  13. ======================================================
  14. #nano etc/apache2/sites-available/owncloud.conf
  15. ======================================================
  16. Alias /owncloud "/var/www/owncloud/"
  17. <Directory /var/www/owncloud/>
  18. Options +FollowSymlinks
  19. AllowOverride All
  20. <IfModule mod_dav.c>
  21. Dav off
  22. </IfModule>
  23. SetEnv HOME /var/www/owncloud
  24. SetEnv HTTP_HOME /var/www/owncloud
  25. </Directory>
  26. ======================================================
  27. #a2ensite owncloud
  28. #a2enmod rewrite
  29. #a2enmod headers
  30. #a2dissite 000-default.conf
  31. #service apache2 restart
  32. #chown -R www-data:www-data /var/www/owncloud/
  33. #nano oc-perms.sh
  34. ===================================================
  35. #!/bin/bash
  36. ocpath='/var/www/owncloud'
  37. htuser='www-data'
  38. htgroup='www-data'
  39. rootuser='root'
  40. printf "Creating possible missing Directories\n"
  41. mkdir -p $ocpath/data
  42. mkdir -p $ocpath/assets
  43. printf "chmod Files and Directories\n"
  44. find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640
  45. find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750
  46. printf "chown Directories\n"
  47. chown -R ${rootuser}:${htgroup} ${ocpath}/
  48. chown -R ${htuser}:${htgroup} ${ocpath}/apps/
  49. chown -R ${htuser}:${htgroup} ${ocpath}/config/
  50. chown -R ${htuser}:${htgroup} ${ocpath}/data/
  51. chown -R ${htuser}:${htgroup} ${ocpath}/themes/
  52. chown -R ${htuser}:${htgroup} ${ocpath}/assets/
  53. chmod +x ${ocpath}/occ
  54. printf "chmod/chown .htaccess\n"
  55. if [ -f ${ocpath}/.htaccess ]
  56. then
  57. chmod 0644 ${ocpath}/.htaccess
  58. chown ${rootuser}:${htgroup} ${ocpath}/.htaccess
  59. fi
  60. if [ -f ${ocpath}/data/.htaccess ]
  61. then
  62. chmod 0644 ${ocpath}/data/.htaccess
  63. chown ${rootuser}:${htgroup} ${ocpath}/data/.htaccess
  64. fi
  65. ======================================================
  66. #chmod u+x oc-perms.sh
  67. #oc-perms
  68. #mysql -u root -p
  69. mysql> create database owncloud;
  70. mysql> create user admin@localhost identified by 'tkj';
  71. mysql> grant all privileges on owncloud.* to admin@localhost identified by 'tkj';
  72. mysql> flush privileges;
  73. mysql> quit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement