« Nginx uWSGI and Ubuntu » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
Ligne 8 : | Ligne 8 : | ||
</kode> | </kode> | ||
{{warn | With Ubuntu 20.04, ondrej ppa and PHP 8.2 installed, the following dependencies are wrongly installed: | {{warn | With Ubuntu 20.04, ondrej ppa and PHP 8.2 installed, the following dependencies are wrongly installed:<br> | ||
php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-phpdbg php7.4-readline}} | php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-phpdbg php7.4-readline}} | ||
Version du 9 août 2023 à 11:44
Install
ai nginx uwsgi-plugin-php # check nginx is running sc-status nginx |
With Ubuntu 20.04, ondrej ppa and PHP 8.2 installed, the following dependencies are wrongly installed: php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-phpdbg php7.4-readline |
Site configuration
# enable a web site sudo ln -s /etc/nginx/sites-available/phpinfo.conf /etc/nginx/sites-enabled/phpinfo.conf sc-restart nginx |
phpinfo
/etc/nginx/sites-available/phpinfo.conf |
server { listen 80; root /var/www/php; index info.php; server_name phpinfo.net; location ~ \.php$ { include uwsgi_params; uwsgi_modifier1 14; uwsgi_pass 127.0.0.1:3030; } } |