Jump to content

ownCloud - строим личное облачное хранилище


Recommended Posts

24 минуты назад, asphy сказал:

Друзья, подскажите, после установки по данной инструкции аппарат Omni II способен вывозить OwnCloud?

Один раз пробовал его поставить примерно с год назад, так он был неописуемо медлительным

Я бы не рисковал. Ставил на Keenetic II, так он с трудом вытягивал. При обращении к OwnCloud оперативка съедалась моментально и роутер на пару минут зависал намертво.

Мое личное мнение, что OwnCloud на кинетиках только для Гига и Ультра. Остальные слабоваты. Повторюсь, это мое личное мнение.

Edited by Lordmaster
  • Thanks 1
  • Upvote 1
Link to comment
Share on other sites

В 13.09.2017 в 08:07, asphy сказал:

Друзья, подскажите, после установки по данной инструкции аппарат Omni II способен вывозить OwnCloud?

включить swap и-и-и...

если "повезёт"

Link to comment
Share on other sites

  • 1 month later...
В 16.06.2017 в 22:41, TheBB сказал:

lighttpd+php7+sqlite+ssl=owncloud-10.0.2

ставим пакеты


opkg install ca-certificates curl lighttpd lighttpd-mod-cgi lighttpd-mod-fastcgi openssl-util \
php7-cli php7-fastcgi php7-mod-ctype php7-mod-curl php7-mod-dom php7-mod-fileinfo php7-mod-gd \
php7-mod-hash php7-mod-json php7-mod-mbstring php7-mod-pdo-sqlite php7-mod-session php7-mod-simplexml \
php7-mod-sqlite3 php7-mod-xml php7-mod-xmlreader php7-mod-xmlwriter php7-mod-zip tar

забираем архив


curl https://download.owncloud.org/community/owncloud-10.0.2.tar.bz2 --output oc.tar.bz2

распаковываем


tar xjvf oc.tar.bz2 -C /opt/share/www/

правим php.ini

  Показать содержимое

 



[PHP]
zend.ze1_compatibility_mode = Off

; Language Options

engine = On
;short_open_tag = Off
precision    =  12
y2k_compliance = On
output_buffering = Off
;output_handler =
zlib.output_compression = Off
;zlib.output_compression_level = -1
;zlib.output_handler =
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 100

;open_basedir =
disable_functions =
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000

;ignore_user_abort = On
;realpath_cache_size = 16k
;realpath_cache_ttl = 120

; Miscellaneous

expose_php = On

; Resource Limits

max_execution_time = 30	; Maximum execution time of each script, in seconds.
max_input_time = 60	; Maximum amount of time each script may spend parsing request data.
;max_input_nesting_level = 64
memory_limit = 32M

; Error handling and logging

; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT			- run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
error_reporting  =  E_ALL & ~E_NOTICE & ~E_STRICT

display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
;report_zend_debug = 0
track_errors = Off
;html_errors = Off
;docref_root = "/phpmanual/"
;docref_ext = .html
;error_prepend_string = "<font color=#ff0000>"
;error_append_string = "</font>"
; Log errors to specified file.
;error_log = /opt/var/log/php_errors.log
; Log errors to syslog.
;error_log = syslog

; Data Handling

;arg_separator.output = "&amp;"
;arg_separator.input = ";&"
variables_order = "EGPCS"
request_order = "GP"
register_globals = Off
register_long_arrays = Off
register_argc_argv = On
auto_globals_jit = On
post_max_size = 512M
;magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
;default_charset = "iso-8859-1"
;always_populate_raw_post_data = On

; Paths and Directories

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
doc_root = "/opt/share/www"
user_dir =
extension_dir = "/opt/lib/php"
enable_dl = On
;cgi.force_redirect = 1
;cgi.nph = 1
;cgi.redirect_status_env = ;
cgi.fix_pathinfo=1
;fastcgi.impersonate = 1;
;fastcgi.logging = 0
;cgi.rfc2616_headers = 0

; File Uploads

file_uploads = On
upload_tmp_dir = "/opt/tmp"
upload_max_filesize = 512M
max_file_uploads = 20

; Fopen wrappers

allow_url_fopen = On
allow_url_include = Off
;from="john@doe.com"
;user_agent="PHP"
default_socket_timeout = 60
;auto_detect_line_endings = Off

 

правим lighttpd.conf

  Показать содержимое

 



