xsanisty / SlimBoard

Starter Application built on Slim Framework in MVC (and HMVC) environment
http://www.xsanisty.com/project/slim-starter
MIT License
287 stars 72 forks source link

Try to install with HHVM and nginx #12

Open jrborbars opened 9 years ago

jrborbars commented 9 years ago

I tried this four times, and all I gave is a “checking connection” at the install.php script. I have HHVM 3.4.1 (tested with 3.3.0 and 3.0.1 too), nginx 1.6.0 and MariaDB 10.0. Double checked the parameters and all is fine (it works well with slim solo and PDO). Maybe the whole install (I mean .htaccess) works with Apache only. 8-( Bad deal.

ikhsan017 commented 9 years ago

Hi @jrborbars

I am trying to reproduce the installation process using nginx 1.1.9, mariaDB 10, php-fpm and installation was done without error

here is my nginx config

server {
    listen 80 default_server;
    listen [::]:80 default_server ipv6only=on;

    root /usr/share/nginx/www/slim/public;
    index index.php index.html index.htm;

    server_name localhost;

    location / {
        try_files $uri /index.php$is_args$args;
    }

    location ~ ^/install\.php(/|$) {
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTPS off;
    }

    location ~ ^/index\.php$ {
        try_files $uri /index.php =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}
ikhsan017 commented 9 years ago

will try to reproduce using hhvm soon