Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Web Hosting


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







How To Use Wget Command To Download .htaccess File


I just want to use wget command to transfer data from a shared host to dedicated server.Anybody knows how to set wget to download the .htaccess file and keep the file/directory's permission the same as they used to be on the old server?
I only knows these:wget -b -c -r -l0 -np -nH -t0


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Command To Stop The Wget Command
Is there a command i can type into the ssh console to stop a current transfer that i started wit the wget command?

the file im wgeting always stuffs up at 51% but then the server just retries and starts again, its done it 3 times so far and i just want to completely cancle the process if possible....

View Replies!   View Related
Wget Command
Its been so long since i used it i have forgot, I need to transfer backups to my new server so i can then install them.

But i have forgot what wget command to use.

View Replies!   View Related
Command For Tranferring Files Through Wget
I am trying to move over a client from Verio's hosting to my VPS. The verio control panel looks very amateurish and there is no option to do a full account backup. There is no SSH either.

I tried wget -r ftp://user:pass@hostname/directory/* which was mentioned in another WHT thread, but after it gets connected, it shows the following and stops there:

Quote:

Logging in as accountname ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /directoryname ... done.
==> PASV ...

Can anyone suggest a command that will work? There is only about 35 MB of files there, but I spent hours yesterday trying to download through FTP.

View Replies!   View Related
How To : Change ( Wget ) Command In Your Server
Most popular way of downloading these scripts is to use "wget" comman

when we need to change the command wget in our server for download some destructive script and run it through some server side program such as PHP or PERL ...

now i try to start this session by this command ...

PHP Code:

pico /usr/bin/wget 

it's show me like this!

PHP Code:

?ELF^A^A^A^@^@^@^@^@^@^@^@^@^B^@^C^@^A^@^@^@^&#65533;¡^D^H4^@^@^@ u^C^@^@^@^@^@4^@ ^@^H^@(^@^[^@^Z^@^F^@^@^@4^@^@^@4^&#65533;^D^H4^&#65533;^D^H^$^@^@^@^&#1591;^@^@^@^Û^@^@^@c^@^@^@C^@^@^@^@^@^@^@^@^@^@^@^A^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@$^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^E^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^^@^@^@  ^@^@$^@^@^@P&#1575;^G^H^@^@^@^@^Q^@ø&#65533;^É^D^@^@^@^@^@^@Æ^@^@^@^R^@^@^@^È^E^@^@^@^@^@^@v^@^@^@^R^@^@^@Û^A^@^@^@^@^@^@&^@^@^@^R^@^@^@^O^E^@$^@I^F^@^@^@^@^@^@<^@^@^@^R^@^@^@^A^E^@^@^@^@^@^@~^A^@^@^R^@^@^@&#1589;^G^@^@^@^@^@^@1^@^@^@^R^@^@^@ñ^@^@^@^@^@^@^@ð^C^@^@^R^@^@^@r$^@^@^@^R^@^@^@A^G^@^@^@^@^@^@M^@^@^@^R^@^@^@^&#1589;^D^@^@^@^@^@^@E^@^@^@^R^@^@^@&#65533;^D^@^@^@^@^@^@=^A^@^@^R^@^@^@Ç^@^@^@^@^@^@^@J^@^$^@&#1588;^D^@^@^@^@^@^@'^@^@^@^R^@^@^@y^D^@^@^@^@^@^@^Z^A^@^@^R^@^@^@^_^F^@^@^@^@^ 

now how can i change this command ? or change anything in this file ( wget ) ...

View Replies!   View Related
How To Wget To Get A Cpanel Backup File
I have a backup file at my old server like:
[url]

What is the command line I have to give to get this file by wget to my new server?

Please keep in mind that I have to give my old server user/password in this command line.

View Replies!   View Related
Wget A File Onto Server It Gives ERROR
I have this Strange problem with the server.

Whenever i try to wget a file onto server it gives ERROR

Quote:

Resolving superb-west.dl.sourceforge.net... failed: Name or service not known.

If i use the FTP command on SSH. It still gives ERROR

