$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install php -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install php -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install php -y
$ php --version
$ php --version
$ php --version
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install php-mysql php-mbstring php-bcmath php-zip php-gd php--weight: 500;">curl php-xml -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install php-mysql php-mbstring php-bcmath php-zip php-gd php--weight: 500;">curl php-xml -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install php-mysql php-mbstring php-bcmath php-zip php-gd php--weight: 500;">curl php-xml -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install php-fpm -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install php-fpm -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install php-fpm -y
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable php8.5-fpm
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start php8.5-fpm
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable php8.5-fpm
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start php8.5-fpm
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable php8.5-fpm
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start php8.5-fpm
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status php8.5-fpm
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status php8.5-fpm
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status php8.5-fpm
$ ls /run/php/php8.5-fpm.sock
$ ls /run/php/php8.5-fpm.sock
$ ls /run/php/php8.5-fpm.sock
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install nginx -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install nginx -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install nginx -y
$ -weight: 600;">sudo mkdir -p /var/www/app.example.com
$ -weight: 600;">sudo chown -R www-data:www-data /var/www/app.example.com
$ -weight: 600;">sudo mkdir -p /var/www/app.example.com
$ -weight: 600;">sudo chown -R www-data:www-data /var/www/app.example.com
$ -weight: 600;">sudo mkdir -p /var/www/app.example.com
$ -weight: 600;">sudo chown -R www-data:www-data /var/www/app.example.com
$ -weight: 600;">sudo nano /etc/nginx/sites-available/app.example.com.conf
$ -weight: 600;">sudo nano /etc/nginx/sites-available/app.example.com.conf
$ -weight: 600;">sudo nano /etc/nginx/sites-available/app.example.com.conf
server { listen 80; server_name app.example.com; root /var/www/app.example.com; index index.php index.html; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.5-fpm.sock; }
}
server { listen 80; server_name app.example.com; root /var/www/app.example.com; index index.php index.html; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.5-fpm.sock; }
}
server { listen 80; server_name app.example.com; root /var/www/app.example.com; index index.php index.html; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.5-fpm.sock; }
}
$ -weight: 600;">sudo ln -s /etc/nginx/sites-available/app.example.com.conf /etc/nginx/sites-enabled/
$ -weight: 600;">sudo nginx -t
$ -weight: 600;">sudo -weight: 500;">systemctl reload nginx
$ -weight: 600;">sudo ln -s /etc/nginx/sites-available/app.example.com.conf /etc/nginx/sites-enabled/
$ -weight: 600;">sudo nginx -t
$ -weight: 600;">sudo -weight: 500;">systemctl reload nginx
$ -weight: 600;">sudo ln -s /etc/nginx/sites-available/app.example.com.conf /etc/nginx/sites-enabled/
$ -weight: 600;">sudo nginx -t
$ -weight: 600;">sudo -weight: 500;">systemctl reload nginx
$ -weight: 600;">sudo nano /var/www/app.example.com/info.php
$ -weight: 600;">sudo nano /var/www/app.example.com/info.php
$ -weight: 600;">sudo nano /var/www/app.example.com/info.php
<?php phpinfo(); ?>
<?php phpinfo(); ?>
<?php phpinfo(); ?>
$ -weight: 600;">sudo rm /var/www/app.example.com/info.php
$ -weight: 600;">sudo rm /var/www/app.example.com/info.php
$ -weight: 600;">sudo rm /var/www/app.example.com/info.php - php-mysql: MySQL and MariaDB database connectivity
- php-mbstring: multi-byte character encoding support
- php-bcmath: arbitrary precision mathematics
- php-zip: ZIP archive handling
- php-gd: image creation and manipulation
- php--weight: 500;">curl: HTTP client functionality
- php-xml: XML parsing and formatting - Configure PHP-FPM pool settings in /etc/php/8.5/fpm/pool.d/www.conf to tune concurrency
- Install Laravel or WordPress on the stack
- Add Composer for PHP package management