2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 04:22:33 +08:00

fix: 修复PHP设置Cli不生效

This commit is contained in:
2025-12-30 16:23:13 +08:00
parent 4b7eb49415
commit db80cca9dc

View File

@@ -57,7 +57,7 @@ func (s *App) Route(version uint) func(r chi.Router) {
}
func (s *App) SetCli(w http.ResponseWriter, r *http.Request) {
if _, err := shell.Execf("ln -sf %s/server/php/%d/bin/php /usr/bin/php", app.Root, s.version); err != nil {
if _, err := shell.Execf("ln -sf %s/server/php/%d/bin/php /usr/local/bin/php", app.Root, s.version); err != nil {
service.Error(w, http.StatusInternalServerError, "%v", err)
return
}