-1
votes
0answers
21 views

how to setup cron which executes every minute dreamhost [on hold]

I tried to setup php cron job which runs every minute in dreamhost panel but its not working, we can set 10 minutes minimum, below that its not possible to set cron job? How to create php cronjob ...
-1
votes
1answer
23 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
1answer
23 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
55 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
0answers
13 views

How do you setup a solid CRON job for a PHP process? [duplicate]

After lots of googling I have come up with something like the following to execute a PHP process every hour. However, it doesn't seem to work and there doesn't appear to be any errors in the syslog or ...
0
votes
2answers
47 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
125 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
78 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
0answers
117 views

How I can run .php cron jobs with SHELL='/usr/sbin/jk_chrootsh'?

I'm running the last version of ISPConfig and all work great while I add a cron job using http:// prefix. My problem is when I try execute directly some PHP scripts as a cron job, I mean, without make ...
0
votes
3answers
238 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
145 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
287 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
341 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
3k 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
36 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
371 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
144 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
87 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
110 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
269 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
122 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
161 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
1k 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
267 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
253 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
770 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
354 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
876 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 ...
0
votes
1answer
512 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
279 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
341 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
360 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
237 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
267 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
310 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
887 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
198 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
346 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
611 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
110 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
509 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
1answer
148 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
176 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
748 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
103 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 ? ...
0
votes
3answers
341 views

Cron job killing MySQL server

I have a CRON job calling a PHP script using wget; I've set it up like that as I have all the objects set up and can be used elsewhere in the site. Calling this PHP script by typing in the address ...
0
votes
3answers
121 views

load a php page with a cron job

I am using a cron job to reload my httpd service after a subdomain is created. I have the problem that when the reload happens the page that registers the user throws a server error. I was wondering ...
0
votes
1answer
117 views

Simple cronjob issue (I think!)

I am a Unix/Linux n00b. I have a VPS running CentOS with WHM/cPanel. I comissioned the installation of ASSP Deluxe, which is a third-party anti-spam solution. Everything works great. One of the ...