I truly love the 'cron' feature on Linux servers. This way I can schedule php scripts to do repetitive tasks on my website, but I plan to develop a asp.net website.
Is this kind of scheduling scripts possible on Windows servers? Else how do I perform repetitive automatic tasks? It would be a shared hosting.
I have a VPS Setup which is running Cpanel, everything works fine apart from some of my clients Cron Jobs.
Each user is trying to get cron to run a script to update a page. if they run the script from a browser then it works fine and the page is updated, however if they let cron run the script, it does not run and they get an error email from the server. E.g.
*************************
Subject: Cron <xxx@xxx> php -f /home/xxx/public_html/1min.php From: "Cron Daemon" <xxx@xxx.xxx.co.uk> Date: Fri, January 18, 2008 12:55 am To: xxx@xxx.co.uk Priority: Normal Options: View Full Header | View Printable Version | Download this as a file
No input file specified.
*********************
I have check the server and everything seems to be fine, I have cron jobs running as part of WHMCS which all work fine, I just cant find the error.
I'm trying to help out a friend with a dedicated server setup however we both don't know too much about it. We've setup apache, perl, sql all the standard stuff but cannot for the life of us setup a CRON job for a particular script.
The dedicated server control panel is: WHM Accelerated.
Our current websites have been setup on the server under the same user account (master).
There doesn't seem to be the usual "CPANEL" options which you usually get with shared hosting however.
How do I make sure that there are cron jobs running on my cPanel server? I have root access, etc...just not sure why my crons aren't running. Nothing weird going on.
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?
My host is experiencing "issues" with my WordPress. It keeps going above their upper limit of open MySQL connections. So, while I am diagnosing it, I need to restart the server every few hours to avoid it going down.
How do I write a cron to restart Apache every 3 hours?
I setup my cron job run daily and it automatically sends email to root@server.mydomain.com after it done. How do i setup forward email from root@server.mydomain.com to my gmail or other external email provider ? That means every time if root@server.mydomain.com receive email than my other maail will get that email too.
With Windows 2003 server, there are comprehensive lists of what you need to do to secure the server before use. For Windows 2008, I wonder is there such a list? Or is it true as what I heard from Microsoft that it is already secured out of the box?
Anyone has any resources on the hardening or preparation of 2008 for server hosting uses?
I have Plesk 11.5 (service provider mode) on a Windows 2008 server IIS7.Most of my sites are developed in .asp and therefore i use a custom 500-100.asp error page that check s the IP of the visitor then displays either a friendly error, or if its my IP a full error of what has happened (it also emails me the error). This allows me to debug pages easily whilst developing and to keep an eye on anyone trying SQL Injection hacks on my sites (as the error and email also have session variables and IP address).I dont have root access to the server as it is a Webfusion dedicated server.I have following the Plesk documentation -
1) Switch on custom errors for the subscription 2) Look in virtual directories and navigate to error documents 3) Find the error in question (500:100) and change it to point at either a file or URL
FILE - I had the data centre add in the 500-100.asp error page in to the virtual template so that my page is available in the list of virtual files - this didn't work but that maybe because its not a static page??
URL - when i add the path it says its incorrect, if i add a fully qualified address, it accepts it but it doesn't work.give me a specific example of the URL that can be entered relative to the root as the format in the documentation isn't accepted. The last step is to restart IIS which is also an issue as i cant seem to do this from the Plesk panel..It is as if it isn't catching the 500:100 error, and only catching the general 500 error??
I have been searching everywhere trying to find a tutorial but It is not going anywhere. Basically I need to create 2 nameservers for Godaddy and pretty much so when i type http://mysite.com it goes to my site. I can access everything from http://myip and everything works. Now is there a step by step on how to actually do it in the DNS Manager? I need help like what IP address do I use is it the router ip? The external IP?
if it's possible to use ODBC to connect to a Windows box from a Linux cPanel server. We have attempted connections from PHP (both as CGI as well as Apache module) and we get: Fatal error: Call to undefined function odbc_pconnect() in...
and
Fatal error: Call to undefined function odbc_connect() in...
Most people probably run Linux on their media servers, but since I don't know much about Linux and the media server we have is unmanaged, I was wondering how you guys feel about running Windows Server 2003 Std on a media server instead of Linux. We'll only be using the server to host Flash video files (.flv) and we'll be serving those vids on websites hosted on other servers, resulting in approx. 50,000-100,000 media views per day (filesizes range from approx. 5MB to 10MB). We don't want to run Windows Media Services, just a Web server (IIS6) and have the Flash video players on the external websites take care of the streaming/downloading part.
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?
i have had a problem for some time now, regarding my CRON jobs. I am trying to download a large amount of data from ebay (through their API, totally legal and aboveboard) using php, but my CRONjob times out.
I have tried resetting the timeout variable, but then it exceeds the maximum filesize SO, my question: is there any way to have a script run as a CRON job, and wen it is complete, call another script?
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.
VPS isn't rebooting by itself when it goes down. Anyone has any program/script that monitors heartbeat of the server? Like when it goes down, the program will automatically reboots the system. I know there's such a script out there but I forgot what it called.