[SOLVED] WordPress permalinks are giving problems

Discussion in 'Installation/Configuration' started by AxelssonDesign, May 16, 2017.

  1. Hello,

    I have set up WordPress and I'm using Beaver Builder page builder. When I change permalinks from plain plugin will not open correctly.
    Plugin developer have commented on ispConfig Nginx config file:

    "This section look odd

    location ~ \.php$ {
    try_files /8bca1cce51126fbdb3d1e7e34beecd85.htm @php;
    }

    location @php {
    try_files $uri =404;
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/lib/php5-fpm/web6.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_intercept_errors on;
    }

    Have you tried a default wp nginx config?"

    Is this ispConfig problem ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig works fine with Wordpress. Just add these lines into the nginx directives field of the website:

    Code:
    location / {
    try_files $uri $uri/ /index.php?$args;
    }
    # Add trailing slash to */wp-admin requests.
    rewrite /wp-admin$ $scheme://$host$uri/ permanent;
    location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
    expires max;
    log_not_found off;
    }
    
     
  3. @till
    Thanks for replay.
    This line is strange "fastcgi_pass unix:/var/lib/php5-fpm/web6.sock;" since I'm using php version 7
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    That's fine.. the 5 is not an indicator for the php version, it is just a folder name.
     

Share This Page