Install Nextcloud
Install Nextcloud
Install Nextcloud
[root@dlp ~]#
dnf --enablerepo=epel -y install php-pear php-mbstring php-pdo php-intl php-gd php-pecl-
[root@dlp ~]#
vi /etc/php-fpm.d/nextcloud.conf
;; create new
[nextcloud]
user = apache
group = apache
listen = /run/php-fpm/nextcloud.sock
listen.acl_users = apache
listen.allowed_clients = 127.0.0.1
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/session
;; maybe you need to configure parameters below if users want to upload large files
php_value[max_execution_time] = 3600
php_value[memory_limit] = 2G
php_value[post_max_size] = 2G
php_value[upload_max_filesize] = 2G
php_value[max_input_time] = 3600
php_value[max_input_vars] = 2000
php_value[date.timezone] = Asia/Tokyo
php_value[opcache.enable] = 1
php_value[opcache.memory_consumption] = 128
php_value[opcache.interned_strings_buffer] = 8
php_value[opcache.max_accelerated_files] = 10000
php_value[opcache.revalidate_freq] = 1
php_value[opcache.save_comments] = 1
[root@dlp ~]#
systemctl restart php-fpm
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
<FilesMatch \.(php|phar)$>
SetHandler "proxy:unix:/run/php-fpm/nextcloud.sock|fcgi://localhost"
</FilesMatch>
</Directory>
[root@dlp ~]#
wget https://download.nextcloud.com/server/releases/latest.zip -P /var/www/
[root@dlp ~]#
unzip /var/www/latest.zip -d /var/www/
[root@dlp ~]#
chown -R apache. /var/www/nextcloud
[root@dlp ~]#
systemctl restart httpd
[root@dlp ~]#
setsebool -P httpd_unified on
[root@dlp ~]#
setsebool -P httpd_execmem on
[root@dlp ~]#
setsebool -P httpd_use_fusefs on
[root@dlp ~]#
setsebool -P nis_enabled on
[root@dlp ~]#
vi nextcloud.te
# create new
require {
type configfs_t;
type httpd_t;
type httpd_sys_script_t;
type fuse_device_t;
type httpd_sys_rw_content_t;
type kernel_t;
type lib_t;
type init_t;
type unconfined_t;
type local_login_t;
type crond_t;
type policykit_t;
type lsmd_t;
type mcelog_t;
type firewalld_t;
type systemd_logind_t;
type irqbalance_t;
type udev_t;
type sshd_t;
type NetworkManager_t;
type virt_qemu_ga_t;
type unconfined_service_t;
type syslogd_t;
type setroubleshootd_t;
type rhsmcertd_t;
type getty_t;
type mysqld_t;
type auditd_t;
type chronyd_t;
type system_dbusd_t;
class file { create unlink write open read execute execute_no_trans getattr };
class dir { add_name write read remove_name rmdir getattr setattr mounton search };
class lnk_file unlink;
class chr_file { open read write };
class process setrlimit;
class system module_request;
}
[root@dlp ~]#
checkmodule -m -M -o nextcloud.mod nextcloud.te
[root@dlp ~]#
semodule_package --outfile nextcloud.pp --module nextcloud.mod
[root@dlp ~]#
semodule -i nextcloud.pp
[9] Access to the URL [https://(Server's Hostname or IP address)/nextcloud/] with Web browse
Database connection information. Input any admin user name and password. For Database
[root@dlp ~]#
systemctl restart httpd php-fpm
M a t c h e d C o n t e n t