Quote:

"ftp: xxxx.xxxx.net unknown host
Not connected.
Not connected.
Interactive mode off.
Not connected."

Even Paypal cant call back. Some users are facing problems where they have billing Scripts and scripts cant trace callback from Paypal

View Replies!   View Related
Wich Command Should I Use To Download From SSH
download a file to my server with SSH.

i know that the command for a simple download is wget [url]

but i have a link wich needs to enter username and password to download... wich will be the command for that case?

View Replies!   View Related
Cant Download File
I have just performed a ftp backup of my entire server. I then zipped it up in Cpanel.

The file size its self it 3322megs big (about 3.3gb). If i press it to download it says:

Forbidden

You don't have permission to access /backup/sepmid07/sepmid07.zip on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.37 Server at backup.xxx*********** Port 80

I have made sure that i have the right permissions, I have also made sure that it belongs to the correct user. Also next to it where it would say how big it is, it says "-"

View Replies!   View Related
Ip Is Trying To Download The Same File Many Times
We have a video streaming server, sometimes the server gets really slow and when we digg into it, we see that the same ip is trying to download the same file many many times. for example i either run this command

netstat -n | grep :80 | awk '{ print $5 }' | awk -F: '{ print $1 }' | sort | uniq -c | sort -n | tail

or go to WHM and see the 'apache stats' and i see 100 http connections from the same ip, trying to download the same video 100 times,,,

what is this? is this some sort of attack? could that be 100 different people that use a proxy? or what is going on?

View Replies!   View Related
Cannot Download File: Forbidden
I am having a large problem moving my sites over to another server. WHM is timing out transferring some large sites that are 4-16 gigs in size, so I tried to manually pkgacct and was able to get one of the accounts setup as root, moved it over to public_html so I could wget from the 2nd server. No luck, permission denied. I tried to change permissions in FTP and found out I couldn't change them so I chmodded the file as root, no luck.

From there I set chown and changed it to the user of the FTP account and was able to modify the file from FTP. I'm still getting a forbidden message when I try wget or download from browser.

Forbidden
You don't have permission to access /backup/cpmove-azcorp.tar.gz on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

At this point I'm clueless, I chmodded the file to 777 so what else could be causing this?

View Replies!   View Related
Download A .gz File From Ssh
Logwatch reset my server logs this morning and there's an event I need to check for in /var/log/kern.log

How can I download the gzip of:
kern.log.1.gz

..to my pc desktop, using putty / ssh.

View Replies!   View Related
Strange File Download
Users of my web site, running MD-Pro, a PostNuke (php-based) clone, suddenly started to report difficulties downloading files from the download module. We assumed it was the download module and spent ages diagnosing it, uploading fresh versions etc. After some time someone had the bright idea to see if the files could be downloaded direct (using the URLs) to eliminate the web application.

We found: Some users can download all files from the server with no problems.
Some users can download some files but not others.

So far as we can tell only MS Word files are affected, but not all.

The files on the server are not corrupted and there are no permissions issues

Disabling antivirus and firewalls locally makes no difference.

REloading fresh originals to the servedr does not help.

The host reports that no changes to the server have been made recently.

We have discovered that files in the web root are OK. The furhte down the directory structure they are, the less likely they are to download. Performance varies according to the browser in use. According to the host technical support, 'Firefox appears to be returning the data from its own cache. IE is only doing so for root. For the other places IE tries to download the file but stops receiving at exactly the same number of bytes from different locations.'

Using another server on a different host, the problem disappears so it must be due to the host setup in some way. Diagnosis is difficult because the host technical support can't reproduce it.

Platforms include Mac, Windows and Linux and browsers include IE7, Firefox and Safari.

One user with Mac isn't having problems, another with Mac is. All others reporting problems are on Windows. Users are at different locations, using different ISPs so it is unlikely there are common local problems.

The only common element I can see is that the ony files causing trouble are MS Word, though some of these do download OK

We have run out of ideas why this should be happening. How can some users have problems with the same files on the same server and others not?

