yum install php-devel php72w-devel wget https://pecl.php.net/get/imagick-3.4.4.tgz cd imagick-3.4.4 phpize ./configure --with-php-config=/usr/bin/php-config make && make install systemctl restart php-fpm
创建数据库
使用如下命令为 Filerun 建立数据库, your_password 需改为自己的密码:
1 2 3 4 5 6
mysql -u root -p create database filerun; #创建名为filerun的数据库 create user 'filerun'@'localhost' identified by 'your_password'; #创建一个用户名为 filerun ,密码为 your_password 的用户 grant all privileges on filerun.* to 'filerun'@'localhost' identified by 'your_password'; #授予访问权限 flush privileges; #刷新权限 quit
expose_php = Off error_reporting = E_ALL & ~E_NOTICE display_errors = Off display_startup_errors = Off log_errors = On error_log = /var/log/php_errors.log ignore_repeated_errors = Off
allow_url_fopen = On allow_url_include = Off variables_order = "GPCS" allow_webdav_methods = On memory_limit = 128M max_execution_time = 300 output_buffering = Off output_handler = "" zlib.output_compression = Off zlib.output_handler = "" safe_mode = Off register_globals = Off magic_quotes_gpc = Off
file_uploads = On upload_max_filesize = 1024M post_max_size = 1024M
include /etc/letsencrypt/options-ssl-nginx.conf;#这里包含了页面加密信息,比如tls ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf;