Berikut ini adalah contoh instalasi OwnCloud 8.0 pre-alpha pada server Debian 6 + Nginx + Php-Fpm :
1 2 3 4 5 |
# wget http://download.owncloud.org/community/daily/owncloud-daily-master.tar.bz2 # tar xjf owncloud-daily-master.tar.bz2 # mkdir -p owncloud/data # chmod 770 owncloud/data # chmod 777 owncloud/config/ |
Silakan download dan extract file instalasinya sesuai lokasi webserver dan domain yang diinginkan. Kemudian jika mengalami masalah dengan seting Nginx, silakan dipergunakan contoh seting Nginx saya berikut ini :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
server { listen 80; listen [::]:80; server_name cse.asia; rewrite ^/(.*) http://www.cse.asia/$1 permanent; } server { listen 80; listen [::]:80; server_name www.cse.asia; access_log off; error_log /home/http/logs/cse.asia.log; index index.html index.htm index.php; root /home/http/hosts/cse.asia; rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect; rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect; rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect; error_page 403 /core/templates/403.php; error_page 404 /core/templates/404.php; location ~ ^/(data|config|db_structure\.xml) { deny all; } location / { rewrite ^/.well-known/host-meta /public.php?service=host-meta last; rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last; rewrite ^/.well-known/carddav /remote.php/carddav/ redirect; rewrite ^/.well-known/caldav /remote.php/caldav/ redirect; rewrite ^(/core/doc/[^\/]+/)$ $1/index.html; try_files $uri $uri/ index.php; } # Error pages? #location / { # try_files $uri $uri/ =404; #} #error_page 404 /404.html; #location = /50x.html { # root /usr/share/nginx/html; #} # Pass PHP files to FPM. location ~ ^(.+?\.php)(/.*)?$ { try_files $1 =404; #fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/home/http/private/php.socket; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$1; fastcgi_param PATH_INFO $2; #fastcgi_param HTTPS on; } # Static File Caching? #location ~*.(jpg|jpeg|png|gif|ico|css|js)$ { # expires 30d; #} # Deny hidden files. location ~ /\. { deny all; } include /etc/nginx/conf.d/cache.conf; include /etc/nginx/conf.d/deny.conf; include /etc/nginx/php.d/erawanarifn.conf; } |
Sesuaikan seting socket untuk handling Php sesuai dengan yang dipakai, misalnya konfigurasi Php-fpm saya memakai unix socket seperti berikut fastcgi_pass unix:/home/http/private/php.socket
Setelah selesai, restart Nginx dan Php-fpm, mulai instalasi via web, dan isi user untuk admin login dan databasenya 🙂
Sebagai contoh, kita bisa mengakses www.cse.asia untuk Live Demo OwnCloud 8 ini