DEV Community

Cover image for Install php in linux server
pelurunyasar
pelurunyasar

Posted on

Install php in linux server

sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.2-fpm php8.2-mysql php8.2-curl php8.2-xml php8.2-opcache php8.2-mbstring php8.2-zip
Enter fullscreen mode Exit fullscreen mode
systemctl status php8.2-fpm.service
● php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php8.2-fpm.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2024-01-16 12:54:56 WIB; 1h 11min ago
       Docs: man:php-fpm8.2(8)
    Process: 1268 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.2/fpm/pool.d/www.conf 82 (code=exited, status=0/SUCCESS)
    Process: 14147 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
   Main PID: 1102 (php-fpm8.2)
     Status: "Processes active: 0, idle: 2, Requests: 6, slow: 0, Traffic: 0req/sec"
      Tasks: 3 (limit: 9211)
     Memory: 62.1M
     CGroup: /system.slice/php8.2-fpm.service
             ├─ 1102 php-fpm: master process (/etc/php/8.2/fpm/php-fpm.conf)
             ├─14162 php-fpm: pool www
             └─14163 php-fpm: pool www
Enter fullscreen mode Exit fullscreen mode

Top comments (0)