What could have happened to cause this problem on a site that has been functioning correctly for several months on this server?

View Replies!   View Related
Lighttpd Force File Download IE
we are running a file sharing service and use lighttpd as a web server

the problem is that in Internet Explorer are some files i.e. .mpg, .pdf
and others opened directly in the browser

so is there a way to prevent this behavior(to force the browser to
download the file) by setting headers (or something else) in
lighttpd.conf?

View Replies!   View Related
Php File Popping For Download
how all the php files popping up for download. Am I missing anything here?

View Replies!   View Related
.htaccess~ File
There is a .htaccess~ file in the root directory of my server. .htaccess is also in that place. But what is the purpose of that .htaccess~ file?

View Replies!   View Related
Htaccess File Not Working
I'm wondering why sometimes my htaccess files don't seem to work, especially when contained within subdirectories. I've got two problematic situations:

(1) I've got a mod rewrite that supposedly works. I put it in a subdirectory like /dbase/stuff/ but the script ignores it like it just isn't there. Permissions don't change anything and they are currently set to 644. It's very simple and only contains the following code: ....

View Replies!   View Related
Htaccess File Size
I manage a high traffic website on one of my dedicated servers. It currently serves around 2 million uniques/mo.

In time, due to page changes, around 200 important URIs got a redirect [L,R=301] in the main .htaccess file that's sitting on the root directory.

Redirects are in the form of : person/J/James_Blake_2000/ --> /user/James_Blake/

Thus, the .htaccess file has reached well above 200 lines.

I would like to kindly ask for advice: should I limit the dimension of this htaccess file ?

How do you guys treat these permanent redirects?

View Replies!   View Related
Moving Large File Storage, Upload/download To Amazon S3
I'm currently running on a VPS. My site allows for large file uploads and downloads, with files over 600mb in size.

The server has issues when the site gets three or more requests for large file downloads. I'm trying to grow this site to thousands of users and it is hard to do when the site can't handle even three.

I've been told by my host that I need to upgrade to dedicated. My VPS only has 512mb RAM and one large file download is eating up that RAM. This is causing the issue.

I'm a newbie and while I knew I was risking a bit by going with VPS I do find it a bit annoying that these guys advertise 1TB of bandwidth per month but I can't even support downloading 1GB at the same time....maybe it's just me...

Anyway, I am now looking into moving the large files and the upload/download over to Amazon S3. If I do this I am expecting my RAM usage on the VPS to greatly decrease. Is this correct? If my PHP code is running on the VPS, but the actual file download via HTTP is coming from S3, that should not be a heavy load on my box, correct?

any opinions on S3?

View Replies!   View Related
Htaccess Redirect (from A File With Spaces)
I'm trying to redirect from a filename that contains spaces using .htaccess

for example, I want to redirect /test 2.html to http://example.com

I've tried:

ReDirect /test 2.html http://example.com
ReDirect /test 2.html http://example.com
ReDirect /"test 2".html http://example.com
ReDirect /'test 2'.html http://example.com
ReDirect /test%202.html http://example.com
ReDirect /"test 2.html" http://example.com
ReDirect /'test 2.html' http://example.com

And a few others. I can't seem to get the syntax right, and always end up getting an internal server error message. Anyone have any ideas?

View Replies!   View Related
File Details Command
How do you get the file size/details of a file through ssh?

View Replies!   View Related
Use Htaccess File To Disable Downloading Of Anything In The Directory
I am using a flash media player on one of my domains that streams music. The flash player would be like domain.com/music

The mp3 files are located in domain.com/music/mp3

The flash player just reads the title of the song and displays it in the media player.

I have used htaccess already to disable indexing, but the file name that shows on the media player is the exact name of the mp3, so I'm pretty sure people will be able to easily figure this out and start downloading our music.

What else can I add to htaccess to allow localhost access to the music, to stream with the flash player, but wont allow downloading of the mp3s.

View Replies!   View Related
Php.ini And .htaccess File Permissions
I'm on a shared FreeBSD server, running Apache with Drupal, and vBulletin.

