从伊甸园到桃花源 » 日志 » Hostgator 设置 CronJobs
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
/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
相关日志:
- » 记一次访贫
- » 服务器的安华镇实行专业化卫生保洁
- » 这样di男人
- » 分手前好好看看下面这段话
- » 但牛逼永远是牛逼。
收藏:
QQ书签
del.icio.us
订阅:
Google
抓虾
最新评论
-
2009-03-24 03:14:47 匿名 121.29.*.* http://www.blogdao.com
我也用得是Hostgator的主机,感谢您提供这篇教程




