Hello!
There
are no custom themes or plugins installed. It was a fresh install of
WordPress on a fresh install of Debian. Everything else seems to work as
intended except for logging out. As a test, I upgraded a previous
installation to Testing and the issue I'm describing does not occur in
the newer version of the WordPress package, so I'm assuming that it only affects Stable
(or just me?). I also installed using the tar.gz from the WordPress site and the issue is not present using that method either. I would prefer to stick to using the package from stable for this project, so I figured I'd ask here if there are any solutions available.
There is nothing to note in the apache error.log and only the following in the access.log from logging in and logging out:
192.168.xx.xx
- - [07/Oct/2020:13:59:21 -0400] "GET /wp-login.php HTTP/1.1" 200 1716
"-" "Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101
Firefox/81.0"
127.0.0.1 - - [07/Oct/2020:13:59:21 -0400] "POST /wp-cron.php?doing_wp_cron=1602093561.5680999755859375000000 HTTP/1.1" 200 166 "-" "WordPress/5.0.10; http://wptest.local.lan"
192.168.xx.xx - - [07/Oct/2020:13:59:21 -0400] "GET /favicon.ico HTTP/1.1" 404 493 "http://wptest.local.lan/wp-login.php" "Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0"
192.168.xx.xx - - [07/Oct/2020:13:59:28 -0400] "POST /wp-login.php HTTP/1.1" 302 1085 "http://wptest.local.lan/wp-login.php" "Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0"
192.168.xx.xx - - [07/Oct/2020:13:59:28 -0400] "GET /wp-admin/ HTTP/1.1" 200 15547 "http://wptest.local.lan/wp-login.php" "Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0"
192.168.xx.xx - - [07/Oct/2020:13:59:28 -0400] "GET /wp-includes/js/thickbox/loadingAnimation.gif HTTP/1.1" 200 15525 "http://wptest.local.lan/wp-admin/" "Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0"
192.168.xx.xx - - [07/Oct/2020:13:59:31 -0400] "GET /wp-login.php?action="" HTTP/1.1" 302 2453 "http://wptest.local.lan/wp-admin/" "Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0"
Steps to reproduce:
- Install Debian 10.5 on KVM virtual machine in Proxmox
- Update Debian:
- sudo apt update && sudo apt upgrade
- Install packages:
- sudo apt install wordpress curl apache2 mariadb-server
- Secure database:
- sudo my_sql_secure_installation
- Set hostname
- sudo hostnamectl set-hostname wptest
- Edit /etc/hosts:
- sudoedit /etc/hosts
- 127.0.0.1 wptest.local.lan wptest
- Run wordpress helper script:
- cd /usr/share/wordpress/examples
- sudo bash setup-mysql -n wordpress wptest.local.lan
- Configure apache:
- sudoedit /etc/apache2/sites-available/wordpress.conf
<VirtualHost *:80>
ServerName wptest.local.lan
ServerAdmin webmaster@local.lan
DocumentRoot /usr/share/wordpress
Alias /wp-content /var/lib/wordpress/wp-content
<Directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
Require all granted
</Directory>
<Directory /var/lib/wordpress/wp-content>
Options FollowSymLinks
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
-
Disable default site:
- sudo a2dissite 000-default.conf
- Enable site:
- sudo a2ensite wordpress.conf
- Reload apache:
- sudo systemctl reload apache2
- Visit site: http://wptest.local.lan
- Perform initial setup
- Log in
- Use 'Log Out' in upper right corner of the screen in the admin header.
- It redirects to http://wp-login.php/?loggedout=true (hostname is missing)
* (enabling mod_rewrite doesn't help either)
System Information:
$ cat /etc/debian_version
10.6
$ apt policy wordpress
wordpress:
Installed: 5.0.10+dfsg1-0+deb10u1
Candidate: 5.0.10+dfsg1-0+deb10u1
Version table:
*** 5.0.10+dfsg1-0+deb10u1 500
500 http://http.us.debian.org/debian buster/main amd64 Packages
500 http://security.debian.org/debian-security buster/updates/main amd64 Packages
100 /var/lib/dpkg/status
Thanks in advance,
Chuck