Crontab Editing Error

Jan 13, 2008

I am trying to edit crontab using crontab -e, I seem to get to it okay but I am unable to edit anything in there, at the end of the file there are ~ in there, and I cant even delete them. Its like the file is locked.

View 6 Replies


ADVERTISEMENT

How To: Crontab 4755 CPanel Error Fix

May 28, 2008

A common error that cPanel show after a fresh install is the:

usr/bin/crontab permissions are wrong. Please set to 4755

An easy fix is the using the following commands.
Make sure you're using root.

chmod 4755 /usr/bin/crontab
ps -aux |grep cron
/scripts/restartsrv_crond
/etc/init.d/crond restart
ps -aux |grep cron
ls -l /usr/bin/crontab

View 8 Replies View Related

Pico Etc/crontab VS Crontab -e

Sep 12, 2006

I have been searching for an answer on this for a couple of days and have yet to find one.

I am running a box with Centos.

If I Pico etc/crontab I get this type of output;

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

If I crontab -e I get this type of output;

44 21 * * * /scripts/upcp
0 1 * * * /scripts/cpbackup
*/15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
2,58 * * * * /usr/local/bandmin/bandmin
0 0 * * * /usr/local/bandmin/ipaddrmap

Why different?

I am taking it crontab using -e is not the same file as etc/crontab?

View 4 Replies View Related

Editing DNS Zones In WHM

Jul 16, 2009

I'm in the process of migrating a site to a new server. we're not ready to move email yet, so ideally i would like to just move web traffic at this time. i would like to be able to do this without changing the nameservers with the domain's registrar at this time.

which records to i need to manipulate in order to do this?

can i just change the A record for domain.com to point to a new IP and this won't impact the current email or do i need to move the entire site?

My biggest concern right now is impacting email by moving the everything to the new server.

View 2 Replies View Related

Editing A DNS Zone

Mar 11, 2008

to edit a DNS Zone (via WHM=> DNS Zone Edit) of a domain hosted on my server & which NS's are routed to.

New setting should route domain to a seperate server (i.e HTTP, FTP) and leave EMAIL on my server.

I've changed all settings, except MX & mail CNAME, to the new IP (This includes NS's, A's, CNAME's - WWW & ftp). Still the WWW is not working and email has stopped working localy.

View 9 Replies View Related

CPanel/WHM DNS Zone Editing

Jul 11, 2008

I have recently updated my cPanel/WHM to the latest stable version and with one (and maybe a few more) of the DNS zones I cannot edit using cPanel and I get this error:

Unable to parse zone: Error while parsing zonedata for THISISMYDOMAIN.COM: expected valid serial, line 4 ...propagated at /usr/local/cpanel/Cpanel/CPAN/Net/DNS/ZoneFile/Fast.pm line 142.

What can I do to fix this as I need to edit this DNS zone urgently.

View 8 Replies View Related

Editing Mime Types

Aug 27, 2008

Whenever I try to validate a page on my website it says it's invalid because the mime type is incorrect.

If I add this code to the top of the page:

PHP Code:

<?php
header("Content-Type: text/html");
?>

The page then becomes valid.

How can I update the mime type on the server so that I wont have to add this code to every page?

My server is a VPS running Apache with Plesk. I have SSH access.

View 3 Replies View Related

FTP Program With Instant Editing

May 2, 2008

I am currently using WinSCP to edit files on remote servers on the fly without having to download them and then open them. WinSCP works fine, but today I experienced a severe problem for a second time.

When saving a file (a css file), WinSCP gave me an error something to the effect of "Lost connection - Could not list directory"...or something like that. When I reconnected, the file has gone corrupt at 0 bytes. Ultimately, the file is history!

Thankfully, I had a backup of the file, but more specifically, I am a fan of "Ctrl+A " then "Ctrl+C" before saving any file when doing live edits. This is what saved my butt!

I have a continuous problem of losing my connection with the remote servers, but when I connect via SSH to my local servers (either locally here or when I am mobile), I do not believe I have EVER lost my SSH connection.

My question is this...

Is there another FTP program out there that anyone can recommend that will allow me to edit files over FTP that does not require download, then open? Filezilla works great, but to my knowledge, I can only download each file, then open.

I have reported the problem to the host and we have gone through the settings with WinSCP and I have also been to WinSCP about this issue...all to no avail.

