问题标签 [izpanel]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
4773 浏览

java - Izpack: Creating custom panels

I am trying to create a custom panel for an IzPack installer. This means that I have to extend IzPanel. However, it appears that if I do this, the extended panel needs to be in the com.izforge.izpack.panels package.

Then I found this post, which stipulates that:

  1. As such, you must include installer.jar from the lib folder of IzPack in the build path of your custom panel project.
  2. Your custom panel /must/ extend com.izforge.izpack.installer.IzPanel.
  3. Furthermore, it /must/ reside in the com.izforge.izpack.panels package.
  4. On top of it all, your build jar's name /must/ be the same as the unqualified name of your custom panel class.

I take issue with the 1st and 4th points. They imply that I have to create an additional JAR file for each custom IzPanel that I create. Also, I would have to modify the IzPack installation by adding these JARs to one of its subdirectories.

Is this article outdated (2008) and can it be safely ignored, or is this still true?
If not how can I avoid this and simply have the extended IzPanel on the classpath instead?

Thank you!

0 投票
2 回答
1988 浏览

java - izpack 安装程序自定义卸载程序

我使用 izpack 创建了安装程序和卸载程序。我面临的问题是当我卸载它时会删除我安装的所有东西。我想根据我的配置自定义我的卸载程序,因为我需要保留费用文件并在运行我的 unisntaller 时删除其余文件。只要我对 izpack 有所了解和研究,unistaller 的默认行为是,它会删除安装程序已安装的所有内容。那么有什么方法可以自定义卸载程序以及如何自定义。谢谢

0 投票
1 回答
1905 浏览

php - 移动 Zpanel 默认备份目录或 Opendir 备份目录

我正在编写一个脚本,它将所有 zpanel 备份上传到我的 Amazon S3 帐户。如果我不使用 zpanel 备份并创建和上传我使用 CronJob 创建的备份,它就可以工作。

我无法上传 zpanel 备份的原因是我无法找到使用 php opendir 函数访问“备份”目录的方法。

我知道备份文件夹的绝对路径。看起来,这条绝对路径不适用于opendir()

我用过:opendir('var/zpanel/hostdata/my_username/backups/')

而且它不会起作用。现在,如果我想使用相对路径,我也无法到达那里。

那么,有没有办法可以将 zPanel Backups 目录移动到 public_html 文件夹内的某个位置?或者,可以访问备份文件夹的 Web URL?Ajaxplorer 可以到达那里,为什么我不能?

如果不可能,如果有人能教我一种创建备份的方法,就像 zPanel 一样(所有 DB + public_html 文件夹中的所有内容),我将不胜感激。

代码看起来像这样

提前非常感谢!

0 投票
0 回答
1403 浏览

java - 自定义 IZPack 中的卸载程序

目前我的应用程序有一个安装程序和一个卸载程序,问题出在卸载过程中。即,如果我给出类似“java -jar uninstaller.jar”的命令来卸载我的应用程序,我会弹出一个带有一个复选框的弹出窗口,其中包含消息“强制删除 /opt/app(这是安装路径)”和两个按钮:卸载并退出。

问题是如果我不选中复选框并单击“卸载”按钮,它会显示“卸载成功”,但安装路径没有被删除,只有“卸载”文件夹被删除。

如果我选中复选框并单击“卸载”按钮,一切都会好起来的。

所以,我更喜欢的是,如果我选中复选框,那么卸载按钮应该被启用,在所有其他情况下它应该被禁用,即当我运行卸载程序 (java -jar uninstaller.jar) 时,卸载按钮应该被禁用。

谁能帮我解决这个问题?

0 投票
1 回答
398 浏览

java - 在 IZPack 中自定义安装程序

我只想根据前面的面板结果(即 InstallPanel)自定义 SimpleFinishPanel。

作为安装程序的一部分,我也在安装“Postgres 数据库”,在 postgres 安装过程中,我想中止安装过程。目前,即使您中止了安装,也会收到带有消息的 SimpleFinishPanel,即Installatio 已成功完成,并且已在$INSTALL-PATH/Uninstall ”处创建了卸载程序。

这里我期待的是安装GUI 应该表明安装被中止并且不成功。

0 投票
1 回答
351 浏览

php - 使用 cakephp 的 Zpanel 和 cron 作业

我已经尝试并浏览了很多关于如何使用 CakePHP 和 zpanel 设置 cron 作业

在 zpanel 我尝试了不同类型的 url

例如

  1. domain_folder/app/cron_dispatcher.php /CampaignMasters/newsletter_find_cron(错误:脚本不存在)

然后我尝试了一个文件 domain_folder/app/cronjob.php(Worked)

它有效,但我很困惑如何从 cronjob.php 调用“domain_folder/app/cron_dispatcher.php /CampaignMasters/newsletter_find_cron”

我处于非常扭曲的状态,通过尝试多种方法,我已经尝试了大约 10 个小时。

请任何 zpanel 或 CakePHP 专家告诉我将其设置为 cron 作业的最佳方法。

我可以在 zpanel 中通过 ssh 添加 cron 作业吗?如果我可以通过 ssh "domain_folder/app/cron_dispatcher.php /CampaignMasters/newsletter_find_cron" 添加这个,那就太好了。我准备尝试任何事情。

操作系统是 CentOS

0 投票
3 回答
2021 浏览

apache - Zpanel 输出错误:已超出此域磁盘限制?

自动 zpanel 显示 This domain disk limit has been exceeded!对于使用 ZPanel 在 VPS 中托管的所有网站

0 投票
1 回答
414 浏览

php - 无法在 zpanel vps 中配置域

我正在使用 zpanel 开发 vps 服务器。我在这方面真的很新。我不知道如何设置 WordPress 和使用它。我已经阅读了本手册 。但这并没有真正的帮助。我被困在第 5 步。我的 zpanel 中没有 ajax explorer。然后我浏览了另一本手册,上面说要在 zpanel 中添加一个 repo。我也不知道如何添加它。谁能帮我设置在我的 zpanel 中手动创建一个 wordpress 网站。谢谢!

0 投票
1 回答
540 浏览

izpack - Izpack 找不到为 InstallPanel 定义的自定义操作类

我使用 5.0.0-rc4 作为 izpack 版本,并且izpack-installer工件作为我的 pom.xml 中的依赖项存在。

我已经DeletePreviousInstallationActionInstallPanel.

InstallPanel 定义包含在 install.xml 中,如下所示。

DeletePreviousInstallationAction代码:

当我尝试构建安装项目时,我得到了失败:找不到类'com.xyzwDeletePreviousInstallationAction'。为什么会这样?

0 投票
1 回答
155 浏览

izpack - IzPack 4.3.5 branding

I would like to remove or change the "Made with IzPack" text at the footer. I would also like to change the installer icon.

But I couldn't find any examples. I am using 4.3.5, please don't suggest using version 5.0.

Any help would be appreciated!

Thanks