Search

Hello,

I'm currently running on the following specs: Nginx 1.2.4 Php 5.3.17-1 Xcache 2.0.1 Zend Engine v2.3.0 Mysql-Server 5.5

Linux Debian 6 Squeeze, Stable.

Modules actuels: /etc/php5/fpm/conf.d/curl.ini, /etc/php5/fpm/conf.d/gd.ini, /etc/php5/fpm/conf.d/mcrypt.ini, /etc/php5/fpm/conf.d/mysql.ini, /etc/php5/fpm/conf.d/mysqli.ini, /etc/php5/fpm/conf.d/oci8.ini, /etc/php5/fpm/conf.d/pdo.ini, /etc/php5/fpm/conf.d/pdo_mysql.ini, /etc/php5/fpm/conf.d/redis.ini, /etc/php5/fpm/conf.d/suhosin.ini, /etc/php5/fpm/conf.d/xcache.ini, /etc/php5/fpm/conf.d/xsl.ini

Actually, the installation process went smoothly, but i cannot access to admin panel and there is bugs on articles, i cannot view pages on it.

It's currently on one subfolder on /var/www/ which is root directory, then symphony is stored into /var/www/portfolio/

Here is my configuration file:

server {
    listen   80; ## listen for ipv4; this line is default and implied
    listen   [::]:80 default_server ipv6only=on; ## listen for ipv6

    root /usr/share/nginx/www;
    index index.php index.html index.htm;

    # Make site accessible from http://localhost/
    server_name ***********.com *************.tk;

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ /index.html;
        # Uncomment to enable naxsi on this location
        # include /etc/nginx/naxsi.rules
    }

    location /Patches/ {
        autoindex on;
        allow all;
    }

    location /doc/ {
        alias /usr/share/doc/;
        autoindex on;
        allow 127.0.0.1;
        allow ::1;
        deny all;
    }

location ~ ^(?<path>portfolio)/(?<admin>symphony)?(?<page>.*)$ {
    # Allow access to files:
    if (-f $request_filename) {
        break;
    }

    # Just In Time Image Manipulation:
    if ($page ~ ^image/(.+.(jpg|gif|jpeg|png|bmp))$) {
        rewrite . /portfolio/extensions/jit_image_manipulation/lib/image.php?param=$1 last;
    }

    # Add trailing slashes:
    if ($request_filename !~ "/$") {
        rewrite ^(.*)$ $1/ redirect;
    }

    # Block access to manifest:
    if ($page ~ "^manifest/") {
        return 403;
    }

    # Access Symphony backend:
    if ($admin) {
        rewrite . /portfolio/index.php?mode=administration&symphony-page=$page last;
    }

    # Access Symphony frontend:
    if ($page) {
        rewrite . /portfolio/index.php?symphony-page=$page last;
    }
}

    # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
    #location /RequestDenied {
    #   proxy_pass http://127.0.0.1:8080;    
    #}

    #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 /usr/share/nginx/www;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ .php$ {
        fastcgi_split_path_info ^(.+.php)(/.+)$;
    #   # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
    #
    #   # With php5-cgi alone:
        fastcgi_pass 127.0.0.1:9000;
    #   # With php5-fpm:
    #   fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }

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

I'm pretty new into symphony, but well, I just couldn't make it working even with a lot of samples configuration files.

I only can access into the welcome page, and that's all.

If someone wants more detailed infos, Feels free.

Thanks in advance.

Here is mine:

Ubuntu 12.04.1 LTS Nginx 1.2.4, PHP 5.3.10-1ubuntu3.4 (fpm-fcgi), Mysql 5.5.28

  server {
  listen 80;
  server_name domain.com;
  access_log /usr/share/nginx/www/domain.com/logs/access.log;
  error_log /usr/share/nginx/www/domain.com/logs/error.log;
  root /usr/share/nginx/www/domain.com/public_html;

  location / {
    index index.html index.htm index.php;

        # serve static files directly
                if (-f $request_filename) {
                access_log    off;
                expires       30d;
                break;
        }

        ### BACKEND
                if ($request_filename ~ /symphony/) {
                rewrite ^/symphony/?$ /index.php?mode=administration&$query_string last;
                rewrite ^/symphony(/(.*/?))?$ /index.php?symphony-page=$1&mode=administration&$query_string last;
        }

        if ($request_filename ~ /admin/) {
                rewrite ^/admin/?$ /index.php?mode=administration&$query_string last;
        }

        #MINIFY REWRITE
                if ($request_filename ~ /min/) {
                rewrite ^/min/([a-z]=.*) /min/index.php?$1 last;
        }

        ### IMAGE RULES
        rewrite ^/image/(.+.(jpg|gif|jpeg|png|bmp|ico|JPG|GIF|JPEG|PNG|BMP|ICO))$ /extensions/jit_image_manipulation/lib/image.php?param=$1 last;

        ### CHECK FOR TRAILING SLASH - Will ignore files
        if (!-f $request_filename) {
                rewrite ^/(.*[^/]+)$ /$1/ permanent;
        }

        ### MAIN REWRITE - This will ignore directories
        if (!-d $request_filename) {
                rewrite ^/(.*)$ /index.php?symphony-page=$1 last;
        }
  }

  location ~ .php$ {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+.php)(/.+)$;
        fastcgi_pass unix:/tmp/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
  }

  location ~ /.ht {
    access_log off;
    log_not_found off;
    deny  all;
  }
}

Yes Allen, i have read that page, didn't work.

Kamwing, well basicaly it's a common file configuration.

I try to get Symphony working only on subfolder: ******.com/portfolio/

But it show the page only, i can't access to administration panel else than manually doing: ******.com/portfolio/index.php?symphony-page=$1&mode=administration.

Maybe i'm wrong.

Tested with your configuration file kamwing, when i go to .com/portfolio/symphony/ it gives:

403 Forbidden nginx/1.2.4

Here sample:

    location /portfolio/ {
    index index.html index.htm index.php;

        # serve static files directly
                if (-f $request_filename) {
                access_log    off;
                expires       30d;
                break;
        }

        ### BACKEND
                if ($request_filename ~ /symphony/) {
                rewrite ^/symphony/?$ /index.php?mode=administration&$query_string last;
                rewrite ^/symphony(/(.*/?))?$ /index.php?symphony-page=$1&mode=administration&$query_string last;
        }

        if ($request_filename ~ /admin/) {
                rewrite ^/admin/?$ /index.php?mode=administration&$query_string last;
        }

        #MINIFY REWRITE
                if ($request_filename ~ /min/) {
                rewrite ^/min/([a-z]=.*) /min/index.php?$1 last;
        }

        ### IMAGE RULES
        rewrite ^/image/(.+.(jpg|gif|jpeg|png|bmp|ico|JPG|GIF|JPEG|PNG|BMP|ICO))$ /extensions/jit_image_manipulation/lib/image.php?param=$1 last;

        ### CHECK FOR TRAILING SLASH - Will ignore files
        if (!-f $request_filename) {
                rewrite ^/(.*[^/]+)$ /$1/ permanent;
        }

        ### MAIN REWRITE - This will ignore directories
        if (!-d $request_filename) {
                rewrite ^/(.*)$ /index.php?symphony-page=$1 last;
        }
  }

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details