K
K
Kamo Petrosyan2013-10-12 01:52:51
MODX
Kamo Petrosyan, 2013-10-12 01:52:51

Solve a problem installing MODx?

Hi all! I tried to install MODx today and "stuck" in a problem:
I go to /setup/ - everything is fine
. The "Select" button and throws me to the /?action=welcome page with a 503 error . I manually correct
the address to /setup/?action=welcome and everything is fine
those. /setup is always removed and only GET arguments remain.
Below server settings

server {
    listen      80;
    server_name xn----7sbitcnbnlgdqs1b8l.xn--p1ai;
    charset     utf8;
    autoindex   off;
    access_log  /srv/logs/poly_access.log;
    error_log   /srv/logs/poly_error.log error;
    root        /srv/www/haikson/poly;

    location @rewrite {
        rewrite         ^/(.*)$ /index.php?q=$1&$args last;
    }
    location / {
        index   index.php index.html index.htm;
        #try_files $uri $uri/ @rewrite;
    }

    location /core/ {                                                                                                        
        deny all;               
    }

    location ~* "/\.ht" {
        deny all;   # запретить все для всех
        return 404; # вернуть код ошибки 404
    }

    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }
    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    location ~* \.(jpg|jpeg|gif|css|png|js|ico|bmp)$ {
        access_log       off;
        expires 30d;
        break;
    }

    location ~ .php$ {
        fastcgi_split_path_info ^(.+\.php)(.*)$;
        fastcgi_pass                        unix:/var/run/php-fpm/phpfpm.socket;
        fastcgi_index                       index.php;
        fastcgi_param   SCRIPT_FILENAME     $document_root$fastcgi_script_name;
        fastcgi_param   PATH_TRANSLATED     $document_root$fastcgi_script_name;
        fastcgi_param   PATH_INFO           $fastcgi_path_info;
        fastcgi_param   PHP_VALUE           "apc.cache_by_default=0";
        include                             fastcgi_params;
    }
}

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
signalizator, 2013-10-12
@signalizator

  location / {
    try_files       $uri $uri/ @rewrite;
  }
  location @rewrite {
    rewrite         ^/(.*)$ /index.php?q=$1;
  }

K
Kamo Petrosyan, 2013-10-12
@Haikson

Does not help.

S
signalizator, 2013-10-12
@signalizator

No, that's not the problem. try_files is for this case. (missed comment)

K
Karen Grigoryan, 2013-10-14
@grigkar

If the problem is with the CNC, try renaming the file htaccess.txt -> .htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question