phpbb3.2 install with nginx

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Ideas Centre
Post Reply
e2linuxos
Registered User
Posts: 5
Joined: Mon Aug 18, 2008 5:37 pm

phpbb3.2 install with nginx

Post by e2linuxos » Sat Dec 16, 2017 5:38 pm

I've read lots of posts on this and I still don't get it.

3.1 is easy to install, but I'm not getting past the 404 on the install click.
Can someone please give me a walk though of what nginx files to change so it will install?

I'm currently using a vbox ubuntu 16.04 mini.iso install to test migrating from 3.0.14 to 3.2 which works with apache, but I'm not getting anywhere with nginx.

When I get this working I'll be using it on a server for a linux support forum I have full control of.

Thanks in advance.

:D

xeon235
Registered User
Posts: 8
Joined: Sat Dec 02, 2017 8:58 am

Re: phpbb3.2 install with nginx

Post by xeon235 » Sun Dec 17, 2017 1:30 pm

recently migrated forum with phpBB 2 by Przemo (modification of the original phpBB 2), which happened on apache and MySQL on phpBB 3.2.1, which I put on nginx and MariaDB - no major problems - I had to copy only the rules for rewriting addresses generated to the nginx configuration files by expanding SEO. Here is an example of the configuration that I have made on the test server

Code: Select all

server {
    listen      0.0.0.0:80;
    server_name domain.com;
    root        /var/www/domaincom;

    access_log  /var/log/nginx/access.log;
    error_log   /var/log/nginx/error.log error;

    index index.php index.html index.htm;

    location ~ /\. {
        deny all;
    }

    location / {	
	index index.php index.html index.htm;
		#SEO URL Rewrtite
	
    }
	
	if ($request_uri ~* "\/\/") {
		rewrite ^/(.*) /$1 permanent;
	}
	
	# Deny access to internal phpbb files.
	location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
		deny all;
		# deny was ignored before 0.8.40 for connections over IPv6.
		# Use internal directive to prohibit access on older versions.
		internal;
	}

	# Deny access to version control system directories.
	location ~ /\.svn|/\.git {
		deny all;
		internal;
	}

    location ~* \.(css|js|ico|gif|jpe?g|png)$ {
	expires 604800;
	add_header Pragma public;
        add_header Cache-Control "public, must-revalidate, proxy-revalidate";
    }

    location ~* \.(eot|otf|ttf|woff|woff2)$ {
		add_header Access-Control-Allow-Origin *;
		expires 604800;
    }

    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_read_timeout 60;
        include /etc/nginx/fastcgi_params;
        fastcgi_pass  127.0.0.1:9012;
        fastcgi_index index.php;
		fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    }
    
}

e2linuxos
Registered User
Posts: 5
Joined: Mon Aug 18, 2008 5:37 pm

Re: phpbb3.2 install with nginx

Post by e2linuxos » Sun Dec 17, 2017 7:05 pm

Thanks,

Had another go for a couple of hours.

Still can't get it to work though or actually get anything other than 404/503 anywhere now.

Finding this very frustrating, but appreciate the help.

Most likely going to end up going back to apache if I can't get my head around this.
Everything other than phpbb3.2.x works with nginx on the vbox I'm testing this on prior to using real hardware.

I could go on a rant, but its not constructive.

I appreciate the help.

xeon235
Registered User
Posts: 8
Joined: Sat Dec 02, 2017 8:58 am

Re: phpbb3.2 install with nginx

Post by xeon235 » Sun Dec 17, 2017 9:04 pm

show your nginx configuration file, and enter url addresses under which the forum should work, maybe something can be done

Post Reply

Return to “phpBB Discussion”

Who is online

Users browsing this forum: AmigoJack and 45 guests