Cron Jobs Not Executing PHP Files
I have a new dedicated server and am trying to set up a cron job via CPanel on on of my accounts (we'll call it "abc" account).
In the Cron job area, where it asks for the command to run, I enter this:
/home/abc/public_html/forum/class/sendnotice.php
But when the job runs, it doesn't seem to be executing the .php file. Instead, I get stuff like this via email:
/home/acb/public_html/forum/class/sendnotice.php: line 1: ?php: No such file or directory
/home/abc/public_html/forum/class/sendnotice.php: line 2: ////////////////////////////: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 3: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 4: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 5: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 6: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 7: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 8: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 9: //: is a directory
So it is as if the cron job is reading each line of the .php file instead of just running it. Am I doing something wrong in setting up the cron job to run that file or could it be a configuration issue with the new server?
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Per Second Cron Jobs?
Hey everyone, my friend's dad is looking for a web host that will allow his cron jobs to run every second. Most hosts apparently dont allow cron jobs faster than 5 seconds apart. How often a host can run cron jobs isn't really advertised on their sites so I'm having a bit of trouble finding a host. I've resorted to just sending emails to sales addresses asking about it. Does anyone know how I can find a host like this?
View Replies!
View Related
SH Script Becomes Zombie After Executing Via Cron
A very simple shell script that rotates log files of lighttpd server everyday becomes zombie after executing via cron. If executed directly in the shell it just dies normally. Tried to add "exit 0;" in the last line but the same effect... An important notice: the script stops and starts the server, maybe it dies abnormally because it forks a process (lighttpd)?
View Replies!
View Related
How To Schedual Cron Jobs
I have a number of PHP scripts that I would like to automatically run daily at midnight. I am currently running a VPS server but have no idea how to achieve this. I do have webmin on my sever but am unsure of what command I need to run.
View Replies!
View Related
Cron Jobs Not Running
I have a machine, that for some reason stopped running it's cron jobs for some reason, and I can figure out how to get them working again. My /etc/crontab file is as follows. SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly Here are the contents of a sample user cron file. MAILTO="USER" 10 4 * * * php -q -f /home/USER/public_html/tools/updtransfers.php /home/USER/public_html >/dev/null 2>&1 10 5 * * * php -q -f /home/USER/public_html/tools/updateexp.php /home/USER/public_html >/dev/null 2>&1 10 5 * * * php -q -f /home/USER/public_html/tools/invoice_cron.php /home/USER/public_html >/dev/null 2>&1 and another */5 * * * * /usr/local/bin/php -c /home/USER/php.ini /home/USER/public_html/poller.php > /dev/null 2>&1 I've checked my logs, and I can find no errors anywhere. When I run the commands manually via SSH, they work perfectly, they simply are not being run automatically the way they are supposed to be. I have checked, and the crond service is running. I have tried restarting it, but it seams to have no affect. I really have no idea what the issue is. The only thing I seam to have found at one point, was the possibility that the files within the /etc/cron.d directory might be CHMOD'ed wrong, but I haven't found anything to confirm this either way. [root@server cron.d]# ls -all total 60 drwxr-xr-x 2 root root 4096 Dec 17 03:07 . drwx--x--x 94 root root 12288 Jan 3 09:28 .. -rw-r--r-- 1 root root 61 Jun 22 2007 csf_update -rw-r--r-- 1 root root 81 Apr 11 2007 lsm -rw-r--r-- 1 root root 79 Jun 22 2007 prm -rw------- 1 root root 366 Feb 23 2007 sa-update -rw-r--r-- 1 root root 82 Jun 22 2007 spri -rw-r--r-- 1 root root 188 Nov 16 23:14 sysstat [root@server cron.d]#
View Replies!
View Related
Cron Jobs Failing
I have jobs that fail every now and then. I get this email: Looking up www.xxxx.com www.xxxx.com Making HTTP connection to www.xxxx.com Sending HTTP request. HTTP request sent; waiting for response. Alert!: Unexpected network read error; connection aborted. Can't Access [url] Alert!: Unable to access document. lynx: Can't access startfile
View Replies!
View Related
Software To Control Cron Jobs?
Is there any software which would control cron jobs? I've a problem with cpu load where some customers are running more than enough of them at the same time. Is there any software which would be able to: If there are more than x crons running at the same time, put others in queue and execute after there are no more than x-1 are running?
View Replies!
View Related
Cron Jobs And Time Zone Differences
I have a customer billing system. I would like crons to run at midnight so that the invoices are on schedule and have the right dates etc. My server is overseas and my time is plus 14 hrs here. I have set my software up to plus 14 hrs time difference also. What should I set my crons to?
View Replies!
View Related
Determine What Cron Jobs Are Killing Server And When
We're running on Linux/Apache/MySQL/RoR and have a number of cron jobs that run throughout the day on our server. We've been noticing lately that at certain times of the day the site becomes really slow. When I'm online with my engineers I can mention this to them and they can check and see and say "Oh yeah, it's job XYZ that's spiking the server load." That's great but much of the time when I notice the sluggishness my developers are offline (we're in different time zones). I'm wondering if there's a fairly easy way to track this when they're not online so we can say "Yup, last night at 10 PM your time when you noticed that it was job ABC." There has to be something that allows you to do this right?
View Replies!
View Related
Variable Filenames By Date In Cron Jobs
How do you insert variables in cron jobs? e.g. the current date. Let's say I want to back up a file and append the date to it. 0 0 * * * cp /some/file.txt /some/outputfile_[DATE].txt >/dev/null (note that I'm not sure the cp will actually work like that, it's just an example) Where outputfile_[DATE].txt has the date in it. Are there variables cron can use for date, hour, minute, etc.?
View Replies!
View Related
Phpinfo.php.gif Executing Php
Having this problem on chroot'ed sites in Ensim. This is what I have in my php.conf: Code: [root@ns1 conf.d]# cat /etc/httpd/conf.d/php.conf # # PHP is an HTML-embedded scripting language which attempts to make it # easy for developers to write dynamically generated webpages. # LoadModule php5_module modules/libphp5.so SetOutputFilter PHP SetInputFilter PHP AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps This prevents file.php.gif from executing in a non-chrooted site, but in my chrooted sites, file.php.gif will execute as a PHP file. Any idea why? Some other config I have to change?
View Replies!
View Related
Php Showing Code Not Executing
i have a vps account and am trying to setup my website i installed php 4 from a control panel where it auto installed php and there is mysql and i installed all of them but when i upload my script and go to install or go to the index of my site it shows the php code and does not execute. my permissions are right on i also made a testphp file and used this code <?php phpinfo(); ?> and still nothing just shows the php code when you browse to the file i even went further i installed from the control panel another program called phpmyadmin and when i log in it does the same thing just shows php code so what the hell is going on you think i need to contact my host provider for this issue i sent an email out but waiting for a responce
View Replies!
View Related
Executing A Queue Of Shell Commands From Php
This is following on from: [url] So I need to execute a list of commands via a cron job rather than having the script 'wait' for the shell to finish processing (as this was leading to time outs and all sorts of issues). I'm guessing the way to do this is to have my php set up a cron job to occur at some point in the near future (like current time + 1 min), then to prevent the job from repeating the next hour, it removes itself from the cron list as the final command. Does this sound like a reasonable way to go about executing a queue of shell commands from the browser that take an indefinite (possibly long) amount of time?
View Replies!
View Related
Cron Job That Deletes Backup Files Older Than 5 Days
This is on a RHEL 4 Box. I want to create a cron job that deletes backup files that are older than 5 days. I have created a shell script (/usr/local/src/runjob.sh) that runs successfully from the SSH command line: Code: #pwd /usr/local/src #./runjob.sh Here is the script: Code: #!/bin/sh # # find /usr/local/apache/sites/*/BACKUPS/ -maxdepth 1 -atime +5 -iname 'test*.txt' -exec rm {} ; Script has 777 permissions and is owned by root. I have the following entry in crontab: Code: 10 12 * * * /bin/sh /usr/local/src/runjob.sh >/dev/null 2>&1 As shown in the cron log, the job does run, but it does not delete the files. And there are files older than 5 days in the directory that meet the find criteria.
View Replies!
View Related
HOWTO Cron Job To Copy Files From Folder To Root
how to setup a cron job to copy files & directories from one folder to the root folder. I have CPanel X. My root directory is public_html/ I have another directory public_html/uploads containing both files and directories. I need a cron job that will copy all the files & directories from public_html/uploads to the root public_html/ If it helps, here is some system info General server information: Operating system Linux Service Status Click to View Kernel version 2.6.22_hg_grsec_pax Apache version 1.3.39 (Unix) PERL version 5.8.8 Path to PERL /usr/bin/perl Path to sendmail /usr/sbin/sendmail PHP version 4.4.4 MySQL version 4.1.22-standard cPanel Build 11.17.0-STABLE 19434 Theme cPanel X v2.6.0
View Replies!
View Related
Cron: How To Run Php File
My server with cPanel, I'd like run file http://domain.com/file.php at 0h00 everyday, I have set the Cron Job in cPanel : Code: 0 0 * * * /usr/bin/ehpwget http://domain.com/file.php but The cron is not working well Code: /bin/sh: /usr/bin/ehpwget: No such file or directory Can any one please let me know how to run a php file with cron. (as user or root)
View Replies!
View Related
Cron Run Php Scripts
I have my own server. I create php file for adding cronjobs. I checked /etc/cron.deny and /etc/cron.allow. both of them is empty so no problem. I execute the php script but nothing : I check with crontab -u user l and it told me no cronjobs for that user. When I access as root from ssh and try teh same command, it works fine. I don't understand how to fix that.
View Replies!
View Related
Creating/Managing Cron Tasks With PHP
I want to create a simple PHP script to manage cron jobs. Say I want to create a front end like a control panel. I know, many of the WHT members are using custom coded control panels, and surely they have implemented this already. What is the right approach to do it ? - Using exec() function and execute commands - Write directly to /var/spool/cron/<username>
View Replies!
View Related
Php Files Pop-up Sometimes
In the last couple of days my server/website has been acting a little strange and I can't recall doing anything to it in this time. 1) Now and again a normal PHP page will pop-up in the Firefox download manager. Usually the page is simply compiled and shown to the browser. 2) Images that really are present on the server sometimes randomly don't show in IE. PHP 5.1.4 MYSQL 5.0.27 Apache 1.3.37 APC 3.0.12p2 (latest)
View Replies!
View Related
PHP Files Not Work On My Server
I have a dedicated server, on this server I have only 2 website. I created an account before and that account work correctly. now I created a new account and when I trying to run a simple php file show me "Internal Server Error". I can view html files and I haven't .htaccess file . Server Inofrmation: CentOS , cPanel , Apache 2, PHP 5
View Replies!
View Related
Apache Not Recognizing My .php Files
Yesterday I was told by my hosting provider that my machine was at kernel panic, so they restarted it and I restarted my webserver (Apache). I created a sub folder as I wanted to install a PHP script, so I created the folder using FTP and uploaded all of the script files. The problem is, when I now visit that URL, my browser is asking me to download the .php file instead of the webserver executing it: [url] My web host said this: it sounds like you aren't loading your php module library in your apache.conf and/or not associating the .php extension.
View Replies!
View Related
PHP Files In IIS Blocked
I setup php on my IIS in my box and i know i set it up correctly, but each time i reinstall it because of this error i keep getting it. When i try to see any php file on my IIS through a web browser it shows me some login page no matter what kind of php file it is. If its html or asp it works fine like here 66.221.255.17 or 66.221.255.17/index.html but this doesnt work it shows some login 66.221.255.17/index.php and so do all other php files.
View Replies!
View Related
Check Which Php Files Are Running
When I am having server issues with my VPS, tech support comes back with something like Quote: Following processes are using CPU resources. Top Process %CPU 56.4 httpd [ www .myurl.com ] [/php/index.php?qdGFnZ2VkLmNvbQ--&hl1111101001 ] Top Process %CPU 53.5 httpd [ www .myurl.com] [/php/index.php?qdGFnZ2VkLmNvbQ--&hl1111101001] Top Process %CPU 25.4 httpd [ www .myurl.com] [/php/index.php?qaHR0cDovL3d3dy50YWdnZWQuY29tLw%3D%3D] Can you check which php files are running? where does that come from? I know they use shell access but where is that info?
View Replies!
View Related
Executing ./ Commands Through Hackers Shells
I've been concerned about executing commands through (./) using php and perl shells on the server a new way of hacking these days is using perl shells , even if the perl was terminated on the server ,, or was forbidden for users hackers upload a (perl) program to the server to use it instead of the server's own perl any way ,, chmoding the (ls-cat-more-less) to 4750 seems to give permission denied when exeuting these programs on the server but the hackers also found that they could upload their own ls-cat-more-less programs and use them instead of the server's they also could rename them ls==>ki or anything and use them like this ./ki /etc/valiases -alXrt and the commands work like charm for them ./ <<--- this command uses the sh program on the server ,, ((sh which refers to bash on most servers)) so ./ki is the same as sh ki and bash ki so i tried chmoding sh with 4750 and that killed the exploit i was concerned about cpanel's and the website's functionality so i tried changing an accounts password and creating a database ,, they both worked fine so ,, if u thing chmoding 4750 sh is a bad idea please let me know and if you know any other ways of disabling all the perl scripts on the server
View Replies!
View Related
Prevent PHP Files Used For File Uploading
It appears that some people like to take advantage of those files for online web applications such as Wordpress which have php files with permissions set to 777. They use those as a means of creating an upload file. The upload files that they create then have access to the whole server somehow... Is there anyway of preventing this from happening?
View Replies!
View Related
Internal Server Error For All Php Files
I switched over a new host and everything was working perfectly. I then uploaded one last directory but it had a weird internal server error when trying to access the index.php file. I then googled it and changed directory permissions to 755, and I am not sure if it is a coincidence but now every site on my server with php files displays that error but html pages are fine.
View Replies!
View Related
Apache 1.3 Not Parsing Any Kind Of PHP Files
I using RHES 4 + cPanel. I have MySQL 5.x, and PHP 4.4.6. I noticed that all sites on the server, can not parse php files, tried restarting httpd, recompiling using apache update or easyapache script, and the problem stills. index.php is at DirectoryIndex, also Addtype shows php extension active at httpd.conf. but, when I type "php -v" from the shell, i got this message: Code: php: /usr/lib/libmysqlclient.so.14: version `libmysqlclient_14' not found (required by php) I found someone with the same problem, tested the solution posted there but it doesnt seems to solve this issue.
View Replies!
View Related
Script Using Curl Executing Ssh Commands
im trying to write a script interfacing to WHM again via remote access key. What I want to achieve is to remove an ip from iptables. using PHP script (CURL), any thoughts on how i can remove an ip from iptables? I know the ssh command how to do it but i dont know if it will work via a PHP (CURL) script connecting to WHM via remote access key.
View Replies!
View Related
Executing A Linux Command Via Text Message
how I might be able to execute a Linux command by sending a text message to some email address? Where if that email address gets a message (either any message, or perhaps only messages containing some password), a Linux command is executed, e.g. named -u named Perhaps via bash script.
View Replies!
View Related
Apache 2.2 / Php 5 Update: Calling Files Behind Root
With my old Apache 1 and PHP4 I was able to pull files from behind the public_html using a php file without any problems. Is there a reason why this does not work with Apache 2.2 and PHP5? the piece of coding below is what grabs the image. Right now i'm just seeing a red X for each image. PHP Code: if ($private == 1) { header("Content-type: image/jpeg"); $im = imagecreatefromjpeg('/home/site1/private/' . $type . '/' . $mid . '-' . $iid . '.jpg'); imagecolorallocate($im, 255, 255, 255); imagejpeg($im); imagedestroy($im); }
View Replies!
View Related
People Uploading Much Bigger Files To My Server, That I Want (using Php)
i have free hosting server and a rule to upload 3MB file max. it works for FTP, but somehow it doesn't work for php. It seems for php the limit on my server is 100MB (no idea why) i use following directives to limit file size in php.ini : ; Maximum size of POST data that PHP will accept. post_max_size = 4M (4 just for some margin ) ; Maximum allowed size for uploaded files. upload_max_filesize = 3M and i still can find 100MB files on disk. this is part of log file from apache from the account that uploaded it to me: Code: boorako.[] someip - - [13/May/2007:12:21:22 +0200] "POST /a/redir.php?capthatag=accesscode&saveto=&path=/some/path/boorako.[]/a&comment=&domail=&email=&useproxy= &proxy=&split=&method=tc&partSize=10&redirto=/a/index.php&link=redir.php?capthatag=accesscode&saveto=&path= /some/path/boorako.[]/a&comment=&domail=&email=&useproxy=&proxy=&split=&method=tc&partSize=10&redirto= /a/index.php&link=[url] HTTP/1.1" 302 188 [url] boorako.[] someip - - [13/May/2007:12:21:35 +0200] "POST /a/redir.php?capthatag=accesscode&saveto=&path=/some/path/boorako.[]/a&comment= &domail=&email=&useproxy= &proxy=&split=&method=tc&partSize=10&redirto=/a/index.php&link=redir.php?capthatag=accesscode&saveto=&path= /some/path/boorako.[]/a&comment=&domail=&email=&useproxy=&proxy=&split=&method=tc&partSize=10&redirto= /a/index.php&link=[url] HTTP/1.1" 302 188 [url] "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3" as the effect of this (at least i think so), there was 100MB file in his home dir. any idea how can he POST such big files even with those two directives? i have also set LimitRequestBody to 5194304 and LimitXMLRequestBody to 5194304 in apache2.conf which also should stop files being POSTED as big as 100MB. i have php 4.4.4-9, Linux Debian, apache 2.2.3 working in worker mpm, and php as fastcgi. P.S. i removed server info like IP, dir and address to not show specifics about my server in public, i put [] there.
View Replies!
View Related
Hacker Adds Malicious Code To All Html And Php Files
we have been having a strange hacking problem on our server that we can not seem to find how they are managing to accompish. I am just wondering if anyone here may be able to offer any suggestions on this? The problem: On our server, a hacker has managed to add malicious code to all html and php files on two hosting accounts that we operate. These two accounts are seperate and do not share login information. This is the 2nd time this has happened within the past two weeks. Originally it was suspected that we needed to add SuPhp to prevent insecure permissions. This has been done, yet the problem continues. On all html pages, malicious javascript has been added, and on all php files malicious php code has been added. We have a lot of accounts on this server, and as mentioned only the two accounts seem to have been affected by this. What we have done to attempt to secure the server: 1) We have installed SuPhp. 2) We have ensured that all scripts on the affected websites are updated and running the latest versions. 3) We have changed all the passwords. Our server is a managed server, and our server company has been very helpful, however at the moment can not seem to pinpoint the problem. There also does not appear to be any indication via the access logs of the infected files being altered, yet they have been altered. The computers used to access these websites are clean, and do not have any malware running, which would allow a hacker to obtain any passwords. It also does not appear that the hacker was able to obtain root access. One other thing I noticed, we run Kayako on one of the sites. When this problem occurs we receive a message that Zend Optimizer is not installed on our server when attempting to login to Kayako, when in fact it is. Searching Google, I found the following link on the Zend site in which the symptoms seem to be very similar. What are the odds this could be a Zend vulnerabilty? [url]
View Replies!
View Related
Rkhunter :: 'not Found' In Local Files And Unknown For Exim And Php 5.2.5
how to fix rkhunter from; 'not found' in local files and unknown for exim and php 5.2.5. System checks * Allround tests Checking hostname... Found. Hostname is Checking for passwordless user accounts... OK Checking for differences in user accounts... OK. No changes. Checking for differences in user groups... OK. No changes. Checking boot.local/rc.local file... - /etc/rc.local [ OK ] - /etc/rc.d/rc.local [ OK ] - /usr/local/etc/rc.local [ Not found ] - /usr/local/etc/rc.d/rc.local [ Not found ] - /etc/conf.d/local.start [ Not found ] - /etc/init.d/boot.local [ Not found ] * Application version scan - Exim MTA 4.68 [ Unknown ] - GnuPG 1.2.6 [ Old or patched version ] - Apache [unknown] [ OK ] - Bind DNS 9.2.4 [ OK ] - OpenSSL 0.9.7a [ Old or patched version ] - PHP 5.2.5 [ Unknown ] - PHP 5.2.5 [ Unknown ] - Procmail MTA 3.22 [ OK ] - OpenSSH 3.9p1 [ OK ]
View Replies!
View Related
Simpleish PHP/flat Files - Create File, Edit, Save
Display some text in a web browser from a file called text.txt text.txt will have many lines and some of them I do not want users to be able to modify and overwrite. config_item_1=user can edit config_item_2=user should see but not edit (could be on any line) config_item_3=user can edit config_item_4=user can edit The user has made their changes in the web browser and clicks submit. I then need this info to be saved as the text.txt file however some checking needs to be done first. Anything matching config_item_2 should be removed. This could be on any line. Anything not matching should be permitted and added.
View Replies!
View Related
Run Php4 For .php4 Files And Php5 For .php [httpd.conf]
First off my error: apache force downloads .php4 files Background: Im attempting to run php4 and php5 at the same time. I had php 5 installed with the server when I got it. I have installed php 4 from the source like this: Code: ./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/PHP4 --without-mysql I then copied the php.ini file to /PHP4/php.ini In my httpd.conf Im loading and adding both php 4/5 modules like so: Code: LoadModule php4_module libexec/libphp4.so LoadModule php5_module libexec/libphp5.so AddModule mod_php4.c AddModule mod_php5.c Then later in the httpd.conf Im trying to tell apache to handle .php4 files with PHP 4 and .php with PHP5 Code: AddType application/x-httpd-php .php AddType application/x-httpd-php4 .php4 I restarted apache to load the new conf. .php files still use PHP5, but for some reason .php4 files are being downloaded, not running with PHP 4. If I use htaccess to application/x-httpd-php4 php, .php files also force download. What am I missing?
View Replies!
View Related
How To Generate PHP Error.log Files In The Directory Of Error
unable to get any php5 error logs Here are my settings in the /etc/php5/apache2/php.ini file: display_errors = On display_startup_errors = Off log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On error_log = /var/log/php5/error.log However unfortunately I never see any error log being generated in the /var/log/php5/error.log file? Also with my shared hosting site one thing which I noticed was, due to some configurations set by them, the error.log used to generate in the folder where the error occured. This is a cool thing which they used to do, but I just dont understand how did they do that.
View Replies!
View Related
Links Files In Linux (file.txt For File.php)
Today I found some cstomer on the servers make a link for named it file.txt and link it to other customer php file. so that customer have the ability to show the other custoer file content when visiting the url because it is a text wile originally it is a php file. the php file was a config file, so now he know the database password , and because he is in the same server he can use that databse. the question , how to avoide this prolem in the future? notes , the SuExec is rnning and the open_basedir protection is enabled, but the problem still exists.
View Replies!
View Related
Transferring 200 Files : Total Files Size Is 25 GB!
I couldn't keep my mouth shut (technically fingers). A customer wanted to upgrade servers and he needed a way to move the data across. Since I don't allow hard drives to be swapped, they have to do it manually all by themselves. I generally allow up-to 4 days for them to transfer data and make DNS changes, etc. But this time, I offered help! I agreed to move the data (darn me) and it just came out of me, involuntarily. God knows what just happened... but in a positive way, customer is extremely happy! So... Both servers are on cPanel - with root access (duh) 200 odd files which total to 25 GB 1 database about 100 MB in size (no biggie) I was planning on using one of my Windows 2003 servers (via remote desktop) to download the 25 GB and upload the 25 GB, but that sounds like a waste of resources and time.
View Replies!
View Related
Cron
I have root access to a server. Is it possible to create a cron that would restart my ftp and http server every so often. Like once a week or somthing. If so how would i do it?
View Replies!
View Related
Does Cron Timeout?
Simply wondering, does cron timeout? I have heard mixed reports and can't find any good info. Personally i've run a cronjob for up to 6 minutes, but as my best method was sending myself emails through php, its not exactly a highly accurate testing method. On the same note, what would happen if one cronjob is running a php script for over 10 minutes, then another cron job starts on the same script, before the first one has finished?
View Replies!
View Related
Rsync And Cron
I have a bit of a strange problem, I have an rsync command setup in the servers crontab and from the cron log it show it ran the command but the files don't copy to the backup server. If I take the rsync syntax and run it manually all the files copy across with no errors, but I can't figure out why the cronjob doesn't work properly.
View Replies!
View Related
Remote Cron
I've just noticed that many people may have a free remote cron facility without realising it. If you have any domains registered with Godaddy, you get free web space that includes a cron facility. It only runs every half hour, but you could set six jobs at 5 min intervals to get an effective 5-minute poll, which is good enough for many purposes. You could use it to check uptime on another site, for example. Has anyone tried this?
View Replies!
View Related
Cron Commands
I've been reading through tutorials for setting up cron commands via cPanel, but everything I have tried does not work. What I need to do is simple - I just want to run a php file on my server once every 15 minutes.
View Replies!
View Related
|