Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hhvm.server.fix_path_info breaks on latest build #3285

Closed
mattmacadams opened this issue Jul 27, 2014 · 9 comments
Closed

hhvm.server.fix_path_info breaks on latest build #3285

mattmacadams opened this issue Jul 27, 2014 · 9 comments
Assignees

Comments

@mattmacadams
Copy link

Setting "hhvm.server.fix_path_info = true" breaks on the latest build

Apache2.4 using proxy via fcgi

@apuckey
Copy link
Contributor

apuckey commented Jul 28, 2014

Hey there, Do you just get a 404? or does it break in some other way? :-)

@mattmacadams
Copy link
Author

Hi! I'm getting a 404 from HHVM

@mattmacadams
Copy link
Author

pid = /var/run/hhvm/pid

date.timezone = America/Los_Angeles
memory_limit = 512M

hhvm.server.type = fastcgi
; hhvm.server.port = 9000
hhvm.server.file_socket=/var/run/hhvm/hhvm.sock
hhvm.server.default_document = index.php

; This fixed everything before updating to 3.2.0 (on July 26th)
hhvm.server.fix_path_info = true

hhvm.server.enable_magic_quotes_gpc = false
hhvm.server.enable_keep_alive = true
hhvm.server.request_timeout_seconds = 60
hhvm.enable_short_tags = true
hhvm.eval.jit = true
hhvm.eval.jit_warmup_requests = 1
hhvm.enable_static_content_from_disk = true
hhvm.log.file = /var/log/hhvm.log

@mattmacadams
Copy link
Author

Tried using both Apache and Nginx as front-ends, no luck..

Here's part of my Nginx config (which works perfectly with the php-fpm backend):

    location @router {
            # Ensure "cgi.fix_pathinfo = 0" is set in /etc/php5/fpm/php.ini
            include   fastcgi_params;
            fastcgi_keep_conn    on;
            include   fastcgi_params;
            # fastcgi_pass           unix:/var/run/php5-fpm.sock;
            fastcgi_pass            unix:/var/run/hhvm/hhvm.sock;
            fastcgi_index         index.php;
            fastcgi_param           SCRIPT_FILENAME /websites/domain.com/router.php;
    }

@mattmacadams
Copy link
Author

A few more details:
OS: Ubuntu 14.04 (x64)
Using HHVM repo for apt

@mattmacadams
Copy link
Author

hello...? 27 days later and no reply?

this issue was identified and fixed in earlier releases, then the most recent release broke it again.. why no fix?

@CybotTM
Copy link

CybotTM commented Sep 5, 2014

Hi,

would really be nice to get this fixed!

thanks.

@paulbiss paulbiss self-assigned this Sep 9, 2014
@paulbiss
Copy link
Contributor

I've been trying to reproduce this but I haven't had much luck, it seems to be working fine for me.

@JoelMarcey JoelMarcey added the ini label Dec 4, 2014
@paulbiss
Copy link
Contributor

There was a major refactor of fastcgi (87f853d) which resolved a number of long standing issues, and a series of followup bug fixes. As there have been no new comments on here and we never had a repro I'm going to close this issue. If anyone is still experiencing problems (and ideally has an isolated repro case) please comment below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants