Hostgator 设置 CronJobs

wuyiheng 发表于 2008-10-13 15:16:34

很多hostgator的用户说不会设置cronjob,其实是不知道路径,这里共享出自己的测试可行的脚本:
/usr/bin/php /home/{AccountName}/public_html/cgi-bin/cron.php
不一定要放到cgi-bin目录下,但为了安全起见:)

附hostgator的环境目录:(客服还真负责,虽然技术知识一般)
Here is a list of commonly used paths that customers ask about:
The server or absolute path is /home/username/public_html
The save session path is /home/username/tmp
The path to AWStats is /home/username/tmp/awstats
The path to cgi is /home/username/public_html/cgi-bin/ or /var/www/cgi-bin
The path to Perl is /usr/local/bin/perl
The local path to Sendmail is /usr/sbin/sendmail
The path to PHP is /usr/bin/php
The path to Zend Optimizer is /usr/local/Zend
The path to MySQL is /var/lib/mysql
The path to Pear is /usr/bin/pear
The path to Python is /usr/bin/python
The path to openSSL is /usr/bin/openssl
The FTP root path is /home/username/ (only accessible if using the cPanel login)
The FTP directory path is /public_html/ or just leave blank
The path to Aspell is /usr/bin/aspell
The local path to ImageMagick is /usr/bin/
The local path to convert with ImageMagick is one of the following... -1 /usr/bin/ -2 /usr/local/bin/convert -3 /usr/bin/X11/
The path to the GD2 library is /usr/lib
The path to the GD2 include directory is /usr/include
The path to rsync is /usr/bin/rsync Path to Exim logs is /var/log/exim_mainlog
The path to PHPmyadmin is http://yourdomain.com:2082/3rdparty/phpMyAdmin/index.php


收藏: QQ书签 del.icio.us 订阅: Google 抓虾

最新评论


  • blogdao
    2009-03-24 03:14:47 匿名 121.29.*.* http://www.blogdao.com

    我也用得是Hostgator的主机,感谢您提供这篇教程

发表评论

* 昵称

已经注册过? 请登录

新用户请先注册 以便能显示头像及追踪评论回复

Email
网址
* 评论
表情
 
 

分类小组论坛
杂谈, 娱乐、八卦, 文学、艺术, 体育, 旅游、同城, 象牙塔, 情感, 时尚、生活, 星座, 科技

请注意遵守中华人民共和国法律法规, 如威胁到本站生存, 将依法向有关部门报告, 同时本站的相关记录可能成为对您不利的证据.

相关法律法规
全国人大常委会关于维护互联网安全的决定
中华人民共和国计算机信息系统安全保护条例
中华人民共和国计算机信息网络国际联网管理暂行规定
计算机信息网络国际联网安全保护管理办法
计算机信息系统国际联网保密管理规定