Quick start¶
One command installs the extension, the collector and the local dashboard on a Linux box with root access (Debian/Ubuntu/RHEL-family):
What the script does¶
- Detects PHP version, libc (glibc/musl) and architecture.
- Downloads the matching prebuilt
phpray.sofrom the GitHub releases into theextension_dirof every PHP version found. - Writes the default INI snippet (enabled, smart mode) into
/etc/php/<ver>/.../conf.d/phpray.ini(or the per-user equivalent). - Installs
phpray-collectorand registers thephpray-collector.servicesystemd unit. - Installs the
phprayCLI and the local dashboard (served on127.0.0.1:9191). - Runs
php -m | grep phprayas a smoke check and prints the next steps.
Verify the install¶
php -m | grep phpray # extension loaded
phpray status # extension ok, collector ok, shm ok, dashboard url
phpray status reports which PHP versions have the extension, whether the
collector is running, the shared-memory size and the dashboard URL.
Uninstall¶
or manually: stop phpray-collector, remove phpray.ini from the
conf.d directories, delete phpray.so from extension_dir, remove the
systemd unit and /var/lib/phpray. Restart PHP-FPM/apache afterwards.