View 14 Replies View Related

Php.ini - Editing It Messed My Whole Server Up

May 11, 2008

I have changed one value in /etc/php.ini
safe_mode = On then restarted apache.

Now, when I try to access any mysql based sites, like forum or gallery - I get a blank page.

I went back and changed safe_mode back to 'Off'. Restarted the server - but I am still unable to load any pages.

Running CentOS.

View 6 Replies View Related

Putty - Editing File

Oct 26, 2007

putty, and the SSH commands in general

When I open a file using "vi" command, it just open the file and I don't know how to edit it, by removing or adding text to it, so how can I do it?

View 5 Replies View Related

Crontab

Aug 7, 2007

1) #> nano /var/spool/cron/root
Then type in the cron entry and save it
#> service crond restart
It cannot work if have not restart crond

2) #> crontab -e
Then type in the cron entry and save it

3) #> nano /etc/crontab
type in the cron entry and save it

I can use above three method without any problem.

However I cannot use crontab [filepath] method

4) #> crontab /home/admin/domain.com/www/testing/crontab.dat
*crontab.dat is a cron entry.
after type in this line,
I use crontab -l and see cron entry has been added to /var/spool/cron/root
However, the cron job will not run even I restart crond.

View 0 Replies View Related

Crontab

Aug 20, 2007

It's been nearly a year i'm running several cron jobs on my CPanel hosting. The format for the command i used is as follows (putting aside the timing info):

php /home/account/public_html/subdir/cron/cron1.php

A few days ago, all cron jobs stopped working, probably because of a certain setting that my host changed. I contacted my host, and he replied that the format i'm using for the commands was not proper, and he gave me the proper command as:

GET [url]

I tried it, but it didnt work....

I googled the problem and got tens of commands... i simply wanna run a PHP file (the file itseld is functional if i browse it) every now and then, so what is the command i should be using?

View 4 Replies View Related

Crontab Permission

Mar 24, 2008

I have problem to change the /usr/bin/crontab permission to 4755 it still remain 0755 ...

View 5 Replies View Related

How Does One Run Crontab Effectively?

Nov 10, 2006

How does one get their cron jobs emailed to them?

How does one run crontab effectively?

I have been trying to start up a new cronjob. I wrote the line command chmoded it to 755 and put it in a folder cron.x

In my crontab I input the following:
30 23 * * * root run-parts /etc/cron.x

the first is minutes
the second hours, right?

At 23:30 on my server time, nothing happened. >_<;; I'd like to have my cronjobs emailed to me so that if there is an error, I can see it.

I've been combing google with little avail (can't find much other than unrelated blog junk on that engine nowadays anyway >_<) I figured WHT would be more useful.

View 7 Replies View Related

Where To Find My Crontab

Jun 23, 2009

in which folder is the crontab generally located.

i run LAMP

also,i m looking for a specific cron right now (xbt_cron).once i find it ,what command do i use to run it manually.its supposed to run by itself..i just moved to a new server last week and now its stopped working.

View 7 Replies View Related

Crontab Permissions

Mar 18, 2008

In trying to setup a cronjob on a new server I notice that cPanel tells me that usr/bin/crontab permissions are wrong and that they need to be changed to 4755.

When I log in to the server with WinSCP and attempt to change the permissions it just doesn't do it ... it looks like it's doing it, no errors, but it just leaves it the same!

View 4 Replies View Related

A Line In My Crontab :: 0 7-23/3 * * * Top.sh?

Jan 13, 2008

I found this line in my crontab file

0 7-23/3 * * * top.sh

when it's running?

and what is it doing?

View 6 Replies View Related

Crontab Absolute URL

Aug 11, 2007

Is it possible to run a Crontab that executes an absolute URL?

I tried it, but it doesn't seem to work.

View 4 Replies View Related

Crontab -e Command

Aug 23, 2007

I can't edit or add anything when using this command

crontab -e

all the jobs appears but I can't edit

View 3 Replies View Related

Crontab + Php In Freebsd 6.1

Feb 5, 2007

i created a new cron job with "crontab -e" command by using the "root" user.

* * * * * php -f /path/file.php

i tried it for php -q too. while i type this command on the shell the php file works. there is no problem with crontab rule too. the chmod of file.php is 777, user root group wheel..

but it cant work. i couldnt understand why it aint.

