Skip to content

Commit

Permalink
Change installation to INI-only format
Browse files Browse the repository at this point in the history
Also change to hhvm.extensions
  • Loading branch information
simonwelsh committed Mar 13, 2015
1 parent ea65d63 commit 8d3dc46
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,17 @@ $ make
~~~

This will produce a `pgsql.so` file, the dynamically-loadable extension.
Copy this file to `/etc/hhvm/pgsql.so`.

To enable the extension, you need to have the following section in your hhvm
config file:

Hdf format:

~~~
DynamicExtensionPath = /path/to/hhvm/extensions
DynamicExtensions {
* = pgsql.so
}
~~~

INI format:

~~~
hhvm.dynamic_extension_path = /path/to/hhvm/extensions
hhvm.dynamic_extensions[pgsql] = pgsql.so
extension_dir = /etc/hhvm
hhvm.extensions[pgsql] = pgsql.so
~~~

Where `/path/to/hhvm/extensions` is a folder containing all HHVM extensions, and
`pgsql.so` is in it. This will cause the extension to be loaded when the virtual
machine starts up.
This will cause the extension to be loaded when the virtual machine starts up.

### Hack Friendly Mode

Expand Down

0 comments on commit 8d3dc46

Please sign in to comment.