分页: 1 / 1
phpBB 3.3 Proteus 安装
发表于 : 2018年12月12日 08:11
由 davidyin
这个安装的过程同 phpBB 3.2.x 相比,没有什么特殊。
php 版本,当然不要再用 php 5.5.x,据说 phpBB 3.3.x 的最低版本是 php 5.6.x,然而我还是建议至少要用 php 7.1.x 的版本。
数据库,我建议用 MariaDB
使用本站提供的包含简体中文 phpBB 3.3.x 的完整安装包,是很能很快安装完毕的。
Re: phpBB 3.3 Proteus 安装
发表于 : 2018年12月12日 08:13
由 davidyin
贴一下使用的 nginx 配置:
代码: 全选
server {
listen 80;
server_name phpbb33.example.com;
server_name_in_redirect off;
root /home/davidyin/phpbb33.example.com;
index index.php;
location ~ /(config\.php|common\.php|cache|files|images/avatars/upload|includes|store) {
deny all;
return 403;
}
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
if (!-e $request_filename) {
rewrite ^(.*)$ /app.php;
}
}
location ~* \.(gif|jpe?g|png|css|js|ico)$ {
expires 30d;
}
location /install/app.php {
try_files $uri $uri/ /install/app.php?$query_string;
}
#rewrite rule for app.php or extension
location /app.php {
try_files $uri $uri/ /app.php?$query_string;
}
location = /config.php {
deny all;
}
location = /common.php {
deny all;
}
location /cache/ {
deny all;
}
location /config/ {
deny all;
}
location /files/ {
deny all;
}
location /images/avatars/upload/ {
deny all;
}
location /includes/ {
deny all;
}
location /store/ {
deny all;
}
location ~ .(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ {
add_header Access-Control-Allow-Origin "*";
expires max;
}
location ~ \.php$ {
try_files $uri $uri/ /index.php?$args;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# redirect server error pages to the static page /50x.html
#
error_page 403 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
Re: phpBB 3.3 Proteus 安装
发表于 : 2018年12月12日 08:44
由 artery
php最低接受版本:5.6.27