I had to create a local php.ini file in my public_html folder for Drupal, and another in my forum folder for vBulletin. Now my question is, what should I set the permissions of these files to? Also, what should I set .htaccess permissions to as well?

I'd like to keep them invisible to the public. But, I don't want any problems with Drupal, or vBulletin ether.

I'm used to using Linux and I know how permissions work on a desktop. I just don't know what they do when used on a server. I'm guessing 640, but I'd like to make sure before I change anything.

View Replies!   View Related
Upload A .htaccess File In FTP And It Disappears
I upload a .htaccess file in FTP and it disappears, i checked with SHELL file is there but cant see in ftp ,

View Replies!   View Related
Cronjob / Wget Error :: /bin/sh: /usr/bin/wget: Permission Denied
Cronjob is not working for a script on a clients cpanel account:

He set it up to grab from the path below and it is giving this error:

/bin/sh: /usr/bin/wget: Permission denied

The cronjob that is running is:

/usr/bin/wget -O - -q [url]

This is a cpanel box with centos 5

View Replies!   View Related
Use .htaccess File To Allow Access To Zip Files Only From My Script
I have download manager script that I use for my customers to download products right after the purchase.

Script generates download link that looks like this:

http://www.yourwebsite.com/download/...582921B&p=1840 (where 2YY6582921B is receipt number that is different with each purchase).

All products are placed in one folder. This folder can not be seen in above download url, but can be accessed thru browser and files can be downloaded that way without paying for them.

Can I use .htaccess and if yes how, to protect all product files the way that they can not be accessed directly by visiting url thru browser (in case somebody will find the correct url), they should be allowed for access only for my download manager script.

View Replies!   View Related
Cron Command Remove File Not Working
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 Replies!   View Related
SCP Command For Transferring Large File
Can anyone tell me the format of SCP command for transfering an 18gig TAR.GZ file from one srever to another

say im logged in to the old host via SSH and the backup is located at /home/public_html/cpbackup/blahblah.tar.gz

what command would i put down to transfer to the new server

View Replies!   View Related
Pcfg_openfile: Unable To Check Htaccess File, Ensure It Is Readable
Apache error log for a subdomain

[Thu Apr 17 00:02:24 2008] [crit] [client 69.113.17.156] (13)Permission denied: /home/user/public_html/subdir/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

However, there is no htaccess file in that directory anyway

/home/user/public_html/subdir

Server is Centos 5 / Cpanel

View Replies!   View Related
Modify Conf File Using Shell Script/Command Line
i want to modify a conf file using commandline or a shell script. for eaxmple:

here is a line from my conf file:....

View Replies!   View Related
File/Command To Change Number Of Open Files In Linux
I can't seem to remember, but what's that command or file used in Linux so that you can view/adjust the number of open files and others in the system?

View Replies!   View Related
Command Line To Detect Account/file With Video/music
What command line do you use to detect account storing music/video?

What command line do you search for file that is greater than 1MB?

View Replies!   View Related
"Download Test File" From Theplanet
someone can give me a link "Download Test File" from theplanet..

View Replies!   View Related
Wget
I have this big file i want to transfer to my server. The Direct Link to file is being masked by PHP.

The URL is "/download.php?file=1" and requires Authentication.

Is there any way...i can wget or download the file to server

View Replies!   View Related
Wget
A customer is currently using wget on my server. I read it's not secure to leave this enabled.

I was wondering how to disable this and then re-enable it just when this specific customer needs to use it?

View Replies!   View Related
Reinstalling Wget
I just accidentally removed wget on my server via rpm

How do I reinstall it back using rpm?

I try yum install wget but it doesn't work

I'm using centOS5.

View Replies!   View Related
WGet Images
I'm trying to do is wget images, however, i'm not sure how to do it 100% right...

what ive got is a index.html page that has images(thmubs) that link to the full size images. how do i grab the full size images?

Example of links on the page:

<a href="images/*random numbers*.jpg" target="_blank"><img border=0 width=112 height=150 src="images/tn_*random numbers*.jpg" style="position:relative;left:3px;top:3px" /></a>

