我在 1and1.com 有一个使用 Parallels Plex Panel 的专用服务器,我使用标准设置进行设置。我试图让以下文件每天运行一次:
httpdocs/www/routine.php
(httpdocs 是我网站的根目录)
当我在他们的计划任务面板的命令字段中输入此路径时,我收到“权限被拒绝”错误。这不是一个受保护的目录,并且该文件可以从 Web 完美运行。
根据我在网上找到的东西和我在运行时找到的信息,我尝试了该命令的许多其他变体phpinfo()
。以下方法均无效(见下文)。
有没有人在 1and1 遇到过类似的问题?我需要在命令字段中输入什么才能使其运行?是否有基于 phpinfo 结果的标准公式?1and1 拒绝提供帮助。
从 PHPINFO():
请注意,我已将我的域替换为“example.com”,将用户名替换为“unsername”。“default-domain.com”元素是 1and1.com 托管所独有的。
_SERVER["HTTP_HOST"]
www.example.com
PP_CUSTOM_PHP_INI:
/var/www/vhosts/example.com/etc/php.ini
DOCUMENT_ROOT
/var/www/vhosts/default-domain.com/httpdocs/www
SCRIPT_FILENAME
/var/www/vhosts/default-domain.com/httpdocs/www/routine.php
以前试过:
/var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/var/www/vhosts/example.com/etc/ /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/var/www/vhosts/example.com/etc/php /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/var/www/vhosts/example.com/etc/php.ini /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/etc/ /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/usr/lib/php /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/bin/ /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/bin/php /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/bin/php /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/bin/php /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/sbin/ /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/sbin/php /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/usr/sbin/ /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/usr/sbin/php /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/usr/bin/ /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/usr/bin/php /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
/sbin:/usr/sbin:/bin:/usr/bin /var/www/vhosts/default-domain.com/httpdocs/www/routine.php
php -q /username/example/httpdocs/www/routine.php
php -q /username/example.com/httpdocs/www/routine.php
php -q /example/httpdocs/www/routine.php
php -q /example.com/httpdocs/www/routine.php
php -q /username/httpdocs/www/routine.php
php -q /httpdocs/www/routine.php
php -q /www/routine.php
php -q /routine.php
php /username/example/httpdocs/www/routine.php
php /username/example.com/httpdocs/www/routine.php
php /username/www.example.com/httpdocs/www/routine.php
php /example/httpdocs/www/routine.php
php /example.com/httpdocs/www/routine.php
php /www.example.com/httpdocs/www/routine.php
php /username/httpdocs/www/routine.php
php /httpdocs/www/routine.php
php /www/routine.php