keengo99 / kangle

GNU General Public License v3.0
79 stars 23 forks source link

是否不再支持主机模板 #70

Open funnycups opened 1 month ago

funnycups commented 1 month ago

我注意到3.6版本的虚拟主机列表里的模板那一列被移除了,而且kangle也无法通过vh_database来加载ep生成的主机,3.6版本是否不再支持主机模板功能?

keengo99 commented 1 month ago

是的,不再支持虚拟主机模板了!

---原始邮件--- 发件人: @.> 发送时间: 2024年8月1日(周四) 中午11:56 收件人: @.>; 抄送: @.***>; 主题: [keengo99/kangle] 是否不再支持主机模板 (Issue #70)

我注意到3.6版本的虚拟主机列表里的模板那一列被移除了,而且kangle也无法通过vh_database来加载ep生成的主机,3.6版本是否不再支持主机模板功能?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

netcccyun commented 1 month ago

是的,不再支持虚拟主机模板了! ---原始邮件--- 发件人: @.> 发送时间: 2024年8月1日(周四) 中午11:56 收件人: @.>; 抄送: @.>; 主题: [keengo99/kangle] 是否不再支持主机模板 (Issue #70) 我注意到3.6版本的虚拟主机列表里的模板那一列被移除了,而且kangle也无法通过vh_database来加载ep生成的主机,3.6版本是否不再支持主机模板功能? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

不支持主机模板,那还能用什么方式开通php虚拟主机?还有没有类似easypanel方便的面板来对接?

1265578519 commented 1 month ago

image 直接扩展外部命令方式应该正常使用的吧?好像很久以前的版本就不支持虚拟主机模板了,我在3.5.21.16里面也没找到模板,但是easypanel是可以正常使用和切换php版本的

funnycups commented 1 month ago

3.5.21.16是有模板的,而且ep也是通过模板创建主机的,数据库文件里面有模板的字段


From: 小樱 @.> Sent: Monday, August 5, 2024 9:35:12 PM To: keengo99/kangle @.> Cc: funnycups @.>; Author @.> Subject: Re: [keengo99/kangle] 是否不再支持主机模板 (Issue #70)

image.png (view on web)https://github.com/user-attachments/assets/3c4d805a-1435-43ae-9ca8-1552e5a6be8a 直接扩展外部命令方式应该正常使用的吧?好像很久以前的版本就不支持虚拟主机模板了,我在3.5.21.16里面也没找到模板,但是easypanel是可以正常使用和切换php版本的

― Reply to this email directly, view it on GitHubhttps://github.com/keengo99/kangle/issues/70#issuecomment-2269094830, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZIGOO5RPONZBSRRTIOGQ7LZP55RBAVCNFSM6AAAAABLZWKZTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRZGA4TIOBTGA. You are receiving this because you authored the thread.Message ID: @.***>

1265578519 commented 1 month ago

翻了下之前版本的源代码,KVirtualHostManage.cpp函数all_tvh里找到了确实是有模板的,入口地址是 3311/vhlist?t=1&id=0 image

1265578519 commented 1 month ago

3.6.0的相关代码好像都没删除,看到都在的,难道不支持了吗?之前群里也有人说3.6.0不支持easypanel了 https://github.com/keengo99/kangle/blob/main/src/KVirtualHostManage.cpp#L188

1265578519 commented 1 month ago

你试试3.6.0能不能加载xml?config.xml放在/vhs/kangle/ext/tpl_php737/config.xml 这里,然后重载kangle配置文件试试看url里面能不能看到这个模板,如果可以的话,那easypanel肯定是能正常工作开通虚拟主机的

<!--#start 61-->
<config>
<cmd name='php737' file='%{config_dir}/bin/php-cgi' listen='local' lock='0' type='mp' proto='fastcgi'>
<pre_event src_file='%{config_dir}/php-templete.ini' dst_file='/tmp/php-${name}.ini'/>
<env PHP_FCGI_MAX_REQUESTS='0' PHPRC='/tmp/php-${name}.ini'/>
</cmd>
<vhs  index='index.php'>
<map file_ext='php' extend='cmd:php737' allow_method='*'/>
</vhs>
<vh_templete name='php:php737' templete='html' index='index.php'>
<map file_ext='php' extend='cmd:php737' allow_method='*'/>
</vh_templete>
</config>
funnycups commented 1 month ago

我之前试过,xml文件可以正常加载,但是主机模板列表是打不开的,而且ep生成的数据库无法被加载。因为3.6.0的调试模式似乎没有详细的配置文件加载日志,所以不确定关于vh_database的配置是不是也正常加载了,如果是的话,那说明3.6.0是不能读取ep数据库的


From: 小樱 @.> Sent: Monday, August 5, 2024 9:59:53 PM To: keengo99/kangle @.> Cc: funnycups @.>; Author @.> Subject: Re: [keengo99/kangle] 是否不再支持主机模板 (Issue #70)

你试试3.6.0能不能加载xml?config.xml放在/vhs/kangle/ext/tpl_php737/config.xml 这里,然后重载kangle配置文件试试看url里面能不能看到这个模板

― Reply to this email directly, view it on GitHubhttps://github.com/keengo99/kangle/issues/70#issuecomment-2269150661, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZIGOOZ7KSJ6VU2AFGJNMGDZP6ANTAVCNFSM6AAAAABLZWKZTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRZGE2TANRWGE. You are receiving this because you authored the thread.Message ID: @.***>

1265578519 commented 1 month ago

如果上面那个3311的url打不开的话,,,有可能是核心不支持虚拟主机模板了,但是入口地址没删除,这个要找官方重新改回去才行 ep的db文件数据库,kangle需要使用mysql-libs和sqlite3这两个开发库才能打开,不知道是不是这个问题,centos预装了sqlite3,其它系统可能需要单独安装