CentOS 5 Server :: Uploaded File Using PHP Scripts Getting Deleted Of It's Own / Fix It?

Aug 9, 2009

I'm having a very strange problem. I use lampp on centOS linux. My application has a upload Script (in PHP) which uploads file to file system. after upload and moving file to correct location, uploaded files are getting deleted. I check file upload and moving of file by putting all the status in a text log file. files are getting uploaded properly and after upload I'm able to move the files to it's correct location.

View 1 Replies


ADVERTISEMENT

CentOS 5 :: Passwordless Ssh Login From Windows - Uploaded The Generated File Id_rsa.pub To Server

Aug 22, 2009

I have an rsync server and am now setting up cwrsync on my windows machine. I want to be able to run cwrsync over ssh with public private keys. I followed a tutorial over here to set this up. It, however, still prompts me for server password and works only if I provide the password. For some reason the public/private key process is not working.

- I generated a key using the command: ssh-keygen -t rsa -N '' (I verified the key gets generated on my Windows machine)

- I uploaded the generated file id_rsa.pub to server /root/.ssh/authorized_keys

I am also prompted for a password if from command prompt I run this command to log into server: ssh -i c:docume~1user.sshid_rsa root@<server_ip_address> On server I have changed the configuration file (/etc/ssh/ssh_config) to say:

RSAAuthentication yes
PubkeyAuthentication yes

I then restarted the sshd service, however, to no avail.

View 4 Replies View Related

General :: Files Uploaded By OSX Machines To Vsftp Server Can't Be Deleted By Other Users?

Feb 21, 2011

I have a vsftp server running, and we have problems sporadically where people (not the person who uploaded the file) cannot delete files uploaded from OSX machines. We never have this problem with files uploaded by PCs. Anyone ever heard of this or know what I should check? The users uploading the files all belong to the same group. Also, I think if you log in to the FTP server with another OSX machine, it will let you delete them. I'm looking at the folders now, they have drwxrwxr-x. When i try to delete them from a PC, it gives me a 550 Remove directory operation failed.

View 14 Replies View Related

Server :: PHP - Put Uploaded File Directly To Mysql Blob

Sep 30, 2010

I am trying to read a file uploaded by a simple <input type="file"> form and directly write it to a mysql blob - without saving it to the filesystem.
I tryed something like:

Code:

It writes some few Bytes to the DB and there is no error, but it's not the actual file that is being written.

View 1 Replies View Related

CentOS 5 :: Restore Fstab Deleted File?

Feb 19, 2011

I accidentally deleted the file called "fstab,v" not "fstab" The files location was /etc/fstab,v if it is very important file and what its used for & how to restore?, as my server seems to be running fine, but I don't want to get into any problems later down the line.

View 5 Replies View Related

CentOS 5 Server :: SSH Deleted, Can't Reinstall With Rpm?

Nov 13, 2010

I tried this once but my post disappeared. A thousand pardons if this is a dupe.Through the magic of typos, I managed to delete my ssh binary file. I can receive SSH connections but am unable to SSH into another computer.I located the RPM that looks to be what I'd want -- openssh-4.3p2-41.el5_5.1.i386.rpm -- but it refuses to install. RPM gives me the following conflicting messages:

[root@lightning packages]# rpm -i openssh-4.3p2-41.el5_5.1.i386.rpm
package openssh-4.3p2-41.el5_5.1.i386 is already installed
and

[code]....

View 3 Replies View Related

General :: Squid Uploaded File List?

Aug 10, 2010

I am using endian firewall 2.4 and squid 2.6, everything is working fine for me. In squid report i am getting download list by user or IP based. Now my question is, is this possible to get user based uploaded file using HTTP POST. Is there any configuration have to be done is squid.conf, if answer is yes then please give me the what is configuration i have to give. Example: if suppose user uploading a image file into facebook.com, i want to track the file name and which IP address and then where its uploaded.

View 1 Replies View Related

Software :: VSFTPD And Uploaded File Permissions?

Mar 6, 2011

I've got a bachelors in Computer Information Systems from Metro State in MN, but sadly, we didn't spend much time familiarizing ourselves with UNIX based OSs. I'm sure I'll have plenty more questions to pose later as well. I'll pay it back with help for anyone who's working on an evil Nortel router.

I believe I've got VSFTP set up and configured (mostly) the way I want. Here is the config file:

Code:
travis@travish82server:/etc$ cat vsftpd.conf
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES

[Code]...

View 3 Replies View Related

Ubuntu Security :: User Uploaded File Malware Scanner?

Mar 18, 2010

Alright running a ubuntu based webserver. The app will be accepting user uploaded files from my client's clients. My client will then need to download an access the files. I'm looking for a solution to scan for windows malware at the time of upload so I never expose her machine directly to her client's uploads.

View 2 Replies View Related

CentOS 5 Server :: Stop Apache Logs (access/error/ssl) From Being Deleted?

Apr 22, 2009

