php - Configuring HHVM 3.7 with Apache 2.4 gives me a 404? -


i can't seem configure hhvm , apache, keeps giving me 404 file not found error. configuration file website saved www.example.com.conf, contains:

<virtualhost *:80>         servername website.com         serveradmin mail@website.com          documentroot /var/www/website.com/public_html/         proxypassmatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/website.com.com/public_html/$1          errorlog ${apache_log_dir}/error.log         customlog ${apache_log_dir}/access.log combined </virtualhost> 

note i've removed actual website name, it's subdomain it's this: subdomain.xyz.com. i've tried looking how fix this, whatever i've tried doesn't seem work; github issues people have posted on official repository don't seem work. haven't changed default apache configuration, thing have changed root directory of website directory in configuration file above.

any ideas? thanks.

i know it's been 2 months already, maybe helps else (i had similar issue occur many times when configuring hhvm + apache2).

  1. try enable vhost if haven't yet done so. issue sudo a2ensite www.example.com , reload apache afterwards sudo service apache2 reload.
  2. if vhost ok , have browser requests visible in vhost access log, means it's not apache2 that's culprit there.
  3. so if you're still me , first 2 steps didn't help, try following, although in hhvm 3.7 shoulnd't case anymore (but might, follow try-and-check method when comes configuring hhvm, , works). open /etc/hhvm/server.ini , append following line file:

    hhvm.server.fix_path_info = true 
  4. after changing hhvm's configuration, issue sudo service hhvm restart. try refresh website. should good.

i had similar issues , common fix on webservers configured work hhvm. but, after latest updates, had comment line out of hhvm server.ini in order code work - read have somehow changed parameters of server , parameter no anymore, afaik.

i have tried put line in /etc/hhvm/php.ini far remember, should go server.ini because it's server parameter.

so. try , let me know if helped. if not please issue following commands on webserver , paste output here, can see if have necessary modules installed

ls  /etc/apache2/mods-available | grep -e 'proxy|alias|fcgi|hhvm' ls  /etc/apache2/mods-enabled | grep -e 'proxy|alias|fcgi|hhvm' 

oh, , please include full hhvm , apache2 version output:

hhvm --version apache2 -v 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -