CONTENTS
Lastmodified 2022-05-10 (火) 09:09:31
1035 13:50 locate nextcloud 1036 13:50 portinstall www/nextcloud 1037 13:56 apachectl restart 1038 14:01 graphics/ImageMagick-nox11 1039 14:02 portinstall graphics/ImageMagick-nox11 1040 14:41 history 1041 14:49 df -h 1042 14:57 locate php.ini 1043 14:59 apachectl restart 1044 15:01 apachectl restart 1045 15:03 locate config.php 1046 15:04 locate php.ini
990 6:07 cd SSL/ 991 6:08 openssl genrsa -out server.key 2048 992 6:08 openssl req -new -key server.key -out server.csr 993 6:12 openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt 994 6:16 ll 995 6:16 cp server.* /usr/local/etc/apache24/ 998 6:22 chmod 0400 /usr/local/etc/apache24/server.*
edit httpd.conf
# 以下の行のコメントを外す LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so LoadModule ssl_module libexec/apache24/mod_ssl.so Include etc/apache24/extra/httpd-ssl.conf
edit httpd-ssl.conf
<VirtualHost _default_:443> # General setup for the virtual host DocumentRoot "/usr/local/www/apache24/data" ServerName xxxx.smb.net:443 ServerAdmin xxxx@smb.net ErrorLog "/var/log/httpd-error.log" TransferLog "/var/log/httpd-access.log"
999 6:25 apachectl restart
config.sample.php
/** * Where user files are stored. The SQLite database is also stored here, when * you use SQLite. * * Default to ``data/`` in the Nextcloud directory. */ 'datadirectory' => '/usr/local/www/nextcloudnextcloud/data',
# cp -rp /usr/local/www/nextcloud/data /usr/home/Nextcloud/ # chown -R www:www /usr/home/Nextcloud/data
'datadirectory' => '/usr/home/Nextcloud/data',
/usr/local/etc/php.ini
opcache.enable=1 opcache.enable_cli=1 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.memory_consumption=128 opcache.save_comments=1 opcache.revalidate_freq=1
/usr/local/etc/apache24/Includes/nextcloud.conf
Alias /nextcloud /usr/local/www/nextcloud AcceptPathInfo On <Directory /usr/local/www/nextcloud> AllowOverride All Require all granted Header set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" </Directory>
Total access 5342:本日 1:昨日 0