Skip to content

zhexiao/estory

Repository files navigation

EZStory

Dependency Status

DIRECTORY STRUCTURE

  assets/             contains assets definition
  config/             contains application configurations
  controllers/        contains Web controller classes
  mail/               contains view files for e-mails
  models/             contains model classes
  runtime/            contains files generated during runtime
  tests/              contains various tests for the basic application
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources

REQUIREMENTS

The minimum requirement by this application template that your Web server supports PHP 5.4.0.

SERVER CONFIGURATION

Nginx

server {
  listen *:80;
  #listen [::]:80 ipv6only=on;

  root /var/www/html/EZStory/web;
  index index.php;

  # Make site accessible from http://localhost/
  server_name ez.zhexiao.space;

  access_log /var/log/nginx/ez.access.log;
  error_log /var/log/nginx/ez.error.log;

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

  error_page 404 /404.html;
  error_page 500 502 503 504 /50x.html;
  location = /50x.html {
    root /var/www/html;
  }

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

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

}

Apache

<VirtualHost *:80>
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/EZStory/web"

    <Directory "/Applications/XAMPP/xamppfiles/htdocs/EZStory/web">
        # use mod_rewrite for pretty URL support
        RewriteEngine on
        # If a directory or a file exists, use the request directly
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        # Otherwise forward the request to index.php
        RewriteRule . index.php
    </Directory>

    ServerName ez.zhexiao.space
    ErrorLog "logs/ez.example.com-error_log"
    CustomLog "logs/ez.example.com-access_log" common
</VirtualHost>

Technical

  • Yii The Fast, Secure and Professional PHP Framework.

  • Angularjs HTML enhanced for web apps.

  • Bootstrap Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.

  • Sass Sass is the most mature, stable, and powerful professional grade CSS extension language in the world.