server.document-root        = "/opt/share/www"
server.upload-dirs          = ( "/tmp" )
server.errorlog             = "/opt/var/log/lighttpd/error.log"
server.pid-file             = "/opt/var/run/lighttpd.pid"
#server.username             = "http"
#server.groupname            = "www-data"

index-file.names            = ( "index.php", "index.html",
                                "index.htm", "default.htm",
                              )

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

### Options that are useful but not always necessary:
#server.chroot               = "/"
server.port                 = 81
#server.bind                 = "localhost"
#server.tag                  = "lighttpd"
#server.errorlog-use-syslog  = "enable"
server.network-backend      = "writev"

### Use IPv6 if available
#include_shell "/opt/share/lighttpd/use-ipv6.pl"

#dir-listing.encoding        = "utf-8"
#server.dir-listing          = "enable"

include "/opt/etc/lighttpd/mime.conf"
include "/opt/etc/lighttpd/conf.d/*.conf"

$HTTP["url"] =~ "^/owncloud/data/" {
url.access-deny = ("")
}
$HTTP["url"] =~ "^/owncloud($|/)" {
dir-listing.activate = "disable"
}

#ssl
$SERVER["socket"] == ":443" {
    ssl.engine = "enable"
    ssl.pemfile = "/opt/etc/lighttpd/certs/lighttpd.pem"

    # enforce strong cypher
    ssl.use-sslv2 = "disable"
    ssl.cipher-list = "TLSv1+HIGH !SSLv2 RC4+MEDIUM !aNULL !eNULL !3DES @STRENGTH"
}

 

правим 30-fastcgi.conf

  Показать содержимое

 



#######################################################################
##
##  FastCGI Module 
## --------------- 
##
## See http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI
##
server.modules += ( "mod_fastcgi" )

##
## PHP Example
## For PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini.
##
## The number of php processes you will get can be easily calculated:
##
## num-procs = max-procs * ( 1 + PHP_FCGI_CHILDREN )
##
## for the php-num-procs example it means you will get 17*5 = 85 php
## processes. you always should need this high number for your very
## busy sites. And if you have a lot of RAM. :)
##
fastcgi.server = ( ".php" =>
                   ( "php-local" =>
                     (
                       "socket" => "/opt/tmp/php-fastcgi-1.socket",
                       "bin-path" => "/opt/bin/php-fcgi",
                       "max-procs" => 1,
                       "broken-scriptfilename" => "enable",
                     )
                   ),
#                   ( "php-tcp" =>
#                     (
#                       "host" => "127.0.0.1",
#                       "port" => 9999,
#                       "check-local" => "disable",
#                       "broken-scriptfilename" => "enable",
#                     )
#                   ),
#
#                   ( "php-num-procs" =>
#                     (
#                       "socket" => socket_dir + "/php-fastcgi-2.socket",
#                       "bin-path" => server_root + "/cgi-bin/php5",
#                       "bin-environment" => (
#                         "PHP_FCGI_CHILDREN" => "16",
#                         "PHP_FCGI_MAX_REQUESTS" => "10000",
#                       ),
#                       "max-procs" => 5,
#                       "broken-scriptfilename" => "enable",
#                     )
#                   ),
                )

##
## Ruby on Rails Example
##
## Normally you only run one Rails application on one vhost.
##
#$HTTP["host"] == "rails1.example.com" {
#  server.document-root  = server_root + "/rails/someapp/public"
#  server.error-handler-404 = "/dispatch.fcgi"
#  fastcgi.server = ( ".fcgi" =>
#    ("someapp" =>
#      ( "socket" => socket_dir + "/someapp-fcgi.socket",
#        "bin-path" => server_root + "/rails/someapp/public/dispatch.fcgi",
#        "bin-environment" => (
#              "RAILS_ENV" => "production",
#              "TMP" => home_dir + "/rails/someapp",
#        ),
#      )
#    )
#  )
#}

