Access Wordpress admin without having to point the toplevel domain DNS to Yunohost

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.17
How are you able to access your server: The webadmin
SSH

Describe your issue

Hi!

I want to move everything from how I currently host things in my domain to a server running Yunohost. I’ve configured the top domain in Yunohost, but of course, I don’t want to redirect the DNS to the yunohost yet as there is a Wordpress site running somewhere else on the topdomain URL and the www subdomain.
I’ve created a www2 subdomain in Yunohost, configured the DNS to point to the yunohost instance - confirmed it works with LetsEncrypt - and installed Wordpress on that, but when I want to access the admin page it keeps redirecting me to the SSO page which is unavailable as the topdomain is not directed to the Yunohost instance.
How can I bypass the Yunohost security for the Wordpress admin page? Or maybe better, how can I tell Yunohost to enable signon for the domain on a different URL?

Thanks

Share relevant logs or error messages

No such share button

I have a similar issue. I have a (static, working) Wordpress website on Yunohost (with its own domain name, and also accessible through mydomain.tld/blog), but I cannot access the Admin panel. Updating Wordpress is likewise impossible. The applications list states this:
“Updating WordPress
As the automatic update plugin isn’t working as expected, pay attention to keep your WordPress up to date from the WordPress admin panel, and not only from YunoHost admin panel. For security reason, you should control that all updates are regularly applied in WordPress admin panel as well as in YunoHost admin panel.”
But trying to access the admin panel gives HTTP ERROR 500.

Access to wp-admin.php is by default restricted to members of LDAP admins group. Do you have the right access rights?

As for HTTP/500 - do you happen to have any additional logs under /var/log/nginx/domain.tld-error.log ? Perhaps you can enable verbose errors in WordPress itself to see what’s the issue?

Hi @neeohw

I would try two things (without certainty that it works.)
Solution 1) deleting from yunohost the top domain and setting one of your subdomain as the main domain.
Solution 2) setting the top domain as the main domain, point the DNS to it and install the redirect app, pointing to your wordpress site ip.

[EDIT] Sorry, the second solution doesn’t fit your needs, since you want your users to keep accessing WordPress through its usual domain name.

1 Like

Removing the top domain worked. I didn’t know I could actually do that.
Thanks!
Love the project!

Later on, when you “shut down” your first WordPress, you’ll be able to reinstall your top-level domain on YunoHost and move the second WordPress there.

Thanks for pointing me to these logs, I found the relevant error:

PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /var/www/wordpress/wp-config.php on line 88

and eliminated the cause of the error in /var/www/wordpress/wp-config.php.

1 Like

Yes, I successfully moved the website!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.