19,612
社区成员
发帖
与我相关
我的任务
分享
memory_limit = 128M
post_max_size = 200M
upload_max_filesize = 200M
[opcache]
opcache.enable = 1
opcache.memory_consumption = 128
opcache.max_accelerated_files = 4000
opcache.revalidate_freq = 60
; Required for Moodle
opcache.use_cwd = 1
opcache.validate_timestamps = 1
opcache.save_comments = 1
opcache.enable_file_override = 0
ExtendedStatus On
Options FollowSymLinks MultiViews
<Directory />
Options FollowSymLinks
AllowOverride none
</Directory>
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.htm
DirectoryIndex index.html
DirectoryIndex index.shtml
DirectoryIndex index.cgi
DirectoryIndex index.php
DirectoryIndex index.phtml
DirectoryIndex index.php3
</IfModule>
<Directory "/var/www/html/moodle/images">
# Ignore .htaccess files
AllowOverride None
AddType text/plain .html .htm .shtml .php
php_admin_flag engine off
</Directory>
<Directory "/var/www/html/moodlewiki/images">
# Ignore .htaccess files
AllowOverride None
AddType text/plain .html .htm .shtml .php
php_admin_flag engine off
</Directory>
ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/var/run/php5-fpm.sock1|fcgi://./var/www/html
LimitRequestBody 204857600
<Directory /var/www/html/moodle>
<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
# Moodle private data - must NOT be publically accessible
<Directory /var/www//moodledata>
<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
yum search
来的依赖模块,如 php-fpm, opcache 等,基本服务已建立,问题仍然不是很清晰。
不知道哪里有简明而完整的服务架设 step by step 教程?