##
## Another example with multiple rails applications on one vhost.
##
## http://blog.lighttpd.net/articles/2005/11/23/lighttpd-1-4-8-and-multiple-rails-apps
##
#$HTTP["host"] == "rails2.example.com" {
#  $HTTP["url"] =~ "^/someapp1" {
#    server.document-root  = server_root + "/rails/someapp1/public"
#    server.error-handler-404 = "/dispatch.fcgi"
#    fastcgi.server = ( ".fcgi" =>
#      ("someapp1" =>
#        ( "socket" => socket_dir + "/someapp1-fcgi.socket",
#          "bin-path" => server_root + "/rails/someapp1/public/dispatch.fcgi",
#          "bin-environment" => (
#                "RAILS_ENV" => "production",
#                "TMP" => home_dir + "/rails/someapp1",
#          ),
#          "strip-request-uri" => "/someapp1/"
#        )
#      )
#    )
#  }
#
#  $HTTP["url"] =~ "^/someapp2" {
#    server.document-root  = server_root + "/rails/someapp2/public"
#    server.error-handler-404 = "/dispatch.fcgi"
#    fastcgi.server = ( ".fcgi" =>
#      ("someapp2" =>
#        ( "socket" => socket_dir + "/someapp2-fcgi.socket",
#          "bin-path" => server_root + "/rails/someapp2/public/dispatch.fcgi",
#          "bin-environment" => (
#                "RAILS_ENV" => "production",
#                "TMP" => home_dir + "/rails/someapp2",
#          ),
#          "strip-request-uri" => "/someapp2/"
#        )
#      )
#    )
#  }
#}

## chrooted webserver + external PHP
##
## $ spawn-fcgi -f /usr/bin/php-cgi -p 2000 -a 127.0.0.1 -C 8
##
## webserver chrooted to /srv/www/
## php running outside the chroot
#
#fastcgi.server = ( 
#  ".php" => (( 
#    "host" => "127.0.0.1",
#    "port" => "2000",
#    "docroot" => "/srv/www/servers/www.example.org/htdocs/"
#  )))
#
#server.chroot = "/srv/www"
#server.document-root = "/servers/wwww.example.org/htdocs/"
#

##
#######################################################################

 

создаём папку


mkdir -p ../etc/lighttpd/certs

переходим в неё, создаём pem-файл и задаём ему права


cd /opt/etc/lighttpd/certs/
openssl req -new -x509 -keyout lighttpd.pem -out lighttpd.pem -days 1095 -nodes
chmod 400 lighttpd.pem

проверяем корректность конфига


lighttpd -t -f /opt/etc/lighttpd/lighttpd.conf

запускаем сервер (или рестартим запущенный)


/opt/etc/init.d/S80lighttpd start

идём по адресу (своего устройства) и вводим данные (свои) и жмём "Завершить установку"

screen_186.png

на выходе имеем

screen_187.png

"закручиваем гайки" и настраиваем под себя...

Доброго дня! Сделал всё по этой инструкции, но при запуске lighttpd возникает это:

~ # /opt/etc/init.d/S80lighttpd start
 Starting lighttpd... Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
             failed.

Кинетик Ultra ndms v2.06(AAGJ.0)C3

Link to comment
Share on other sites

2 часа назад, mrlis сказал:

Доброго дня! Сделал всё по этой инструкции, но при запуске lighttpd возникает это:


~ # /opt/etc/init.d/S80lighttpd start
 Starting lighttpd... Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
             failed.

Кинетик Ultra ndms v2.06(AAGJ.0)C3

Это дикое старье мамонта, перейдите на 2.09 / 2.10 / 2.11.

Link to comment
Share on other sites

В 02.12.2017 в 17:15, Le ecureuil сказал:

Это дикое старье мамонта, перейдите на 2.09 / 2.10 / 2.11.

Перешёл на 2.11

В 02.12.2017 в 18:39, TheBB сказал:

Прошел все пункты по инструкции - всё запустилось. Проверяйте настройки lighttpd.

Всё заработало. проблема была в запущенном nginx

Осталось найти как подключить жесткий диск готово)

Edited by mrlis
Link to comment
Share on other sites

4 часа назад, vvv506 сказал:

 

Поделитесь... это про второй по usb?

Собственно да) Чтобы хранилище было не на флешке а на отдельном харде подключенном к второму юсби порту. Решение нашёл в первом посте)

Link to comment
Share on other sites

Это немножко не то. Надо как-то подцепить второй диск как внешнее хранилище. Own стоит на 500 Гиг, что более чем достаточно, а второй качает торренты и он 2 Тв... совместить бы для удобства доступа из вне.

Link to comment
Share on other sites

  • 3 weeks later...

mysql_install_db --datadir=/media/Main/opt/var --basedir=/media/Main/opt --force

не работает, команда не найдена.

php7-mod-mysql в entware нету http://pkg.entware.net/binaries/mipsel/Packages.html
только php7-mod-mysqli - пакет установил, но команды mysql_install_db все равно  не понимает.

Edited by Nuke
Link to comment
Share on other sites

28 минут назад, Nuke сказал:

не работает, команда не найдена.

