Differences
This shows you the differences between two versions of the page.
|
doc:howto:owncloud [2013/01/20 19:29] mes mod_access needed |
doc:howto:owncloud [2013/04/17 15:37] (current) keffr3n |
||
|---|---|---|---|
| Line 60: | Line 60: | ||
| ===== Install & configure PHP ===== | ===== Install & configure PHP ===== | ||
| Get the dirty part: php and sqlite. I am not sure if really all these packages are necessary, but it seems so: | Get the dirty part: php and sqlite. I am not sure if really all these packages are necessary, but it seems so: | ||
| - | opkg install php5 php5-cgi php5-fastcgi php5-mod-json php5-mod-session php5-mod-zip libsqlite3 zoneinfo-core php5-mod-pdo php5-mod-pdo-sqlite php5-mod-ctype php5-mod-mbstring php5-mod-gd sqlite3-cli php5-mod-sqlite3 php5-mod-curl curl php5-mod-xml php5-mod-simplexml php5-mod-hash | + | opkg install php5 php5-cgi php5-fastcgi php5-mod-json php5-mod-session php5-mod-zip libsqlite3 zoneinfo-core php5-mod-pdo php5-mod-pdo-sqlite php5-mod-ctype php5-mod-mbstring php5-mod-gd sqlite3-cli php5-mod-sqlite3 php5-mod-curl curl php5-mod-xml php5-mod-simplexml php5-mod-hash php5-mod-dom php5-mod-iconv |
| Configure /etc/php.ini to our needs, mainly uncomment the installed Dynamic Extensions and change the doc_root to our www-root: | Configure /etc/php.ini to our needs, mainly uncomment the installed Dynamic Extensions and change the doc_root to our www-root: | ||
| extension=ctype.so | extension=ctype.so | ||
| extension=curl.so | extension=curl.so | ||
| + | extension=dom.so | ||
| + | extension=iconv.so | ||
| extension=gd.so | extension=gd.so | ||
| extension=hash.so | extension=hash.so | ||
| Line 78: | Line 80: | ||
| ===== Install & configure webserver ===== | ===== Install & configure webserver ===== | ||
| - | FIXME: Should be doable with the uHTTPd web server which is already used by LuCI instead of installing another web server.. | ||
| - | |||
| ==== use luci with httpd (default web server for luci) ==== | ==== use luci with httpd (default web server for luci) ==== | ||
| May you have allready the OpenWrt web-interface (luci) on your router, may you want to get the OpenWrt web-interface initially. | May you have allready the OpenWrt web-interface (luci) on your router, may you want to get the OpenWrt web-interface initially. | ||
| Line 86: | Line 86: | ||
| opkg install uhttpd luci | opkg install uhttpd luci | ||
| - | Configure uhttpd to serve luci on another port, therefore edit /etc/config/uhttpd: | + | You're able to start uhttpd twice: Add an new uhttpd section in the /etc/config/uhttpd file. And don't forget to serve luci on another port. |
| - | config uhttpd main | + | |'' |
| - | list listen_http 0.0.0.0:81 | + | config uhttpd owncloud |
| - | (...) | + | list listen_http 0.0.0.0:80 |
| + | list listen_http 0.0.0.0:443 | ||
| + | |||
| + | option home /owncloud | ||
| + | |||
| + | list interpreter ".php=/usr/bin/php-cgi" | ||
| + | |||
| + | option index_page index.php, index.html, index.htm, default.html, default.htm | ||
| + | |||
| + | ... | ||
| + | |||
| + | config uhttpd config | ||
| + | list listen_https 192.168.1.1:81 | ||
| + | list listen_https 0.0.0.0:444 | ||
| + | |||
| + | option home /www | ||
| + | ''| | ||
| after a restart of uhhtp | after a restart of uhhtp | ||
| Line 97: | Line 113: | ||
| you should be able to reach luci under e.g. http://192.168.1.1:81 | you should be able to reach luci under e.g. http://192.168.1.1:81 | ||
| - | |||
| - | //If the httpd server is located on the SquashFS it is not recomend to remove the files// from the space, due to wasing space by doing this (learn more about SquashFS!). Otherwise you're able to remove httpd by typing | ||
| - | |||
| - | opkg --force-depends remove uhttpd | ||
| ==== disable httpd and use luci on lighttpd ==== | ==== disable httpd and use luci on lighttpd ==== | ||
| Line 116: | Line 128: | ||
| opkg install lighttpd lighttpd-mod-cgi lighttpd-mod-fastcgi lighttpd-mod-access | opkg install lighttpd lighttpd-mod-cgi lighttpd-mod-fastcgi lighttpd-mod-access | ||
| + | |||
| + | //If the httpd server is located on the SquashFS it is not recomend to remove the files// from the space, due to wasing space by doing this (learn more about SquashFS!). Otherwise you're able to remove httpd by typing | ||
| + | |||
| + | opkg --force-depends remove uhttpd | ||
| FIXME: Is it possible to run luci only with fastcgi? | FIXME: Is it possible to run luci only with fastcgi? | ||
| Line 219: | Line 235: | ||
| * Diaspora: wetter_ät_diaspora.subsignal.org | * Diaspora: wetter_ät_diaspora.subsignal.org | ||
| * Twitter: @wetterfrosch | * Twitter: @wetterfrosch | ||
| + | |||
| + | and modified by others | ||
doc/howto/owncloud.1358706576.txt.bz2 · Last modified: 2013/01/20 19:29 by mes