i created a shell file and changed the cron like:

* * * * * /path/file.sh

and in file.sh:

#!/bin/sh
php -q /path/file.php
mkdir /path/anydir

so, /path/anydir have been created but file.php not executed. so the problem is not about cron rule.

View 5 Replies View Related

Crontab In My Server

Jul 9, 2007

I have few servers and when I check my crontab, I found the same line in all servers but at a different time.

43 0 * * * cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/local/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1

24 20 * * * cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/local/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1

32 19 * * * cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/local/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1

3 16 * * * cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/local/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1

Anyone can explain what are the purpose for these command, and should I make any changes to these to standardize them all (the time)

--------------------------------------

Secondly, one of my server doesn't set any automatic CPanel updates, so I set automatic updates for CPanel packages and Security packages. Is it suppose to add "/scripts/upcp" into my crontab? Most of them are also at different time.

--------------------------------------

I assume this command is to inform me whenever my user make a new domain add-on?
/usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify

--------------------------------------

Also can anyone tell me what are the purpose of these?
/usr/local/bandmin/bandmin
/usr/local/bandmin/ipaddrmap
/usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
/scripts/exim_tidydb > /dev/null 2>&1
/usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1

View 0 Replies View Related

One Server - File - Two Users Editing It, Third Errors Out

Sep 25, 2009

There is 1000MBPS network set up between three computers and server.

Server has files which program saves.

Program is being run in three different computers.

Each computer tries to get into same file (eg last bill) that was created before. First computer goes in within seconds. second minutes and third just crashes. No matter which computer runs it first, last one crashes.

So called "server" is running on Windows XP pro since it just needs to keep one program files. However I cant find out whats causing file sharing over network bug that crashes access to same file if connection from many computers.

View 7 Replies View Related

Apache Does Not Restart After Editing Httpd.conf

Jun 12, 2009

I am having a problem on my VPS. I am running the latest version of Apache on Windows Server 2K3, and after editing httpd.conf to allow virtual hosts (#Include /conf/extra/httpd-vhosts.conf) and trying to restart the service, an error appears saying the operation failed.

I have even tried restarting/starting the service via services.msc

If I am not using the default httpd.conf Apache will not restart at all... it is very strange. I have also tried doing a repair of the installation of Apache.

View 11 Replies View Related

Plesk 12.x / Linux :: Persistent Editing Of Postfix Files

Dec 10, 2014

I want to put custom values in /etc/postfix/main.cf, but I'm afraid plesk would overwrite them during upgrade. How can I safely add custom values to main.cf and preserve them duing plesk updates?

View 1 Replies View Related

Crontab To Run PHP [without Using Wget And Lynx]

Aug 7, 2007

Hello, I don't know how to use crontab to run PHP without using wget and lynx

1) The PHP script can run via SSH command line mode without problem
2) I can use crontab to run the PHP script with wget or lynx.

However,

3) The script will not run if i using below entry

1 2 * * * php /path/to/script/crontest.php
1 2 * * * php -q /path/to/script/crontest.php
1 2 * * * php -f /path/to/script/crontest.php

1 2 * * * /usr/local/bin/php - /path/to/script/crontest.php
1 2 * * * /usr/local/bin/php -f /path/to/script/crontest.php
1 2 * * * /usr/local/bin/php -q /path/to/script/crontest.php

View 6 Replies View Related

HTTP Requests With Crontab?

Apr 20, 2005

I set up a cron to run every minute & I'm running a PHP script by way of cron like

wget http://example.com/some_script.php

Now does each request of Cron is a seperate HTTP Request or what? Say my script takes more than 1 minute to execute completely but before its completed, its called again. So, will that effect the PHP script running because of previous HTTP Request or will it create a new HTTP Request & let the previous request finish its operation? Technically, it shouldn't block/affect the previous request, but I'm not sure!!

View 6 Replies View Related

Enabling Crontab For Users

Aug 19, 2008

I noticed on my new servers users doesnt have crontab permission.On my first server they have access.So what i need to do to enable users crontab permission automaticly on new servers?I have whm/cpanel there but it seems there is nothing about it there.

View 3 Replies View Related

Crontab -e Using Nano/pico Instead Of Vi

Jul 7, 2007

how do I edit crontab using nano/pico editor -w instead of vi when executing "crontab -e"

I'm bad at using vi editor

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved