FAQ

Page Discussion History

Difference between revisions of "Pyrocms"

(Created page with "= pyrocms = Edit /installer/config/config.php: $config['index_page'] = ""; $config['uri_protocol'] = "REQUEST_URI"; Edit /system/pyrocms/config/config.php $config['index_pag...")
 
(pyrocms)
Line 5: Line 5:
 
  $config['uri_protocol'] = "REQUEST_URI";
 
  $config['uri_protocol'] = "REQUEST_URI";
  
Edit /system/pyrocms/config/config.php
+
Edit /system/cms/config/config.php
 
  $config['index_page'] = "";
 
  $config['index_page'] = "";
 
  $config['uri_protocol'] = "REQUEST_URI";
 
  $config['uri_protocol'] = "REQUEST_URI";
Line 29: Line 29:
 
     {
 
     {
 
             fastcgi_split_path_info ^(.+\.php)(.*)$;
 
             fastcgi_split_path_info ^(.+\.php)(.*)$;
             include /usr/local/nginx/conf/fastcgi_params;
+
             include /path/to/your/nginx/conf/fastcgi_params;
 
             fastcgi_index  index.php;
 
             fastcgi_index  index.php;
 
             fastcgi_param  SCRIPT_FILENAME  /path/to/your_html/installer/index.php;
 
             fastcgi_param  SCRIPT_FILENAME  /path/to/your_html/installer/index.php;
Line 37: Line 37:
 
             fastcgi_param  CONTENT_TYPE    $content_type;
 
             fastcgi_param  CONTENT_TYPE    $content_type;
 
             fastcgi_param  CONTENT_LENGTH  $content_length;
 
             fastcgi_param  CONTENT_LENGTH  $content_length;
 +
 +
            fastcgi_connect_timeout 60;
 +
            fastcgi_send_timeout 180;
 +
            fastcgi_read_timeout 180;
 +
            fastcgi_buffer_size 128k;
 +
            fastcgi_buffers 4 256k;
 +
            fastcgi_busy_buffers_size 256k;
 +
            fastcgi_temp_file_write_size 256k;
 +
            fastcgi_intercept_errors on;
 +
 
             fastcgi_pass  127.0.0.1:9000;
 
             fastcgi_pass  127.0.0.1:9000;
 
     }
 
     }
Line 49: Line 59:
 
             root  /path/to/your_html;
 
             root  /path/to/your_html;
 
             fastcgi_split_path_info ^(.+\.php)(.*)$;
 
             fastcgi_split_path_info ^(.+\.php)(.*)$;
             include /usr/local/nginx/conf/fastcgi_params;
+
             include /path/to/your/nginx/conf/fastcgi_params;
 
             fastcgi_index  index.php;
 
             fastcgi_index  index.php;
 
             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
 
             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
Line 57: Line 67:
 
             fastcgi_param  CONTENT_TYPE    $content_type;
 
             fastcgi_param  CONTENT_TYPE    $content_type;
 
             fastcgi_param  CONTENT_LENGTH  $content_length;
 
             fastcgi_param  CONTENT_LENGTH  $content_length;
 +
 +
            fastcgi_connect_timeout 60;
 +
            fastcgi_send_timeout 180;
 +
            fastcgi_read_timeout 180;
 +
            fastcgi_buffer_size 128k;
 +
            fastcgi_buffers 4 256k;
 +
            fastcgi_busy_buffers_size 256k;
 +
            fastcgi_temp_file_write_size 256k;
 +
            fastcgi_intercept_errors on;
 +
 
             fastcgi_pass  127.0.0.1:9000;
 
             fastcgi_pass  127.0.0.1:9000;
 
     }
 
     }
 
     error_page  500 502 503 504  /50x.html;
 
     error_page  500 502 503 504  /50x.html;
 
     location = /50x.html {
 
     location = /50x.html {
           root   /usr/local/nginx/html;
+
           root /path/to/your/nginx/html;
 
     }
 
     }
 
  }
 
  }
 
</geshi>
 
</geshi>

Revision as of 15:18, 5 January 2012

pyrocms

Edit /installer/config/config.php:

$config['index_page'] = "";
$config['uri_protocol'] = "REQUEST_URI";

Edit /system/cms/config/config.php

$config['index_page'] = "";
$config['uri_protocol'] = "REQUEST_URI";
server 
 {
     listen *:80;
     server_name yourdomain.com www.yourdomain.com;
     index index.php;
     root  /path/to/your_html;
     location /installer/
     {
             if (-f $request_filename) {
                     expires max;
                     break;
             }
             if (!-e $request_filename) {
                     rewrite ^/installer/(.*)$ /installer/index.php/$1 last;
             }
     }
     location /installer/index.php
     {
             fastcgi_split_path_info ^(.+\.php)(.*)$;
             include /path/to/your/nginx/conf/fastcgi_params;
             fastcgi_index  index.php;
             fastcgi_param  SCRIPT_FILENAME  /path/to/your_html/installer/index.php;
             fastcgi_param  REQUEST_URI      $request_uri;
             fastcgi_param  QUERY_STRING     $query_string;
             fastcgi_param  REQUEST_METHOD   $request_method;
             fastcgi_param  CONTENT_TYPE     $content_type;
             fastcgi_param  CONTENT_LENGTH   $content_length;
 
             fastcgi_connect_timeout 60;
             fastcgi_send_timeout 180;
             fastcgi_read_timeout 180;
             fastcgi_buffer_size 128k;
             fastcgi_buffers 4 256k;
             fastcgi_busy_buffers_size 256k;
             fastcgi_temp_file_write_size 256k;
             fastcgi_intercept_errors on;
 
             fastcgi_pass   127.0.0.1:9000;
     }
     location /
     {
             if ($request_filename !~ (js|css|images|img|robots\.txt|index\.php.*) ) {
                     rewrite ^/(.*)$ /index.php/$1 last;
             }
     }
     location ~ /index.php/
     {
             root  /path/to/your_html;
             fastcgi_split_path_info ^(.+\.php)(.*)$;
             include /path/to/your/nginx/conf/fastcgi_params;
             fastcgi_index  index.php;
             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
             fastcgi_param  REQUEST_URI      $request_uri;
             fastcgi_param  QUERY_STRING     $query_string;
             fastcgi_param  REQUEST_METHOD   $request_method;
             fastcgi_param  CONTENT_TYPE     $content_type;
             fastcgi_param  CONTENT_LENGTH   $content_length;
 
             fastcgi_connect_timeout 60;
             fastcgi_send_timeout 180;
             fastcgi_read_timeout 180;
             fastcgi_buffer_size 128k;
             fastcgi_buffers 4 256k;
             fastcgi_busy_buffers_size 256k;
             fastcgi_temp_file_write_size 256k;
             fastcgi_intercept_errors on;
 
             fastcgi_pass   127.0.0.1:9000;
     }
     error_page   500 502 503 504  /50x.html;
     location = /50x.html {
           root  /path/to/your/nginx/html;
     }
 }