I don't mind that apache logs "rotate". By that, I mean that periodically the most recent log is renamed "*.1" and the older logs are bumped up a number In my particular situation, I do mind that the log that was "*.4" is deleted rather than being renamed to "*.5" when that periodic renaming happens.

I know most of the other /var/log files have the same behavior. What does this? Can I change it so my apache logs are "rotated" up but aren't deleted? I know this will take some hard drive space, but I have a lot of it.

EDIT: CentOS 5.3, kernel 2.6.18-128.1.6.el5, Apache 2.2.3

View 1 Replies View Related

Fedora Servers :: Apache Execute Permission To Save Uploaded File?

Sep 10, 2009

here is the upload form:

<form enctype="multipart/form-data" action="uploader.php" method="POST">
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>

[Code]...

View 1 Replies View Related

Server :: Takes Time To Release File Handles - Get Corrupted - Deleted Too

Aug 26, 2010

The app in linux server(CentOS 5.3) uses files from a mount directory(Shared windows directory in read only mode). At the same time, the same file might be edited by user in windows env. We were assuming that as the windows folders are mounted in read-only mode in linux so any change done by user in windows environment would be fail safe i.e. can be safely committed to the file. But when the file concurrently used both by Linux and as well by windows, at some point linux does not release the file handles and the files get corrupted(deleted too). Earlier we were using win2k server and this step was hardly reproducible and win2k was releasing file handles quickly. But with centos, we really had touch time managing files.

View 2 Replies View Related

Server :: Req Assistance W/script To Move Uploaded Data Elsewhere After Upload?

Nov 25, 2010

i need your help for executing an script to copy data from upload folder to some other after successful upload. Do you have any idea for this?

View 1 Replies View Related

Software :: Convert Uploaded Audio Files To Server Into A Full Mp3 And Then A 30 Ogg Clip?

Aug 10, 2010

I am trying to convert uploaded audio files to my server into a full mp3 and then a 30 ogg clip. I have tried LAME but couldn't get it to clip.

View 1 Replies View Related

CentOS 5 Server :: Hosts File And Resolv.conf Conflict CentOS 5.5?

Apr 11, 2011

I am running an application that requires use of my /etc/hosts file. In it, I have my machine name and its LAN ip address. The program creates a service on a specific port, then attempts to connect to it based on the host name. So my hosts file has to be correct.I added the nameservers to resolv.conf and now my application will not run. My guess is that the computer is checking the name servers first, timing out then checking the hosts file.Is there a way I can tell the system to check the hosts file first, then DNS. I thought it should behave that way by default, but it does not appear to.

View 1 Replies View Related

Server :: Custom CentOS 5 Install With Ks.cfg File And CentOS All In One

Jan 14, 2010

What i want to be able to do is create a custom kickstart for my centOS 5 server. I want to create a bootable cd that I can pop in my server and basically walk away for 45 minutes and I come back and its fully installed. All the directions I have read so far tell me that I have to create a seperate ks.cfg and then I need my original centos cd to get it booted. Then the cd will ask for where the ks.cfg file is and I have to type the location. I just want to pop the CD in and type in linux_clean or something and have it perform a custom install based on the information and specification in my ks.cfg. How can I go about doing this?

View 1 Replies View Related

General :: Recover A Deleted File Using The Ext3 File System?

Jan 10, 2011

I used the ext3 format when I formatted my partition prior to installing Ubuntu10.10. I had accidentally deleted a file and began the process to get it back. It wasn't critical but helpful to recover the file. To make a long story short I ran into to some unexpected road blocks. I tried to use PhotoRec to get the job done but with no success.

I'm just looking down the road in the event I might have to recover something important.If it would be better going back to the Fat32 file system I would rather do it sooner than later. Just as a side note I am dual booting between linux and windows.

View 6 Replies View Related

CentOS 5 Server :: Apachewithdocx - Microsoft Documents Wants To Open The File Like A Zip-file Not As Word Document

Jul 13, 2010

I've a webserver with a lot of documentary to serve. Some of the users have problems with the new microsoft documents like docx. Internet explorer 7 want to open the file like a zip-file not as word document. I've googelt around and found a solution that didn't work for me: [URL] I've added at /etc/mime.types

[Code]....

After a restart of httpd , nothing chance, always the same failure with internet explorer 7.

View 4 Replies View Related

CentOS 5 Server :: Want To Know File Handles / File Names At NFS Client

Nov 16, 2010

In case that NFS client of fedora is set to cache nfs file handle, where is the cache stored such as /var/lib/nfs?If it's stored in memory instead of directory tree, what command can I know the combination of file names and file handles with?OS in my test environment: Fedora Core 6

View 2 Replies View Related

Server :: CentOS /Samba Server- XP Windows Client File Sharing?

Nov 3, 2009

I have a CentOS + Samba server and Windows XP client machines. Users, passwords and permissions are entered on the server machine.users and passwords ( same as on the server ) are entered in the XP client machine.When attempting to access a public file on the server using a XP client machine and the IP address of my server, I am asked a user name and password and none of the already entered seem to work. I cannot access the server file (prompted again and again to enter user name and password). What did i miss

View 7 Replies View Related

