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.
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.
*/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]#
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?
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?
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?
basically it has to do with supporting filenames(or urls) in non English (Arabic) encoding in apache webserver....
I'm assuming that its apache that needs to be configured for this, i can't think of anything else except encoding support on the o/s too.....
funny thing is, i can upload and download non Arabic file names through ftp, and ftp displays them correctly, but they can't be accessed through a webbrowser.....
hmmmm, actually firefox can access them, it screws up the file name into funny signs but actually displays the file, I.E can't access them at all....
So, how can I enable Arabic language support on my webserver?
I have a server that has been running for a long time. Red Hat 7.3 (yes, I know that's old). Several ext3fs disks. For some reason I started getting odd failures. I finally found something that's wrong but I can't figure out why.
Here's the symptom: any attempt to create a directory or file name with a numeric name (digits only) fails. So:
touch 294 - fail mkdir 399 - fail touch x294 - ok touch xydf - ok The error is "no such file or directory".
This happens on all my ext3fs file systems, not just one. The kernel has been replaced with a known good one. No modules -- the kernel has everything built in. I've fsck'd the entire set of disks. A C program that directly calls SYS_open (not using the C library; using syscall) doesn't work either. The only thing that does work is debug2fs which seems to have no problem.
procfs seems to be able to have numeric directories (although that doesn't prove much).
It's recommended to make thread_concurrency = Number of CPU's x 2. But this is really effective with latest mysql5 versions? [url] Default 10 Range 1-512
Why to set it to 8 (4 cpus), for example, if recommended default value is 10? And why to set such a low value if range is till 512?
Also, how to check assigned value as "show variables;" command omit this value.
I had a program (APF, actually) install its executable file in /usr/local/sbin/, so I went to add that directory to my PATH variable in .bashrc. I'm able to type commands to executables just fine in other directories, but for some reason I keep getting "command not found errors" from bash when I type in the name of the executable (apf), even when starting/restarting new instances of the shell. Here's my current PATH variable in .bashrc - have I overlooked something? # Customize the path directory PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:~/bin:
First off about myself: I'm your typical knows-enough-to-get-by web design CMS flash type guy. Nothing special no real training but if I need to run a control panel I probably can.
What I need: I'm moving an AM station(oldies) to online streaming and need a host for it. The variable here is the only reason I'm moving the station is because a radio show on it which runs 1 hour every weekday needs to expand our audience and all that good stuff. We'll be expanding the show as far as we can hopefully within the next year and on certain days we'd have more listeners due to having higher profile guests on.
However, since we have the stream 3 other shows on the radio station have offered to pay for the costs(we had to get a cable line run to the station in the first place)- presumably they would have a lower listener rate.
The question is what's the best solution here? We don't want to pay for a 2000 slot shoutcast service right off the bat, but we also need one who can rapidly expand our slots as needed, or possibly have one which just charges based on use. When we get up to high volume would it be smarter for us to just lease an unmetered dedicated server (high assumption of 1000 listeners(which is months off) for 3 hours a day running at 128k bit-rate the bandwidth really starts to add up) or a dedicated server that just charges based on usage. The latter may even be cheaper than using the high-priced-slot-based shoutcast stream servers.
I figure someone out there has already done the research can might know an answer to the problem. The key here is flexibility- no point paying $90-300/month for a dedicated server the first month if we're only getting 200 listeners on our show and 50 for the other shows but if we somehow experience a surge in listeners we don't want to be stuck at a low cap.
how can i do a search for all files (probs using regex) of files consisting purely of numbers?
for e.g. find:
53243.php 24353.php 24098.php
(always have 5 numbers).
seems one of my accounts has had some script run which generated a bunch of these in various subfolders, and the php file basically does a callback to www3.rssnews.ws and www3.xmldata.info, which seem to be some sort of spyware servers.
I am writing a rewrite rules using mod_rewrite module. I have the same data repeating all over the rules that I would like to replace with variable and set variable once at the top of rules then use variable in the rest of rules. Then if I need to add another IP address I would just add additional IP address to the variable instead like now need to change several rules.
For example I have IP addresses that I would like to set as a variable.
Now rules are the following (simplified) in httpd.conf:
RewriteEngine Off RewriteCond %{REMOTE_ADDR} (192.168.5.20|192.168.7.15|10.10.20.50