【发布时间】:2026-02-01 06:40:01
【问题描述】:
我在 Symfony 中设置了一个手动运行良好的命令:
php -d memory_limit=1G /app/console comptage:absences --no-debug
我想通过 Cron 运行它。 我尝试了很多东西:
php -d memory_limit=1G /home/tharmo/app/console comptage:absences --no-debug
php -d memory_limit=1G /public_html/tharmo/app/console comptage:absences --no-debug
/public_html/tharmo/php -d memory_limit=1G /home/tharmo/app/console comptage:absences --no-debug
首先,我得到没有指定的输入文件。 最后一个,我得到:
/usr/local/cpanel/bin/jailshell: /public_html/tharmo/php: No such file or directory
控制台路径是:public_html/tharmo/app/console
服务器:运行 cPanel 的 VPS PlanetHoster
【问题讨论】:
-
问题已解决:我联系了支持人员,他们告诉我路径是 /home/tutotour/public_html... 现在一切正常
-
@KristenJoseph-Delaffon 写一个答案(并接受它),而不是评论。