если меняете пути, должны разбираться в синтаксисе (опциях). по дефолту оно работает

Скрытый текст

~ # mysql_install_db --datadir=/opt/var --basedir=/opt --force
Installing MariaDB/MySQL system tables in '/opt/var' ...
171223 17:54:45 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
171223 17:54:45 [Note] /opt/bin/mysqld (mysqld 5.5.58-MariaDB) starting as process 12274 ...
OK
Filling help tables...
171223 17:54:46 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
171223 17:54:46 [Note] /opt/bin/mysqld (mysqld 5.5.58-MariaDB) starting as process 12282 ...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/opt/bin/mysqladmin' -u root password 'new-password'
'/opt/bin/mysqladmin' -u root -h Keenetic_Giga password 'new-password'

Alternatively you can run:
'/opt/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

You can start the MariaDB daemon with:
cd '/opt' ; /opt/bin/mysqld_safe --datadir='/opt/var'

You can test the MariaDB daemon with mysql-test-run.pl
cd '/opt/mysql-test' ; perl mysql-test-run.pl

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

~ # 

 

 

Link to comment
Share on other sites

Так тут вероятно не в путях дело, команды просто нету такой:

-sh: mysqli_install_db: not found
 

Вы сами какой в итоге пакет ставили, если в entware его сейчас нет? php7-mod-mysqli ?

Link to comment
Share on other sites

"машку" (mariadb). php-mod-mysqli - php-модуль для работы с БД.

как раз таки в путях (не правильно)

~ # mysql_install_db --datadir=/media/Main/opt/var --basedir=/media/Main/opt --force

FATAL ERROR: Could not find my_print_defaults

The following directories were searched:

    /media/Main/opt/bin
    /media/Main/opt/extra

или так

~ # mysql_install_db --datadir=/media/Main/opt/var --basedir=/opt --force
mkdir: can't create directory '/media/': Read-only file system
Fatal error Can't create database directory '/media/Main/opt/var'

корректная отработка запуска, в предыдущем посте

и ещё... оно было актуально для mysql, для mariadb можно обойтись запуском `mysql_install_db`

Скрытый текст

~ # mysql_install_db 
Installing MariaDB/MySQL system tables in '/opt/var/mysql/' ...
171223 18:24:41 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
171223 18:24:41 [Note] /opt/bin/mysqld (mysqld 5.5.58-MariaDB) starting as process 12661 ...
OK
Filling help tables...
171223 18:24:43 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
171223 18:24:43 [Note] /opt/bin/mysqld (mysqld 5.5.58-MariaDB) starting as process 12669 ...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/opt/bin/mysqladmin' -u root password 'new-password'
'/opt/bin/mysqladmin' -u root -h Keenetic_Giga password 'new-password'

Alternatively you can run:
'/opt/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

You can start the MariaDB daemon with:
cd '/opt' ; /opt/bin/mysqld_safe --datadir='/opt/var/mysql/'

You can test the MariaDB daemon with mysql-test-run.pl
cd '/opt/mysql-test' ; perl mysql-test-run.pl

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

~ # 

 

 

Edited by TheBB
дополнил
  • Thanks 1
Link to comment
Share on other sites

Спасибо, всё взлетело по вашему гайду с lighttpd. Даже проще все оказалось.

Есть или способ разрешить доступ к облаку с любого адреса? Пользуюсь устройствами, которые так или иначе имеют динамический ip , все вносить в конфиг нереально.
В чем разница по включению https на lighttpd ? Тупо внести указанные в гайде строчки в lighttpd.conf не помогло, сервак даже запускаться с ними отказывается. Вероятно, метод другой.

 

Edited by Nuke
Link to comment
Share on other sites

46 минут назад, Nuke сказал:

Есть или способ разрешить доступ к облаку с любого адреса?

keendns не подходит?

46 минут назад, Nuke сказал:

В чем разница по включению https на lighttpd ?

нужно ставить и настраивать соотв. модули лайти (lighttpd)

Link to comment
Share on other sites

3 часа назад, TheBB сказал:

keendns не подходит?

4 часа назад, Nuke сказал:

я имел ввиду это, при открытии сайта извне:

 

 

Скрытый текст

scr.PNG

 

Edited by Nuke
Link to comment
Share on other sites

Есть ли совет по вопросу выше? Это уже общая настройка, не корнкретно мой случай. По дефолу owncloud запрещает на себя заходить не внесенным в список адресам. Как разрешить все?

Link to comment
Share on other sites

