Skip to content

AQ2Chile/aq2_site

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aq2_site

Action Q2 server browsing site


Install:

Create this structure in app/ dir with read and write permissions

  • tmp
  • |-- cache
  • | |-- models
  • | |-- persistent
  • | |-- views
  • |-- logs
  • |-- sessions
  • |-- tests

then copy and rename

app/core.php.default -> app/core.php

app/database.php.default -> app/database.php


To add a server:

app/Controllers/PagesController.php -> line 67


If you run Nginx, use this config on your enabled-site

server {
 listen 80 ;

 server_name example.com;

 root /public_html/aq2_site/app/webroot; # Change this but be sure to keep it routed to your cake webroot
 index index.html index.php;

 location / {
   try_files $uri $uri/ /index.php?$uri&$args;
   set $new_uri $uri;
 }

 location ~ \.php$ {
   fastcgi_split_path_info ^(.+\.php)(/.+)$;
   # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini

   fastcgi_pass 127.0.0.1:9000;
   fastcgi_index index.php;
   include fastcgi_params;
   fastcgi_param PATH_INFO $new_uri;
 }

 location ~ /(\.ht|\.git|\.svn) {
   deny  all;
 }

}

About

Action Q2 server browsing site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.1%
  • Other 0.9%