Go Back   Linux CentOS, Control Panel, Hot girl, TOP 10 GOOGLE, Server - System - Manager, Operation System, Thiet ke website, Hack war3, hack map, dota hacking > Dành cho webmaster > Server Manager

Hack map cua war3 version 1.24e - co the chuyen tien
Hack gunz.2it.in mới update ngày 2/3/2010 (test by Admin)
Hướng dẫn Hack gold member tại quán net để mang về nhà
hack map dota cho war3 ver 1.24a, hackmap 1.24b, hack map 1.24c, hack dota 1.24d, hack map war3 1.24e, co the chuyen tien
crack windows 7 all version (using activators)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26-09-2008
Hackingart Member
 
Join Date: Sep 2008
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using PHP script with crontab. How to run?

Hi, I am trying to use a PHP script as a test for a cron job.

My crontab is 1 line:

30 * * * * /home/www/inc/crontab.php

if I test the file through the browser (ie. [Thành viên phải đăng kư mới xem được link này. ], the PHP script works -- so there is nothing wrong with the PHP script itself or the path.

I aked my hosting admin for assistance and the error he keeps getting is:

/bin/sh: line 1: /home/www/inc/crontab.php: Permission denied

What permission do I need to set to get it to work???
Reply With Quote
  #2 (permalink)  
Old 26-09-2008
Moderator
 
Join Date: Jul 2008
Posts: 179
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What about this (adjust path to php executable below)?

30 * * * * /usr/bin/php /home/www/inc/crontab.php

Note that your host may not necessarily have the php executable installed if it is just meant to run as a module to Apache. Only you (or your host admin) will know how the PHP is configured. In that case, you will not be able to run PHP scripts on the command line.

By the way the following works for me:

a.php:

#!/usr/bin/php
<?php phpinfo() ?>

chmod +x a.php
./a.php

So you probably may do it too.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT +8. The time now is 09:01 PM.


© Diễn đàn HackingArt (HA) được xây dựng và phát triển bởi các thành viên.
+ Diễn đàn HackingArt là nơi trao đổi của các webmaster chuyên nghiệp.

Search Engine Friendly URLs by vBSEO 3.2.0