• Hi

    I’ve just installed Debian 11 with NginX and php8.1-fpm
    and MariaDB
    I can reach the page but i get Error 500 when i got to wordpress to set it up.
    localhost:/wp-admin/setup-config.php

    /etc/nginx/sites-available/default
    looks like:
    server {
    listen 80 default_server;
    listen [::]:80 default_server;
    root /var/www/html;
    index index.php index.html index.htm index.nginx-debian.html;
    server_name _;
    location / {
    try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/run/php/php8.1-fpm.sock;
    }

    }

    I appreciate if anyone can help me.

    • This topic was modified 2 years, 2 months ago by eduleon.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your admin panel, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the default theme for your version of WordPress to rule-out a theme-specific issue. If you don’t have access to your admin panel, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue.

    If that does not resolve the issue, it’s possible that a .htaccess rule could be the source of the problem. To check for this, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and rename the .htaccess file. If you can’t find a .htaccess file, make sure that you have set your SFTP or FTP client to view invisible files.

    If you weren’t able to resolve the issue by either resetting your plugins and theme or renaming your .htaccess file, we may be able to help, but we’ll need a more detailed error message. Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    Thread Starter eduleon

    (@eduleon)

    Hi thanks for the suggestions, but i’, trying to reach the page for setting up the wordpress, it’s still not installed and connected to db.
    Nginx doesn’t use htaccess as apache.

    Thread Starter eduleon

    (@eduleon)

    i activated the logs and got
    [error] 24438#24438: *39 FastCGI sent in stderr: “PHP message: PHP Warning: require_once(/var/www/html/wp-includes/class-wpdb.php): Failed to open stream: No such file or directory in /var/www/html/wp-includes/load.php on line 547PHP message: PHP Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/wp-includes/class-wpdb.php’ (include_path=’.:/usr/share/php’) in /var/www/html/wp-includes/load.php:547
    Stack trace:
    #0 /var/www/html/wp-settings.php(124): require_wp_db()
    #1 /var/www/html/wp-admin/setup-config.php(33): require(‘…’)
    #2 {main}
    thrown in /var/www/html/wp-includes/load.php on line 547PHP message: PHP Warning: require_once(/var/www/html/wp-includes/class-wp-textdomain-registry.php): Failed to open stream: No such file or directory in /var/www/html/wp-includes/load.php on line 1346PHP message: PHP Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/wp-includes/class-wp-textdomain-registry.php’ (include_path=’.:/usr/share/php’) in /var/www/html/wp-includes/load.php:1346
    Stack trace:
    #0 /var/www/html/wp-includes/class-wp-fatal-error-handler.php(174): wp_load_translations_early()
    #1 /var/www/html/wp-includes/class-wp-fatal-error-handler.php(154): WP_Fatal_Error_Handler->display_default_error_template()
    #2 /var/www/html/wp-includes/class-wp-fatal-error-handler.php(58): WP_Fatal_Error_Handler->display_error_template()
    #3 [internal function]: WP_Fatal_Error_Handler->handle()
    #4 {main}
    thrown in /var/www/html/wp-includes/load.php on line 1346” while reading response header from upstream, client: 192.168.189.1, server: _, request: “GET /wp-admin/setup-config.php HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php8.1-fpm.sock:”, host: “192.168.189.128”`

    I can’t add a database even there is no other database and when I see my website they say no database found.

    Thread Starter eduleon

    (@eduleon)

    The first page i can’t reach should be like that to connect to the database

    https://i.postimg.cc/sXWFM9GV/bild-2022-12-29-164120983.png

    Thanks for your help.

    Thread Starter eduleon

    (@eduleon)

    I “Solved” the issue or just a workaround.

    Due to the NginX error log in /var/log/nginx/
    It says:
    “FastCGI sent in stderr: “PHP message: PHP Warning: require_once(/var/www/html/wp-includes/class-wp-textdomain-registry.php): Failed to open stream: No such file or directory in /var/www/html/wp-includes/load.php on line 1346PHP message: PHP Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/wp-includes/class-wp-textdomain-registry.php’ (include_path=’.:/usr/share/php’) in /var/www/html/wp-includes/load.php:1346”

    It’s refering to the file /var/www/html/wp-includes/class-wp-textdomain-registry.php that has something to do with the language between the wordpress and the server it self i think.

    The workaround was to download an erlier version, in my case 6.0.2, and from there upgrade to 6.1.1. Or just download the right one.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress Error 500 localhost:/wp-admin/setup-config.php’ is closed to new replies.