VPS running nginx - using extensions

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
Frederik10k
Registered User
Posts: 7
Joined: Mon Apr 28, 2008 9:52 pm

VPS running nginx - using extensions

Post by Frederik10k » Thu Feb 05, 2015 12:14 pm

Hei there!

I just installed a fresh phpBB 3.1.3. Now I want to install a few extensions. But whenever i try to open the extensionpage like www.mydomain.com/app.php/subway-options-panel I get a 404 Not Found.

I there a config of nginx which I have to fix?

rxu
Extensions Development Team
Posts: 3005
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: VPS running nginx - using extensions

Post by rxu » Thu Feb 05, 2015 3:21 pm

I'm not an expert on this, but you need to put the rewrite rule to nginx config file like that

Code: Select all

try_files $uri $uri/ /app.php?$query_string;
I'm not sure where do you have the config file and thus where you'd be putting this line, this could be either the server block or location which is related to your phpBB board (the latter is preferred I assume).
Last edited by rxu on Fri Feb 06, 2015 4:38 am, edited 1 time in total.

Frederik10k
Registered User
Posts: 7
Joined: Mon Apr 28, 2008 9:52 pm

Re: VPS running nginx - using extensions

Post by Frederik10k » Thu Feb 05, 2015 9:06 pm

Works like a charm. :)


Code: Select all

location /app.php {
        try_files $uri $uri/ /app.php?$query_string;
}

Shamalamadindong
Registered User
Posts: 2
Joined: Fri Dec 23, 2016 2:04 am

Re: VPS running nginx - using extensions

Post by Shamalamadindong » Fri Dec 23, 2016 11:26 pm

Apologies for bringing up an old topic.

Does this solution still work?

Code: Select all

2016/12/23 23:02:27 [error] 169#169: *59 open() "/usr/share/nginx/html/forum/app.php/ajaxshoutbox/post" failed (20: Not a directory), client: myip, server: localhost, request: "POST /forum/app.php/ajaxshoutbox/post HTTP/1.1", host: "www.myforum", referrer: "http://www.myforum/forum/index.php?sid=a711f9003f9dcb9988be5de76c97466c"
2016/12/23 23:11:11 [error] 169#169: *60 open() "/usr/share/nginx/html/forum/app.php/ajaxshoutbox/post" failed (20: Not a directory), client: myip, server: localhost, request: "POST /forum/app.php/ajaxshoutbox/post HTTP/1.1", host: "www.myforum", referrer: "http://www.myforum/forum/index.php?sid=a711f9003f9dcb9988be5de76c97466c"

Shamalamadindong
Registered User
Posts: 2
Joined: Fri Dec 23, 2016 2:04 am

Re: VPS running nginx - using extensions

Post by Shamalamadindong » Mon Dec 26, 2016 12:28 am

For any people in the future finding this,

I spent 3 hours trying to fix this before i realized my mistake...


location /app.php {
try_files $uri $uri/ /forum/app.php?$query_string;
}

Locked

Return to “[3.1.x] Support Forum”