A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

Varnish was the problem. Varnish removes cookies from the response. That's why it didn't work in our case!


0

You need to set the auth cookie after wp_signon. Add this code and try and let me know the result. $user = wp_signon( $creds, false ); $userID = $user->ID; wp_set_current_user( $userID, $creds['user_login'] ); wp_set_auth_cookie( $userID, true, false ); do_action( 'wp_login',$creds['user_login'] );


0

It works now. For those wondering, there was something wrong with the symlinks so I just went back to the original WP permissions. sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/ sudo find /opt/bitnami/apps/wordpress/ -type f -exec chmod 664 {} \; sudo find /opt/bitnami/apps/wordpress/ -type d -exec chmod 775 {} \; sudo chmod 640 /opt/bitnami/apps/...


0

Make sure the user running on behalf of the webserver's PHP process has ownership permissions on /path/to/wordpress Example For Ubuntu 18.04 running Apache2 # Go to wordpress installation root directory cd /path/to/wordpress # Give ownership to Apache2's PHP process sudo chown www-data:www-data . # Apply files and directories permissions sudo find . -...


Top 50 recent answers are included