mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 08:02:51 +02:00
Moved sockets compile section to bottom
This commit is contained in:
@@ -71,22 +71,6 @@ Actually we supports two network adapters
|
||||
|
||||
In order to use the UDP/IP adapter your must have PHP compiled with the `sockets` extension.
|
||||
|
||||
To verify if you have the `sockets` extension just issue a:
|
||||
|
||||
```bash
|
||||
php -m | grep sockets
|
||||
```
|
||||
|
||||
If you don't have the `sockets` extension, you can proceed in two ways:
|
||||
|
||||
- Recompile your PHP whith the `--enable-sockets` flag
|
||||
- Or just compile the `sockets` extension extracting it from the PHP source.
|
||||
|
||||
1. Download the source relative to the PHP version that you on from [here](https://github.com/php/php-src/releases)
|
||||
2. Enter in the `ext/sockets` directory
|
||||
3. Issue a `phpize && ./configure && make -j && sudo make install`
|
||||
4. Add `extension=sockets.so` to your php.ini
|
||||
|
||||
**Usage**
|
||||
|
||||
```php
|
||||
@@ -287,3 +271,23 @@ Corley\Benchmarks\InfluxDB\MessageToInlineProtocolEvent
|
||||
convertMessageToInlineProtocolWithDifferentTagLevels: [10,000 ] [0.0000343942404] [29,074.63543]
|
||||
```
|
||||
|
||||
## FAQ
|
||||
|
||||
### Add sockets support to your PHP
|
||||
|
||||
To verify if you have the `sockets` extension just issue a:
|
||||
|
||||
```bash
|
||||
php -m | grep sockets
|
||||
```
|
||||
|
||||
If you don't have the `sockets` extension, you can proceed in two ways:
|
||||
|
||||
- Recompile your PHP whith the `--enable-sockets` flag
|
||||
- Or just compile the `sockets` extension extracting it from the PHP source.
|
||||
|
||||
1. Download the source relative to the PHP version that you on from [here](https://github.com/php/php-src/releases)
|
||||
2. Enter in the `ext/sockets` directory
|
||||
3. Issue a `phpize && ./configure && make -j && sudo make install`
|
||||
4. Add `extension=sockets.so` to your php.ini
|
||||
|
||||
|
||||
Reference in New Issue
Block a user