Skip to:
Content
Pages
Categories
Search
Top
Bottom

WordPress + Nginx + Permalinks = Warning Rain


  • YamiHoshiNL
    Member

    @yamihoshinl

    I’m already biting into this for hours already.
    I’ve found a few Tutorials for this, and this is exactly how our site’s Nginx Configuration looks like now:
    `server {
    listen 80;
    server_name yamihoshi.nl;

    access_log /var/log/nginx/localhost.access.log;

    location / {
    root /var/www/yamihoshi.nl;
    index index.php index.html index.htm;
    }

    location /doc {
    root /usr/share;
    autoindex on;
    allow 127.0.0.1;
    deny all;
    }

    location /images {
    root /usr/share;
    autoindex on;
    }

    #error_page 404 /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
    root /var/www/yamihoshi.nl;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ .php$ {
    #proxy_pass http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #

    location @wordpress {
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_param SCRIPT_FILENAME $document_root/tech/index.php;
    include fastcgi_params;
    fastcgi_param SCRIPT_NAME /tech/index.php;
    }

    location ~ .php$ {
    if (!-e $request_filename) {
    rewrite ^/(.*)?(.*)$ /index.php?q=$1&$2;
    }
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /var/www/yamihoshi.nl$fastcgi_script_name;
    include fastcgi_params;
    }

    # deny access to .htaccess files, if Apache’s document root
    # concurs with nginx’s one
    #
    #location ~ /.ht {
    #deny all;
    #}
    }`

    When Permalinks are enabled, I’m getting a Warning Rain.
    When disabled, everything works fine, but BuddyPress gets into a 404 (or 405) Error Page.

    Nginx version: 0.6.32.

    Cheers,
    Yamilla

Viewing 4 replies - 1 through 4 (of 4 total)

  • Xevo
    Participant

    @xevo

    Perhaps posting the warnings might help people grasp a better understanding of whats going on.

    Offtopic: I havent heard of Nginx before, what do you use it for?


    YamiHoshiNL
    Member

    @yamihoshinl

    Nginx is something like Apache2, but over 9000 times lighter, and over 9000 times more complicated.

    And about the warnings, prepare for trouble, because I’ll make it double:
    `Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 198

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /var/www/yamihoshi.nl/tech/wp-includes/class-wp.php on line 199`


    r-a-y
    Keymaster

    @r-a-y

    BuddyPress doesn’t work without permalinks enabled.

    Do you get those warnings when BuddyPress is deactivated?

    Try some of the other nginx configs on the net like:
    http://xentek.net/wp-content/uploads/2010/01/nginx-vhost-wordpress-mu-and-buddypress.txt
    http://k-noo.net/2010/07/nginx-rewrite-rule-for-wordpress-buddypress/247
    http://blog.adrenlinerush.net/?p=81

    See if any of them work and report back!


    YamiHoshiNL
    Member

    @yamihoshinl

    If I disable BuddyPress, and then load the site, it gives me a WPOD (White Page of Death).
    But none of these worked for me, although the k-noo.net looked the clearest of them all.
    I think it’s not Nginx, but WordPress that hates me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress + Nginx + Permalinks = Warning Rain’ is closed to new replies.
Skip to toolbar