Skip to content

PHP install

Justin Nesselrotte edited this page Aug 16, 2023 · 2 revisions

When installing a new version of php, you need to install multiple dependencies. Here I'm using 8.2.

Install dependencies:

sudo apt-get install php8.2 php8.2-mbstring php8.2-redis php8.2-fpm php8.2-curl php8.2-intl php8.2-xml php8.2-mysql php8.2-gmp

Updating nginx to use correct version

Edit /etc/nginx/sites-available/webhooks.denhac.org with root, and find the line that looks like /var/run/php/php8.0-fpm.sock where the 8.0 there is your current version. Replace the php version appropriately, e.g. if doing php8.2 that section would now be /var/run/php/php8.2-fpm.sock.

Verify and restart nginx

sudo nginx -t
sudo systemctl reload nginx

Restart horizon and websocket service

sudo systemctl restart horizon.service
sudo systemctl restart websockets.service
Clone this wiki locally