CentOS 5 Server :: NFS Performance With Files Not Yet Cached By The Server File System?

Feb 25, 2009

I have a weird performance issue with a centos 5 running a nfs server and a rh8 client. I think the fact that it is rh8 client should be downplayed. It is just that with rh8 client the performance degradation seems more clear. See test details below OS in server is Centos 5 x86_64 kernel 2.6.18-92.1.22.el5

1Gb connection between machines File to test over NFS is a 1GB file. First of all I wanted to measure how the network alone performs while using NFS. So in the server side I run a "cat" command on the 1GB file to /dev/null. Please note that the disk read speed is about 98MBs. At this point the file system has the 1GB file cached in memory. In the client side a "cat" on the same file gives me a speed of about 113MBs. It seems then that the bottleneck in this instance is the network and it is very close to nominal speed. So the network performance is really good. (BTW I know that the server got that file from cache because a vmstat or iostat shows no disk activity.)

The second test is reading from disk with no caching involve. In the server I flushed the 1GB file from the memory. For instance by reading another 5GB file and I repeat the same thing as above in the client (a cat on the 1GB file). Now, the server has to go to disk.(vmstat or iostat shows the disk activity). However the performance, now, is about 20MBs, I was expecting something closer so 90MBs. (since the reading speed in the server in the first test showed 98MBs).

This second test was repeated for ext2, ext3, xfs with no significant differences. A similar test using a RH8 NFS server and client gets me close to 60MBs for a 1GB file not cache by the file system in the serverSince network speeds and disk read speeds are not the bottlenecks ... what or where is the limiting factor then?

View 4 Replies View Related

Ubuntu :: Find What File Is Being Used For A File Want To Deleted?

Aug 28, 2010

I want to delete a file but it says it's in use by another program. I forgot what the command was to look for it.

View 4 Replies View Related

CentOS 5 :: Deleted My Trash Can - How To Get It Back

Sep 11, 2010

I had several files on my desktop that I wanted to delete so I left clicked at the top corner of one of them and dragged a box around the group to highlight them. Once done I deleted them. I must have included the trash can as that has gone as well. There is no undelete option in the menu so please, how can I get my trash can back.

View 9 Replies View Related

CentOS 5 :: Trash For Deleted Samba Files?

Jul 12, 2010

I use a CentOS 5.4 machine as a Samba file server for a WinXP SP3 box. I noted that when I deleted files under the Samba server from WinXP, there is no trash can for them. What I delete is lost for good. Is there a Samba config setting that puts deleted files into a trash can?

View 2 Replies View Related

CentOS 5 :: Accidently Deleted /proc Files?

Sep 21, 2010

While experimenting with rsync, I accidently deleted a bunch of files in the /proc directory. I think it was the directories: 1, 2, 3 ... 10.This happened a few days ago and after rebooting a number of times, I do not notice any problems.

View 3 Replies View Related

Ubuntu :: Possible To Undo Deleted File In JFS?

Jan 13, 2010

Is there a way to undelete a just-deleted file in JFS? I can't seem to find any information on it. I'd have sworn I did this before but didn't save the steps.

View 1 Replies View Related

Ubuntu :: Recovering Deleted 9gb 7z File

Aug 17, 2010

A friend had a 320 gig hdd he wanted me to back up. I saved all the files in a folder "Documents & Settings" and even made a 7z archive out of it. I used a 1tb mybook and copied the files to it then tried to delete it. Now i had recovered the files using ubuntu, but moved them to my windows partition. When i got on windows 7 and tried to delete the directory "documents & settings" i got an error saying some files had names that were too large or something like that. So i went on ubuntu and deleted the files from my windows partition without moving them to the ubuntu partition.

Well my 1tb drive just broke so i lost the files on there. Now im trying to back the files up using ubuntu. I am running scalpel at the moment, and it hasnt found anything at all. I really dont know if i set up the configuration file right. I just started scanning my other hdd that contains the linux boot. It has just started so i am not sure if it will find anything or not.

But incase it doesnt, how do i set up the config file to find the file? There are two things i deleted off of my windows partition. a 7z file archive which was the 9GB directory "Documents and Settings" zipped, and the actual folder Documents and Settings.

View 1 Replies View Related

Ubuntu :: Prevent File From Being Deleted ?

Dec 31, 2010

I would like to ask if there is a way of preventing a file from being deleted, but still retaining the option of editing it. I know that I can set write access off with chmod, but that would also mean that I can't edit the file any more. What I would like to achieve is to make it impossible to remove a file on which I am working.

View 9 Replies View Related

Ubuntu :: Recovering Deleted File?

Apr 9, 2011

i have recently beingmessing about with a few of my own files(i realise that this was not very smart) and i managed to delete it from the trash. is there any possible way that i am going to be able to recover the folder that i deleted.

View 1 Replies View Related

Red Hat / Fedora :: Restore Deleted File ?

Mar 10, 2010

I accidentally deleted one of my very important folder using the command:

That is a very important project done in Plone( a CMS ) is any way to recover my Folder.

View 5 Replies View Related







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