Topic Closed

I use the nginx http server and am wondering if anyone has had any luck running gpeasy with nginx. I have tried the stable and alpha releases, but have run into problems with both. I suspect that the culprit is the permalink structure. If I hide index.php by uncommenting "define('gp_indexphp',false);" in index.php and then add a directive under nginx like

 

location /gpeasy/ {
 
        index   index.php index.htm index.html;
        try_files $uri $uri/ /gpeasy/index.php?$request_uri;
 
}
 
Then I can navigate the website just fine. However, when I go to do something administrative, such as try a new theme - usually nothing happens. In some cases, I get a completely wrong page.
 
if anyone has managed to get this working, or has an idea for a way to make everything play nicely together, I'd really appreciate your advice.
10 years ago#1379

Josh S.
2K Posts
296K Downloads
16 Themes
18 Plugins

There has been some discussion about gpEasy on nginx... Here's a summary:

PATH_INFO is the key to gpEasy navigation and in nginx, PATH_INFO doesn't always appear to be set properly or at all. There has been some documenation online involving nginx and PATH_INFO and we found http://kbeezie.com/view/php-self-path-nginx/ was helpful.

The significant portions of this page being the following:

fastcgi_split_path_info ^(.+\.php)(/.+)$;

...

fastcgi_param PATH_INFO $fastcgi_path_info;

Though it was discovered that instead of

fastcgi_split_path_info ^(.+\.php)(/.+)$;

it should be

fastcgi_split_path_info ^(.+\.php)(/.*)$;

Again, I haven't personally testing this out, but was told it worked.

10 years ago#1381

Got it working via this method: http://www.computercorrect.com/2011/web-applications/configuring-nginx-for-gpeasy-cms/

Thank you for your advice though, I may try that method a bit later.

10 years ago#1382

jogai
264 Posts

I have an error in my logs (using 3.0.1):

2012/07/24 13:47:56 [error] 7793#0: *1 FastCGI sent in stderr: "PHP Notice:  Undefined variable: row in /usr/share/nginx/www/example/include/common.php on line 179
PHP Notice:  Undefined variable: row in /usr/share/nginx/www/example/include/common.php on line 179" while reading response header from upstream, client: 192.168.1.33, server: www.example.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "example.com"

I think this has something to do with the fastcgi_split_path_info, but where do I configure this? In my vhost file or in the nginx.conf?

9 years ago#4231

Josh S.
2K Posts
296K Downloads
16 Themes
18 Plugins

I have an error in my logs (using 3.0.1):

Yep, there was a bug in the error tracking code in gpEasy, but I'm not sure it has anything to do with nginx. There could be more to the error report though than the "undefined variable" you're seeing. To see more, you could turn debugging on in gpEasy: http://docs.gpeasy.com/Main/Debugging

9 years ago#4306

jogai
264 Posts

I reinstalled my dev server (with ubuntu 12.04 and nginx 1.2.3) and everything is working now with gpeasy 3.0.2. The nginx configuration is made by a script: Optimized LEMP Installer for Debian/Ubuntu with Virtual Hosts Automator.

Edited: 9 years ago#4309

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register