Pages

Tuesday, March 25, 2014

Installation on Linux systems

This section will guide you through the general configuration and installation of HHVM on Linux systems. Be sure to investigate any sections specific to your platform or web server before you begin the process.
As our manual outlines in the General Installation Considerations section, we are mainly dealing with web centric setups of HHVM in this section, although we will cover setting up HHVM for command line usage as well.
There are several ways to install HHVM for the Linux platform, either with a compile and configure process, or through various pre-packaged methods. This documentation is mainly focused around the process of compiling and configuring HHVM. Many Linux like systems have some sort of package installation system. This can assist in setting up a standard configuration, but if you need to have a different set of features (such as a secure server, or a different database driver), you may need to build HHVM and/or your web server. If you are unfamiliar with building and compiling your own software, it is worth checking to see whether somebody has already built a packaged version of HHVM with the features you need.
Prerequisite knowledge and software for compiling:
  • Basic Unix skills (being able to operate "make" and a C++ compiler)
  • An GNU C++ compiler
  • A web server
  • Any module specific components (such as GD, PDF libs, etc.)
When HHVM is configured, you are ready to build the module and/or executables. The command make should take care of this.

Ubuntu Linux Installation 

This section contains notes and hints specific to installing HHVM on Ubuntu.

Compile 

Debian Mint Installation 

This section contains notes and hints specific to installing HHVM on Mint.

Prebuilt Packages 

Compile 

Debian Linux Installation 

This section contains notes and hints specific to installing HHVM on » Debian GNU/Linux.

Prebuilt Packages 

Compile 

Fedora Linux Installation 

This section contains notes and hints specific to installing HHVM on Fedora.

Prebuilt Packages 

Compile 

Other Linux Installations 

This section contains notes and hints specific to installing HHVM on other Linux distributions.

Compile 

Note:
FreeBSD installation is currently EXPERIMENTAL and UNSUPPORTED
 
 

Installation on Mac OS X 

This section contains notes and hints specific to installing HHVM on Mac OS X. Currently Mac OS X has only interpreted support for HHVM (i.e., the JIT is not available). However, there is active development on getting full support for HHVM on Mac OS X.
There is no current prebuilt package. Only a compilation method to get HHVM working on Mac OS X. Compiling is similar to the Linux installation guide.
Note:
Mac OS X installation is currently EXPERIMENTAL and UNSUPPORTED.

Installation on Windows systems 

Note:
HHVM SUPPORT FOR WINDOWS IS CURRENTLY NOT AVAILABLE. BUT IT IS BEING ACTIVELY WORKED ON IN 2014. STAY TUNED!
  
Table of Contents 
PHP installs on the cloud. To the PHP cloud!
 

Heroku 

HHVM installs on the » Heroku cloud platform.

FastCGI 

HHVM-FastCGI works much the same way as PHP-FPM. An application server (HHVM running in FastCGI mode) is started independently of the web server (Apache, Nginx, etc.). It listens on a TCP socket (by convention this is localhost:9000). The web server listens on port 80. When a new request comes in, the web server makes a connection to the application server (or reuses one of the previously open connections) and communicates with it using FastCGI protocol. The web server decodes HTTP protocol and supplies application server with information such as the path of the file to be executed, request headers and body. The application server computes the response and sends it back to the web server, again using FastCGI protocol. The web server is then in charge of sending back the HTTP response back to the client.


No comments:

Post a Comment