Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to correctly configure Nginx for PHP (Yii framework and Zurmo)
    primarykey
    data
    text
    <p>I am trying to setup Zurmo CRM on my local machine (Win8x64). After installing all the requirements I want to get started with the actual installation. The problem is that it seems the paths are not correctly passed from NGinx to FastCGI PHP. Here is my Nginx serve configuration:</p> <pre><code>server { listen 80; server_name zurmo.local; root html/zurmo.local; set $index "index.php"; charset utf-8; location / { index index.html $index; try_files $uri $uri/ /$index?$args; } location ~ ^/(protected|framework|themes/\w+/views) { deny all; } location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ { try_files $uri =404; } location ~ \.php { fastcgi_split_path_info ^(.+\.php)(.*)$; set $fsn /$index; if (-f $document_root$fastcgi_script_name){ set $fsn $fastcgi_script_name; } fastcgi_pass 127.0.0.1:9000; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fsn; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fsn; } location ~ /\.ht { deny all; } } </code></pre> <p>As a result, when I make a call to zurmo.local (which is added to hosts file) i get "This webpage has a redirect loop" with a URI that looks like this <code>http://zurmo.local/app/app/ [...] /app/app/index.php</code> If instead of <code>$document_root$fsn</code> and I comment the <code>PATH_INFO</code> and <code>PATH_TRANSLATED</code> than I get <code>No input file specified.</code> with a URI that looks like <code>http://zurmo.local/app/app/index.php</code></p> <p>Looking further into it, when I have added <code>access_log html/zurmo.local/logs/access.log;</code> the Nginx <code>error.log</code> shows me the following: <code>[timestamp] [emerg] 4064#3660: CreateFile() "[path to stack]\nginx/html/zurmo.local/logs/access.log" failed (3: The system cannot find the path specified)</code>. As you can see the directory separator is not consistent.</p> <p>One last note, my Nginx home directory is situated at <code>nginx/html</code> which is in fact a smlink to of <code>../home</code> This is purely for keeping my file structure in a way that fits my day to day work.</p> <p>How can I correctly configure Nginx in order to proceed (with the Zurmo installation) ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload