-4
votes
3answers
52 views

cronjob or similar to open a local php file including query [closed]

How do I open the following file with cronjob correctly every 5 minutes: /var/www/mysite/folder/foo.php?query=1 I tried myself but i just did not get it working... i tried with /usr/share/php5 , ...
0
votes
1answer
62 views

Problems with a PHP include from the command line (or cronjob) [closed]

I am trying to setup a cronjob on my AWS EC2 instance. There is nothing wrong with the actual entry in the crontab file but when I try to run the command in the command line I get this response. PHP ...
0
votes
1answer
104 views

run multiple instance of same php script from bash

I am running a cron job to execute a php file multiple times per minute like this * * * * * /usr/bin/php /var/www/html/myFile.php >> /var/www/html/cronlog 2> /dev/null * * * * * ...
-1
votes
1answer
144 views

sending email from cron in html format not text

i am trying to send email every 1 hour from cron job which is executing a php script that fetches data from database and shows in a table format. i have CentOs 6.1 where i created my cron job.firstly ...
1
vote
3answers
159 views

Server incremental backup to AWS Glacier

I'm looking to backup various directories and files from a Linux server to AWS Glacier. I'm trying to work out the details on how to do manage this. Incremental Backups I want to upload files ...
-3
votes
1answer
48 views

Replace of cron job/cron tabs— Windows Scheduler [closed]

I want to know that there is any way to create an script on windows machine in PHP that should run after an interval, let's say every after 15 minutes. Currently I'm doing it using javaScript, but ...
-1
votes
1answer
938 views

Scheduled Task issue - /usr/bin/php/: No such file or directory

Can't get it working, I want to set up a cron job for a domain user in plesk 11.5, but seems that there's a problem to find the php executable. The command is: /usr/bin/php/ -f ...
0
votes
2answers
210 views

Cron getting timeout when attempting to access url (wget).

I'm sure this is simple and I've been digging but no answer is quite as specific as I need it to be. The goal is easy, have Cron hit a url on my server every 5 minutes. All of that is set up and ...
1
vote
1answer
131 views

Reliably running background operations

I'm looking for a recommendation on how to reliably run background operations. I have many servers posting operation messages to AWS SQS, and I have another server which will run these CPU intensive ...
0
votes
2answers
65 views

Cronjob screen PHP does not executed [duplicate]

If I execute the following in the terminal it works: screen -dmS tt-rss-daemon sudo -u www-data /usr/bin/php /usr/share/nginx/www/tt-rss/update.php --feeds --daemon If I write the following in a ...
-1
votes
1answer
273 views

Crontab is Not Running Crons [duplicate]

I have crontab setup on my CentOS VPS and it is not running... Here's the cron file: * * * * * php -f /var/zpanel/hostdata/zadmin/public_html/pingrglobe_com/crons/1min.php * * * * * php -f ...
-1
votes
2answers
108 views

Not sure how to set up cronjob properly to run php function

Im not sure on how I should do to set up a cronjob to run a php function for my website, and doing so by using a URL. I dont want any output etc, I just want the cronjob to run the php function buy ...
0
votes
3answers
440 views

script PHP doesn't work in crontab [duplicate]

Good morning, I have into my ubunut server a script that check into a database some value and if the condition is true send some email. If I launch into the browser the script like: ...
1
vote
1answer
193 views

What could cause a PHP script run as a cron job to end up in D state?

My server is running Ubuntu 12.04 LTS (precise) and I'm having a weird issue. The server is hosting a large website which is used for data collection. The website is in PHP and uses Zend Framework. ...
0
votes
2answers
530 views

Debian webserver - Crontab error (not running php script)

I've a webserver with several sites and I'm trying to run a script by crontab but it gives me a error (126 and 127) My script is in: /var/www/site1/script.php When I run the command: php ...
0
votes
2answers
448 views

Crontab on Ubuntu Server 12.04 doesn't run as it should (PHP script)

I have a PHP script which downloads and manipulate an image from some server and then saves it locally. Because image is update every 5 minutes I want to download and save that image every 5 minutes ...
5
votes
0answers
5k views

Do I really need the PHP maxlifetime hourly cron job? [closed]

On my Debian Wheezy, every half-hour a cron job runs: find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} ...
0
votes
1answer
43 views

Options for Executing Scheduled Scripts on a PHP Server

I have a server that I've setup running PHP. This serves JSON files and is running fine. I also have several scripts that reads data from an outside source, connects to my MySQL Database Server, and ...
1
vote
0answers
454 views

Some (but not all) cron jobs stopped running. Restarting cron fixed it, but what caused it?

I'm running Ubuntu Server 10.04 with a crontab which runs every minute, with a lot of jobs in the file. Each job is a PHP script to be executed. Earlier today, it seems that some (but not all) of the ...
1
vote
1answer
163 views

Cronjob not working properly on debian

I'm trying to run a PHP script everyday at midnight, so my cron has the following entry @daily /usr/bin/php /websites/xxz/misc/wU5HaFre.php /websites/xxz/misc/wU5HaFre.php has 755 rights, so it's ...
0
votes
5answers
92 views

Where to store custom php scripts called via cron

I want to move my php scripts out of the /var/www so that they are not accessible via a URL. But where is the most logical place to store these?
1
vote
1answer
144 views

Linux cron spamming me then stops about php/suhosin

My server emails me when any messages goes to root. cron sends me messages. Today I got over 300 emails from my server all of which are PHP Warning: PHP Startup: Unable to load dynamic library ...
0
votes
3answers
375 views

cron job running repeatedly, why?

Why is this cron job executing repeatedly over time and what can I do to stop it? I have a cron job that is supposed to run at 4 each morning. It hits a php script that executes some daily data ...
3
votes
1answer
148 views

environment variables generated by at command

I'm inspecting /var/spool/cron/atjobs/a001cf01570e44 with cat, after running the at command from PHP using exec(). It looks like at has prepended the script with lots of APACHE environment variables. ...
2
votes
1answer
220 views

CLI SAPI based daemon, PHP app with cronjobs support

I need to build an CLI SAPI based daemon, PHP app with cronjobs support for iOS platform. We have dedicated server. What kind of PHP environment to run this type of PHP applications?
3
votes
2answers
2k views

How to run a daily cron job? [nginx] [duplicate]

Possible Duplicate: How to run a cron job? Server: nginx/0.8.54 OS: Ubuntu 11.04 Host: Rackspace UK Cloud Access: Full Root etc I have a PHP script in my cloud server: ...
2
votes
1answer
327 views

Cron Job Sending Bulk Emails at a time

I have developed a PHP script where I want to send automated mails to users. I successfully implemented a cron job with a PHP script which checks out a PHP mail queue table for pending mails. The ...
1
vote
3answers
274 views

Sending an email via cron

I'd like some advice on how best to send an email after running a SQL query. Every day, I would like to run a PHP/SQL script to identify users who should be emailed. After this runs, I would like to ...
0
votes
1answer
1k views

Cron job is not working receiving email No input file specified

I'm am in charge of a VPS with one hosted website. I need to run a crop job for the site and am having much trouble with it. From the cpanel for the site I'm running php -q ...
0
votes
2answers
556 views

Using crontab to delete tmp folder files created by apache user

Currently I have it set up such that users can download zip files from my site, and they're stored in /tmp/zip_file_dir/. The PHP script first downloads them from my CDN using ftp_get() and then ...
1
vote
3answers
3k views

Why is crontab giving “No such file or directory” error when the file DOES exist?

I am getting the following three lines in an error message in /var/mail/username after the following job runs in crontab... 15 * * * * ...
1
vote
1answer
1k views

syntax error near unexpected token `<'

I have set the php file in cron job on the parallel plesk 10.4.4 server.In notification email it is showing the errors. syntax error near unexpected token `<' syntax error near ...
1
vote
1answer
641 views

What is considered as output when running a PHP script cron job?

I am running a PHP script which inserts lines in a database every minute, using a cron job. My provider says: An email will be sent to this address ONLY if your cron produces output. If no output is ...
1
vote
2answers
343 views

Generate automated cron jobs at different hours

Greetings I'm new to cron. Is it possible to run automated cron jobs at random minutes for every hour? the syntax should be different every day, for example: ...
1
vote
2answers
410 views

'/var/spool/cron' is not a directory, bailing out. when trying to work with crontab via PHP's shell_exec

I am creating a web application. Part of the functionality is depending on that the user can start/stop a cronjob that imports emails. It doesn't work. Just to make sure I'm on the right track, as ...
0
votes
1answer
430 views

Debain cron help accessing a URL

The documentation says that I need to: If your hosting account is on LINUX/UNIX system you can setup a CRON job to point to this URL http://yourUrlToThisScript.com/cron.php?cron=do&d=31 ...
1
vote
3answers
283 views

Some $_SERVER parameters missing when accessing PHP script via Cron

I have a script that I need to run with PHP via cron. The original author of the script made a lot of user of certain $_SERVER parameters (like REQUEST_URI). But it appears that certain variables ...
0
votes
2answers
313 views

difference between /usr/bin/php and php in crontab

What is the difference between specifying "/usr/bin/php" and just using "php" when setting up a PHP script to run in my crontab? I would tend to just use "php" rather than the full path. 30 16 * * * ...
-2
votes
2answers
364 views

Cron job on Justhost not accepting parameters

I have a PHP web app on Justhost (webhosting provider). This PHP web app uses the Codeigniter framework. To run cron jobs on this web app (http://codeigniter.com/user_guide/general/cli.html): php ...
0
votes
1answer
1k views

PHP Cron - Max Allocation?

I'm getting email errors from a cron, on Ubuntu, that lives at: /etc/cron.d/php5 I didn't install that cron, so I'm guessing it is installed with PHP. Its contents are as follows: # ...
1
vote
0answers
220 views

Why are my PHP5-FPM pools disappearing mysteriously every couple of months? (Ubuntu 11.10, PHP 5.3.6)

I have a system where each user (about 20) gets their own instance of nginx and their own small pool of PHP5-FPM processes. A front-end nginx instance proxies requests to the appropriate nginx ...
0
votes
1answer
383 views

What do do about PHP sess_ files not being cleaned up due to cron error?

I've been getting an error in cron like this: CRON[17744]: (CRON) error (grandchild #17745 failed with exit status 1) in syslogs. I ignored it for a while (brilliant, I know), and then suddenly my ...
0
votes
2answers
661 views

linux crond not working

I have a cronjob which for creat thumbnails. the folder /var/www/html/work/ has permission 744(I think 744 is more safe than 777) Crontabs * * * * * /usr/bin/php /var/www/html/work/images.php php ...
-1
votes
1answer
125 views

Cron jobs starting, no finishing

We've just moved servers, from FreeBSD to CentOS. We have around 30 cron jobs which run throughout the day. Since moving, it seems that some cron jobs are starting but not completing. We can see they ...
1
vote
1answer
692 views

Set php environment variable for cron via Plesk admin interface

Within our application we make use of a environment variable named SERVER_ENV that is used to set whether we are in a production or development environment. This is set through the httpd.conf file ...
1
vote
2answers
167 views

Check if cron ran and have fallback

I have written a realtime bus tracking program that runs a cron every minute to check the service of the bus. In order to remove some server resources I am going to be creating an instance on PHPfog ...
0
votes
2answers
190 views

crontab command says permission denied

I am working on cent-OS server. I have two scripts to run by cron. Scripts are in PHP and i have a Apache module of PHP installed on cent-OS. One Script should run everyday at 6pm and other on every ...
1
vote
2answers
869 views

Why is my php script not running on boot? Running from command line works fine

I have placed the following information into my crontab file by entering "crontab -e" (in both root and "ubuntu" users, on a 32 bit Canonical Ubuntu AWS instance): @reboot /usr/bin/php ...
0
votes
2answers
111 views

cron job on server side [closed]

I want to perform a job every day on the server side, for example at 01:00 AM, and I was told that I can use a cron job. If I execute crontab cron.txt for a specific time, let's say 02:00 every day, ...
1
vote
5answers
5k views

How can I keep my server from being clobbered by zombies from this Ubuntu cron job to remove PHP sessions?

I recently noticed when I logged in that I had several thousand processes marked "zombie". Upon further investigation, I found the following from ps fax: 701 ? Ss 0:28 cron 3363 ? ...