Skip to content

Instantly share code, notes, and snippets.

@madalinignisca
Forked from tektoh/hhvm_php.ini
Last active August 29, 2015 14:21
Show Gist options
  • Save madalinignisca/4a049d16507b2251968e to your computer and use it in GitHub Desktop.
Save madalinignisca/4a049d16507b2251968e to your computer and use it in GitHub Desktop.
hhvm for concrete5
; php options
session.save_handler = files
session.save_path = /var/lib/php5
session.gc_maxlifetime = 1440
short_open_tag = Off
expose_php = Off
; hhvm specific
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/concrete5-5.7.0/web;
index index.php index.html;
server_name localhost;
server_tokens off;
location / {
if (-f $request_filename) {
expires 14d;
break;
}
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php/$1 last;
}
}
location ~ ^(.+\.php)(.*)$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment