First of all.. my server is Starka
I want to launch a PHP page once a Day
I tried a lot of strings on Cron Jobs, but i can't execute the page.
I think i can't see the PHP executable
Look at some mail that i received (at the moment,the file download.php is in my home directory and have a copy in public_html directory) :
/bin/sh: /usr/bin/php -q /home/bluled/www/download.php: No such file or directory
/bin/sh: php -q /home/bluled/public_html/
download.php: No such file or directory
/bin/sh: php /home/bluled/download.php: No such file or directory
/bin/sh: /usr/bin/php -h: No such file or directory <--------
/bin/sh: /usr/local/bin/php -h: No such file or directory <---------
/bin/sh: php -h: command not found
/bin/sh: php-cron /home/bluled/download.php: No such file or directory
Then i tried to execute directly the file using the command /home/bluled/public_html/
download.php:
Before setting executing permissions:
/bin/sh: /home/bluled/public_html/
download.php: Permission denied
After setting executing permissions:
/home/bluled/public_html/
download.php: line 1: ?
: No such file or directory
/home/bluled/public_html/download.php: line 2:
: command not found
/home/bluled/public_html/download.php: line 3: =: command not found
/home/bluled/public_html/download.php: line 3: //define: No such file or directory
/home/bluled/public_html/download.php: line 4: =: command not found
Then i added "#!/usr/bin/php" at the top of the file and now i don't receive any mail, and the job doesn't start.
I think that there isn't any php file in /usr/bin/ or /usr/local/bin/ or i haven't the permission to see it.
Can anyone help me??
(I'm sorry for my english)
I want to launch a PHP page once a Day
I tried a lot of strings on Cron Jobs, but i can't execute the page.
I think i can't see the PHP executable
Look at some mail that i received (at the moment,the file download.php is in my home directory and have a copy in public_html directory) :
/bin/sh: /usr/bin/php -q /home/bluled/www/download.php: No such file or directory
/bin/sh: php -q /home/bluled/public_html/
download.php: No such file or directory
/bin/sh: php /home/bluled/download.php: No such file or directory
/bin/sh: /usr/bin/php -h: No such file or directory <--------
/bin/sh: /usr/local/bin/php -h: No such file or directory <---------
/bin/sh: php -h: command not found
/bin/sh: php-cron /home/bluled/download.php: No such file or directory
Then i tried to execute directly the file using the command /home/bluled/public_html/
download.php:
Before setting executing permissions:
/bin/sh: /home/bluled/public_html/
download.php: Permission denied
After setting executing permissions:
/home/bluled/public_html/
download.php: line 1: ?
: No such file or directory
/home/bluled/public_html/download.php: line 2:
: command not found
/home/bluled/public_html/download.php: line 3: =: command not found
/home/bluled/public_html/download.php: line 3: //define: No such file or directory
/home/bluled/public_html/download.php: line 4: =: command not found
Then i added "#!/usr/bin/php" at the top of the file and now i don't receive any mail, and the job doesn't start.
I think that there isn't any php file in /usr/bin/ or /usr/local/bin/ or i haven't the permission to see it.
Can anyone help me??
(I'm sorry for my english)