Hello all
I have some questions about how Yunohost works with apps, as part of troubleshooting Processwire install on Yunohost.
Describe the bug
After successful install of processwire, the processwire admin page will not successfully accept default login details.
Context
Hardware:
- main YH instance: Old computer - Mac Mini circa 2014 (running on VM via VirtualBox)
YunoHost version: 11.2.3
I have access to my server :
- Through SSH
- through the webadmin
- direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
This follows from my previous, related thread here: https://forum.yunohost.org/t/yunohost-package-404-on-admin-page-after-first-successful-install/27695
Steps to check admin credentials
What I have tried:
Attempt 1. Entering log in credentials created at Processwire setup
Result 1. Unable to log in. user and password boxes reset.
Attempt 2. Checking login username is correct in PHPMyAdmin by running @BitPoet’s suggested query: Reset Admin Password or Add SuperUser Rol - General Support - ProcessWire Support Forums
select name
from pages
where id
= 41;
Also checked the ‘pages’ table:
Result 2. Superuser admin name I’m using is correct.
Attempt 3. Re-setting credentials via a code snippet added to home.php, as recommended by @ryan in 2012: forgot backend password, how do you reset?! - Getting Started - ProcessWire Support Forums
- Downloading the home.php file via SFTP.
- Adding the php inside the php code brackets at the top of the home.php file.
- Changing the admin and pass details to my own.
- Saving home.php locally.
- Uploading home.php via SFTP.
- In browser (Safari), refreshing view of my home page: https://domain.tld
- In browser (Safari), refreshing view of my admin page: https://domain.tld/processwire
- Entering new login details, press enter. Login page refreshes, deletes entries, does not log me in.
Result 3: No errors, but also can’t log in using re-set credentials.
Attempt 4: Re-setting credentials via a code snippet by @kongondo above: Reset Admin Password or Add SuperUser Rol - General Support - ProcessWire Support Forums
Result 4: Same steps as before, same result.
Attempt 5: Re-setting credentials via a code snippet by @bernhard above: Reset Admin Password or Add SuperUser Rol - General Support - ProcessWire Support Forums
Result 5: Same steps as before, same result.
Attempt 6: Creating a tool.php file and adding code snippet to it as recommended by @Soma here: forgot backend password, how do you reset?! - Getting Started - ProcessWire Support Forums
Result 6: Similar steps as before, but no noticeable change, and no successful login.
After this experiment, I deleted tool.php, but even so, my errors all refer to the tool.php file.
Quote
2024-01-16 21:40:49 guest https://domain.tld/http404/ Fatal Error: Uncaught Error: Call to undefined function wire() in /var/www/processwire/tool.php:3 Stack trace: #0 {main} thrown (line 3 of /var/www/processwire/tool.php)
This seems to be an issue about Processwire using Apache2, and Yunohost using nginx.
To investigate further, I need some more detail about how Yunohost nginx works.
My questions
- is Yunohost is using nginx as a proxy to the Processwire package?
- is the Processwire app itself is being served by apache2?
- if not, how does the nginx in yunohost work?
I am seeking support on the Processwire forum, to (hopefully!) resolve the Yunohost Processwire package issue. Answers to these questions will give folks over there the necessary detail to navigate this issue with me.
Thanks for reading, and I hope to hear from someone soon.