gpt4 book ai didi

debian - phpmyadmin的debconf选择,无人参与安装,没有安装Web服务器,也没有dbconfig-common

转载 作者:行者123 更新时间:2023-12-04 04:56:59 27 4
gpt4 key购买 nike

想要从bash脚本安装phpmyadmin,我发现很难获得正确的debconf选择,以便不安装/配置任何Web服务器(使用nginx,仅apache2和lighttpd可用)并且不具有使用dbconfig-配置的phpmyadmin数据库。很常见,因为我没有在Google上找到类似的东西。

这是Ubuntu 14.04 phpmyadmin 4:4.0.10-1上包含debconf选择的完整列表:

debconf-get-selections | grep phpmyadmin
phpmyadmin phpmyadmin/password-confirm password
# MySQL application password for phpmyadmin:
phpmyadmin phpmyadmin/mysql/app-pass password
phpmyadmin phpmyadmin/mysql/admin-pass password
phpmyadmin phpmyadmin/setup-password password
phpmyadmin phpmyadmin/app-password-confirm password
# Database type to be used by phpmyadmin:
phpmyadmin phpmyadmin/database-type select mysql
# Reinstall database for phpmyadmin?
phpmyadmin phpmyadmin/dbconfig-reinstall boolean false
phpmyadmin phpmyadmin/remove-error select abort
phpmyadmin phpmyadmin/reconfigure-webserver multiselect
phpmyadmin phpmyadmin/missing-db-package-error select abort
# Configure database for phpmyadmin with dbconfig-common?
phpmyadmin phpmyadmin/dbconfig-install boolean false
phpmyadmin phpmyadmin/upgrade-error select abort
# Perform upgrade on database for phpmyadmin with dbconfig-common?
phpmyadmin phpmyadmin/dbconfig-upgrade boolean true
# Deconfigure database for phpmyadmin with dbconfig-common?
phpmyadmin phpmyadmin/dbconfig-remove boolean
phpmyadmin phpmyadmin/remote/port string
phpmyadmin phpmyadmin/internal/skip-preseed boolean true
# Do you want to back up the database for phpmyadmin before upgrading?
phpmyadmin phpmyadmin/upgrade-backup boolean true
phpmyadmin phpmyadmin/setup-username string admin
# Host name of the MySQL database server for phpmyadmin:
phpmyadmin phpmyadmin/remote/host select
# MySQL database name for phpmyadmin:
phpmyadmin phpmyadmin/db/dbname string
phpmyadmin phpmyadmin/mysql/admin-user string root
phpmyadmin phpmyadmin/install-error select abort
# Host running the MySQL server for phpmyadmin:
phpmyadmin phpmyadmin/remote/newhost string
# MySQL username for phpmyadmin:
phpmyadmin phpmyadmin/db/app-user string
# Connection method for MySQL database of phpmyadmin:
phpmyadmin phpmyadmin/mysql/method select unix socket
phpmyadmin phpmyadmin/internal/reconfiguring boolean false
# Do you want to purge the database for phpmyadmin?
phpmyadmin phpmyadmin/purge boolean false
phpmyadmin phpmyadmin/passwords-do-not-match error

注意:为了运行 debconf-get-selections,您将需要 debconf-utils软件包(在Ubuntu/Debian上可能与其他Debian基本发行版上的软件包相同),请运行 apt-get install debconf-utils(对于要通过脚本执行此操作的人员,安装时没有提示)。

最佳答案

root的身份运行:

APP_PASS="your-app-pwd"
ROOT_PASS="your-admin-db-pwd"
APP_DB_PASS="your-app-db-pwd"

echo "phpmyadmin phpmyadmin/dbconfig-install boolean true" | debconf-set-selections
echo "phpmyadmin phpmyadmin/app-password-confirm password $APP_PASS" | debconf-set-selections
echo "phpmyadmin phpmyadmin/mysql/admin-pass password $ROOT_PASS" | debconf-set-selections
echo "phpmyadmin phpmyadmin/mysql/app-pass password $APP_DB_PASS" | debconf-set-selections
echo "phpmyadmin phpmyadmin/reconfigure-webserver multiselect apache2" | debconf-set-selections

apt-get install -y phpmyadmin

来自: http://gercogandia.blogspot.com.ar/2012/11/automatic-unattended-install-of.html

关于debian - phpmyadmin的debconf选择,无人参与安装,没有安装Web服务器,也没有dbconfig-common,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30741573/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com