i tried

wget -A.jpg -r -l1 -np URLHERE

View Replies!   View Related
Wget Causes Load
why when i wget large files around 300/500Mb in size the load on server goes 2.00+

View Replies!   View Related
Wget - Apache
I've just did a 'wget' on a file that's quiet large (2.3GB), and now I'm wanting to serve the file through one of my accounts. The ownership and permissions of the file have already been changed to reflect the specific account; however, when I browse to the file through the web it will not pick up the filesize nor allow me to download the file stating 403 - Forbidden Access.

Is there some setting that needs to be changed to allow users to download a file of this size? or am I missing a permission command?

View Replies!   View Related
Wget Chop
Does anyone know any linux software that would chop up a video file for you?

View Replies!   View Related
Cron / WGet
My crontab uses Wget to access a PHP file. It works just fine; however, the only problem is that each time the crontab is run it creates a file in the root of my site called filename.php.10XX

filename is the name of the file that Wget runs and 10xx is just the number of times the tab has been run.

How can I prevent these files from being created?

View Replies!   View Related
Can't Find Wget
I can't find wget on a hosting. SSH command find / -name wget returns with nothing, however wget works properly on a hosting, what could the problem be?

View Replies!   View Related
Wget 403 Forbidden
I am trying to move filename.tar.gz from server A to Server B with root at both, i have moved filename into a web accessable folder and chmod the file 755, when i go to wget filename from server A I get...

View Replies!   View Related
DDoS Attack By Wget
i have been under DDoS attacks, and what it does is it will have different servers wget

a certain file so it's all pretty much with HTTP.

for example: i had 10000 wget site.com/file.rar from ip x.x.x.x

and then same wget from ip y.y.y.y.

now question is how could i block this?

is it a way on apache2 to limit Downloads per IP (example 1 gb /IP)?

View Replies!   View Related
Mget S Slower Than Wget
i try to backup a folder with many .tar files,

i use mget,the seppd is about 1MB/s,

but wget is about 5-7MB/s,

View Replies!   View Related
I Somehow Deleted Wget :: How To Get Back?
Hi I was following this guide:

[url]

Now command "wget" don't work anymore ... any ideas what is wrong with this guide ? I did exactly as it said.

View Replies!   View Related
How May I Disable Wget In Centos
i have one download site.with direct link.

i want another servers can`t with run wget [url]

transfer to self servers

How may?

my server is cpanel,apache,

View Replies!   View Related
Wget Downlaoding With Authentication
I been trying to get this file using wget but it uses some sort of advance Authentication that I cant get around using wget it doesnt use cookies it uses some Authentication method.

How can I login to that website using wget? the form field names are usernamlc and passlc if I can some how post those two usign wget I can get the download link.

View Replies!   View Related
Location Of Wget Files
I did a wget get on a file today and i didnt specify where i wanted it to go, eg cd /dir1/dir2

Where does it keep the files i wget.

I am running Cpanel/whm,

View Replies!   View Related
Enabling Wget - Security Issues
Will there be a prominent security issue if I enable wget for a user?

And where would I find the user/group file to add that user?

View Replies!   View Related
Crontab To Run PHP [without Using Wget And Lynx]
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 Replies!   View Related
Is Immutable-bit Set On Wget An Rkhunter False Positive Or Do I Worry
Got this error on rkhunter 1.3.2

Quote:

[12:16:24] /usr/bin/wget [ Warning ]
[12:16:24] Warning: File '/usr/bin/wget' has the immutable-bit set.

Is that a concern? What does it mean?

View Replies!   View Related
Ffmpeg :: Cannot Open Shared Object File: No Such File Or Directory In Unknown On Line 0
Rapidly growing error logs showing the same message

$ug-non-zts-20020429/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*
root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*

Using cpanel 11 / centos 4

View Replies!   View Related
Put A .FLV Format File On A Web Page With Out Using The .swf File?
how to put a .FLV format file on a web page with out using the .swf file?

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved