Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I've installed adminer but get a 404, what extra steps do I need to take? #5191

Open
1 task done
RMHogervorst opened this issue Apr 3, 2022 · 10 comments
Open
1 task done
Labels

Comments

@RMHogervorst
Copy link

Is this a new Bug?

  • I checkd that the bug hasn't been reported before

Package Name

adminer

Package Version

4.8.1-5

Device Model

DS1515

Device Architecture

i686 (evansport)

Firmware Version

DSM 7.0.1-42214

What happened?

I installed

  • apache server 2.4
  • php 7.4
  • web station

I installed adminer
This all seems to work but I when I go to [ipadres]/adminer/
https://[localname]/adminer/
I get a 404

I have a feeling I need to enable something or change settings but I'm not sure where

Reproduction steps

1.start with clean dsm, with synocommunity repo activated
2. install:

- apache server 2.4
- php 7.4
- web station

3. install adminer through repository

Install Log

?I don't know how to get these logs

Service Log

?I don't know how to get these logs

Other Logs

d
@hgy59
Copy link
Contributor

hgy59 commented Apr 3, 2022

@RMHogervorst did you look in our wiki? https://github.com/SynoCommunity/spksrc/wiki/Adminer

You need to activate the required php extensions - either for the default php configuration - or create a virtual host with a specific php configuration.

EDIT:
sorry, on DSM 7 this this should work out of the box.
The installer creates a php profile for adminer called adminer Profile with description PHP Profile for adminer. This has the required php extenstions enabled ("mysqli","pgsql","pdo_mysql","pdo_pgsql","pdo_dblib","pdo_sqlite").

@RMHogervorst
Copy link
Author

This is indeed enabled but adminer is still not working is there an account I need to enable?

@RMHogervorst
Copy link
Author

I found the logs:

2022/04/03 17:50:16	install adminer 4.8.1-5 Begin preinst
2022/04/03 17:50:16	Begin reload_inst_variables
2022/04/03 17:50:16	End reload_inst_variables
2022/04/03 17:50:16	Begin initialize_variables
2022/04/03 17:50:16	End initialize_variables
2022/04/03 17:50:16	===> Step preinst. USER= GROUP= SHARE_PATH=
2022/04/03 17:50:16	install adminer 4.8.1-5 End preinst ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/mkdir -p /volume1/@appstore/adminer
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/mkdir -p /volume1/@appstore/adminer ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/rm -rf /volume1/@appstore/adminer
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/rm -rf /volume1/@appstore/adminer ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/mv -f /volume1/@tmp/pkginstall/extract.hDc2WH/package /volume1/@appstore/adminer
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/mv -f /volume1/@tmp/pkginstall/extract.hDc2WH/package /volume1/@appstore/adminer ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/rm -rf /var/packages/adminer
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/rm -rf /var/packages/adminer ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/mkdir -p /var/packages/adminer
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/mkdir -p /var/packages/adminer ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/touch /var/packages/adminer/installing
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/touch /var/packages/adminer/installing ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/mv -f /volume1/@tmp/pkginstall/extract.hDc2WH/INFO /var/packages/adminer/INFO
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/mv -f /volume1/@tmp/pkginstall/extract.hDc2WH/INFO /var/packages/adminer/INFO ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/rm -rf /var/packages/adminer/scripts
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/rm -rf /var/packages/adminer/scripts ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/mv -f /volume1/@tmp/pkginstall/extract.hDc2WH/scripts /var/packages/adminer/scripts
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/mv -f /volume1/@tmp/pkginstall/extract.hDc2WH/scripts /var/packages/adminer/scripts ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/rm -rf /var/packages/adminer/WIZARD_UIFILES
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/rm -rf /var/packages/adminer/WIZARD_UIFILES ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/mv -f /volume1/@tmp/pkginstall/extract.hDc2WH/WIZARD_UIFILES /var/packages/adminer/WIZARD_UIFILES
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/mv -f /volume1/@tmp/pkginstall/extract.hDc2WH/WIZARD_UIFILES /var/packages/adminer/WIZARD_UIFILES ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/rm -rf /var/packages/adminer/conf
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/rm -rf /var/packages/adminer/conf ret=[0]
2022/04/03 17:50:16	install adminer 4.8.1-5 Begin /bin/mv -f /volume1/@tmp/pkginstall/extract.hDc2WH/conf /var/packages/adminer/conf
2022/04/03 17:50:16	install adminer 4.8.1-5 End /bin/mv -f /volume1/@tmp/pkginstall/extract.hDc2WH/conf /var/packages/adminer/conf ret=[0]
2022/04/03 17:50:18	install adminer 4.8.1-5 Begin postinst
2022/04/03 17:50:18	Begin reload_inst_variables
2022/04/03 17:50:18	End reload_inst_variables
2022/04/03 17:50:18	Begin initialize_variables
2022/04/03 17:50:18	End initialize_variables
2022/04/03 17:50:18	===> Step postinst. USER= GROUP= SHARE_PATH=
2022/04/03 17:50:18	Begin save_wizard_variables
2022/04/03 17:50:19	End save_wizard_variables
2022/04/03 17:50:19	Begin syno_sync_var_folder
2022/04/03 17:50:19	End syno_sync_var_folder
2022/04/03 17:50:19	Begin service_postinst
2022/04/03 17:50:19	sed: can't read /var/services/web_packages/adminer/.htaccess: Permission denied
2022/04/03 17:50:19	End service_postinst
2022/04/03 17:50:19	install adminer 4.8.1-5 End postinst ret=[0]
2022/04/03 17:50:21	install adminer 4.8.1-5 Begin start-stop-status start
2022/04/03 17:50:21	install adminer 4.8.1-5 End start-stop-status start ret=[0]
2022/04/03 17:51:44	stop adminer 4.8.1-5 Begin start-stop-status stop
2022/04/03 17:51:44	stop adminer 4.8.1-5 End start-stop-status stop ret=[0]
2022/04/03 17:51:51	start adminer 4.8.1-5 Begin start-stop-status start
2022/04/03 17:51:51	start adminer 4.8.1-5 End start-stop-status start ret=[0]

@RMHogervorst
Copy link
Author

the other log says Installation log: /var/log/packages/adminer.log

@RMHogervorst
Copy link
Author

RMHogervorst commented Apr 4, 2022

Maybe this line is the problem: /var/services/web_packages/adminer/.htaccess: Permission denied?

@RMHogervorst
Copy link
Author

.htaccess file:

Require all denied
Require ip @@_wizard_htaccess_allowed_from_@@

@RMHogervorst
Copy link
Author

ls -l .htaccess:

-rw-r--r-- 1 sc-adminer http 66 Mar 19 23:04 .htaccess

@hgy59
Copy link
Contributor

hgy59 commented Apr 4, 2022

.htaccess file:

Require all denied
Require ip @@_wizard_htaccess_allowed_from_@@

yes, you got it. The install script was not able to replace @@_wizard_htaccess_allowed_from_@@ with the value entered in the wizard.

@RMHogervorst
Copy link
Author

so how do i fix this?

@hgy59
Copy link
Contributor

hgy59 commented Apr 4, 2022

You can manually edit the .htaccess file to replace @@_wizard_htaccess_allowed_from_@@ with the value you entered in the wizard (default: 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8) or you can delete .htaccess - but this would allow to access adminer from any network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants