I've installed NginX with PHP 8.1, MadriaDB and Wordpress on Debian 10. I can reach the wordpress installation page. When i insert the details for the database and username it goes forward, but when i click on “Run the installation” it sends me back to the mainpage "Welcome to WordPress. Before getting started, you will need to know the following items."

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    # SSL configuration
    # listen 443 ssl default_server;
    # listen [::]:443 ssl default_server;
    # Note: You should disable gzip for SSL traffic.
    # See: https://bugs.debian.org/773332
    # Read up on ssl_ciphers to ensure a secure configuration.
    # See: https://bugs.debian.org/765782
    # Self signed certs generated by the ssl-cert package
    # Don't use them in a production server!
    # include snippets/snakeoil.conf;

    root /var/www/html;

    # Add index.php to the list if you are using PHP
    index index.php index.html index.htm index.nginx-debian.html;

    server_name _;

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ =404;
        #try_files $uri $uri/ /index.php;

    # pass PHP scripts to FastCGI server
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
    #   # With php-fpm (or other unix sockets):
        fastcgi_pass unix:/run/php/php8.1-fpm.sock;
    #   # With php-cgi (or other tcp sockets):
    #   fastcgi_pass;

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #location ~ /\.ht {
    #   deny all;
  • I see you've used the tag wordpress.com hosting, are you sure you meant to use that tag? Because wp.com is offtopic here and it would get your question closed, but also, there's no way to use Nginx configs like this on wordpress.com. Is your host wordpress.com? If it is not then please remove that tag. Also I'd be wary of using PHP 8.1 when official support for 8.0 has not arrived yet, and I would check your PHP error logs, I'm unsure if there is enough information to diagnose the problem here
    – Tom J Nowell
    Jul 26 at 10:42


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.