We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
траблы с "phpBB" на nginx + php-fpm
траблы с "phpBB" на nginx + php-fpm
парни привет
не могу установить форум "phpBB" на связке "nginx + php-fpm"
никто не сталкивался?
образец nginx-конфига в движке есть, но его "женитьба" с родным вестовским ни к чему хорошему не приводит
УРЛ типа "http://site.ru/install/app.php" работает, а вот "http://site.ru/install/app.php/install" выдает 404 ошибку
мегакрайне нужен хэлп
не могу установить форум "phpBB" на связке "nginx + php-fpm"
никто не сталкивался?
образец nginx-конфига в движке есть, но его "женитьба" с родным вестовским ни к чему хорошему не приводит
УРЛ типа "http://site.ru/install/app.php" работает, а вот "http://site.ru/install/app.php/install" выдает 404 ошибку
мегакрайне нужен хэлп
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: траблы с "phpBB" на nginx + php-fpm
Поиск - наше все.styleroom wrote: ↑Fri Jun 28, 2019 10:06 amпарни привет
не могу установить форум "phpBB" на связке "nginx + php-fpm"
никто не сталкивался?
образец nginx-конфига в движке есть, но его "женитьба" с родным вестовским ни к чему хорошему не приводит
УРЛ типа "http://site.ru/install/app.php" работает, а вот "http://site.ru/install/app.php/install" выдает 404 ошибку
мегакрайне нужен хэлп
viewtopic.php?f=29&t=17937
Re: траблы с "phpBB" на nginx + php-fpm
отлично! помогло!
вот мой nginx-файл для phpBB
Code: Select all
server {
listen 11.22.333.444:80;
server_name site.ru www.site.ru;
root /home/admin/web/site.ru/public_html;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/site.ru.log combined;
access_log /var/log/nginx/domains/site.ru.bytes bytes;
error_log /var/log/nginx/domains/site.ru.error.log error;
###########################################################
location / {
# phpBB uses index.htm
index index.php index.html index.htm;
try_files $uri $uri/ @rewriteapp;
}
location @rewriteapp {
rewrite ^(.*)$ /app.php/$1 last;
}
# Deny access to internal phpbb files.
location ~ /(config\.php|common\.php|cache|files|images/avatars/upload|includes|(?<!ext/)phpbb|store|vendor) {
deny all;
# deny was ignored before 0.8.40 for connections over IPv6.
# Use internal directive to prohibit access on older versions.
internal;
return 404;
}
# Pass the php scripts to fastcgi server specified in upstream declaration.
location ~ \.php(/|$) {
# Unmodified fastcgi_params from nginx distribution.
include fastcgi_params;
# Necessary for php.
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
try_files $uri $uri/ /app.php$is_args$args;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9025; # - должно быть то же самое, что и в секции location / дефолтного шаблона
}
# Correctly pass scripts for installer
location /install/ {
# phpBB uses index.htm
try_files $uri $uri/ @rewrite_installapp;
# Pass the php scripts to fastcgi server specified in upstream declaration.
location ~ \.php(/|$) {
# Unmodified fastcgi_params from nginx distribution.
include fastcgi_params;
# Necessary for php.
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
try_files $uri $uri/ /install/app.php$is_args$args;
fastcgi_pass 127.0.0.1:9025; # - должно быть то же самое, что и в секции location / дефолтного шаблона
}
}
location @rewrite_installapp {
rewrite ^(.*)$ /install/app.php/$1 last;
}
# Deny access to version control system directories.
location ~ /\.svn|/\.git {
deny all;
internal;
}
##########################################################
error_page 403 /error/404.html;
error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html;
location /error/ {
alias /home/admin/web/site.ru/document_errors/;
}
location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;
}
location /vstats/ {
alias /home/admin/web/site.ru/stats/;
include /home/admin/conf/web/site.ru.auth*;
}
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include /etc/nginx/conf.d/webmail.inc*;
include /home/admin/conf/web/nginx.site.ru.conf*;
}