2 часа назад, Nuke сказал:

Есть ли совет по вопросу выше? Это уже общая настройка, не корнкретно мой случай. По дефолу owncloud запрещает на себя заходить не внесенным в список адресам. Как разрешить все?

Вы уверены в этом? В данном сообщении сказано что вы заходите на owncloud по адресу, который он не знает. Просто внесите в /opt/share/www/owncloud/config/config.php (или там где он у вас установлен) свои адреса и все.

Пример из моего конфига (ip замените на свое):

Скрытый текст

  'trusted_domains' => 
  array (
    0 => 'ip1:86',
    1 => 'ip2:486',
    2 => 'ip3',
    3 => 'xxx.yyy.keenetic.pro',

 

Edited by Lordmaster
  • Upvote 1
Link to comment
Share on other sites

  • 3 weeks later...

все сделал, а в конце вот такая фигня

Доступ запрещён

CSRF check failed

 

Как заново перейти на первую страничку настроек, где вбиваешь логин и пароль админа и название базы данных ??

Удалить файл config.php

image.png.7e0d1bdce625063600fba8f7898585d6.png

Edited by SimPS
Link to comment
Share on other sites

9 часов назад, SimPS сказал:

все сделал, а в конце вот такая фигня

Доступ запрещён

CSRF check failed

 

Как заново перейти на первую страничку настроек, где вбиваешь логин и пароль админа и название базы данных ??

Удалить файл config.php

image.png.7e0d1bdce625063600fba8f7898585d6.png

Если не изменяет память, то такое окно убирается, когда в настройках mysql выставить binlog_format=mixed.

Link to comment
Share on other sites

В 12.01.2018 в 09:09, Lordmaster сказал:

Если не изменяет память, то такое окно убирается, когда в настройках mysql выставить binlog_format=mixed.

не помогло ((

 

теперь такая ошибка

 

Доступ запрещён

CSRF check failed

Edited by SimPS
Link to comment
Share on other sites

  • 3 weeks later...
В 12.01.2018 в 20:09, SimPS сказал:

не помогло ((

 

теперь такая ошибка

 

Доступ запрещён

CSRF check failed

вот тоже вчера решил заняться и уперся в эту ошибку... ставил по рецепту 10 версии

Link to comment
Share on other sites

вот тоже вчера решил заняться и уперся в эту ошибку... ставил по рецепту 10 версии

Может кто из умельцев подскажет?

 

Sent from my Redmi Note 4X using Tapatalk

 

 

 

Link to comment
Share on other sites

Скрытый текст

пакеты


opkg install bzip2 lighttpd-mod-access lighttpd-mod-fastcgi php7-cgi php7-mod-ctype \
php7-mod-curl php7-mod-dom php7-mod-fileinfo php7-mod-gd php7-mod-hash php7-mod-iconv \
php7-mod-json php7-mod-mbstring php7-mod-pdo-sqlite php7-mod-session php7-mod-simplexml \
php7-mod-sqlite3 php7-mod-xml php7-mod-xmlreader php7-mod-xmlwriter php7-mod-zip

архив


wget -O - http://download.owncloud.org/community/owncloud-10.0.4.tar.bz2 | \
bzip2 -cd | tar -xvC /opt/share/www/

конфиг сервера


server.port = 81

fastcgi.server = (
  ".php" =>
    ( "localhost" =>
      ( "socket" => "/tmp/php-fcgi.sock",
        "bin-path" => "/opt/bin/php-fcgi",
        "max-procs" => 1,
        "bin-environment" =>
          ( "PHP_FCGI_CHILDREN" => "2",
            "PHP_FCGI_MAX_REQUESTS" => "1000"
          )
        )
     )
 )

$HTTP["url"] =~ "^/owncloud/data/" {
  url.access-deny = ("")
}

$HTTP["url"] =~ "^/owncloud($|/)" {
  dir-listing.activate = "disable"
}

конфиг пыха


upload_max_filesize = 100M 
post_max_size = 100M 
memory_limit = 32M

старт


/opt/etc/init.d/S80lighttpd start


 

 

Link to comment
Share on other sites

очень прошу понять и простить, но... как правильно удалить предыдущую версию?
Да можно форматнуть флешку и с нуля все поставить

Sent from my Redmi Note 4X using Tapatalk

Link to comment
Share on other sites

rm -rf /opt/share/www/owncloud

или где там оно установлено + если БД mariadb (mysql), "дропнуть" используемую owncloud базу

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...