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.







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 Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Linux Command To Check New Files
what command to type if I want to check all latest files (edited/saved) on a certain folder?

View Replies!   View Related
Links Files In Linux (file.txt For File.php)
Today I found some cstomer on the servers make a link for named it file.txt and link it to other customer php file.

so that customer have the ability to show the other custoer file content when visiting the url because it is a text wile originally it is a php file.

the php file was a config file, so now he know the database password , and because he is in the same server he can use that databse.

the question , how to avoide this prolem in the future?

notes , the SuExec is rnning and the open_basedir protection is enabled, but the problem still exists.

View Replies!   View Related
Change File Name In Linux
I have a file and i need to change this file name.

But its have space now.

Its: My File Name.tar.gz

How can change this file name to: My-File-Name.tar.gz

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
Any Hosting Without File Number Restrictions
Is there any hosting providers without file number limits? Or higher limits...

I've been using dreamhost, but found that they have a 500k file number limits. So now i'm using less than 2 gigs of disk and still have 370+ worthless free gigs of disk space

View Replies!   View Related
Daily Backup + Rsync Ssh + Large Number Of Files
i just wana know is it safe to do remote daily backup for about 70,000 files?

file sizes is about 200kb and every day i have about 1000 new file, so rsync first should check old files becouse i am deleting about 30-50 of them daily and them backup new 1000 files ,
so how much it will take every time to compare that 70,000 files?

i have 2 option now:

1-using second hdd and raid 1
2-using rsync and backuping to my second server , so i can save about $70 each month.

View Replies!   View Related
Disk Quota Issue - Locating The Folders With The Highest Number Of Files
we've been having issues with reaching or exceeding our disk quotas. I've checked carefully, and while I've cleared our mail queue's, I don't think that's the issue.

So what I'm really looking for is a way to figure out why we have so many files (our quota is 220000, and I'm pretty confident that we aren't intentionally doing anything to create so many files). There's lots of information on finding the folders with the largest file sizes, but locating the folders with the greatest number of files isn't quite so simple--or at least, it doesn't seem very clear to me.

Does anyone know a way via the command line to figure out this information, short of going through every single folder and figuring out how many files are in the specific folder?

View Replies!   View Related
Using Find Command With Regex To Find All Number-only Filenames
how can i do a search for all files (probs using regex) of files consisting purely of numbers?

for e.g. find:

53243.php
24353.php
24098.php

(always have 5 numbers).

seems one of my accounts has had some script run which generated a bunch of these in various subfolders, and the php file basically does a callback to www3.rssnews.ws and www3.xmldata.info, which seem to be some sort of spyware servers.

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
Command To Change Group Ownerships
I have this command to change "user" ownerships from "owner" to "owner2".

find ./ -user owner -exec chown owner2 {} ;

Is there a similar command for GROUP ownership or even better, a combined command?

View Replies!   View Related
Mysql Too Many Open Files
Basically mysql is behaving very very intermittently. Crashes were every 4 hours, I've brought them down to once every 8 or so hours but mysql keeps dying.

the error log will show the same routine each time.

on mysql start:

Quote:

091101 21:58:03 [Warning] option 'open_files_limit': unsigned value 120000 adjusted to 65535
091101 21:58:03 [Warning] Could not increase number of max_open_files to more than 65535 (request: 200110)
091101 21:58:03 [Note] /usr/sbin/mysqld: ready for connections.

Then we'll see errors due to crashed databases:

Quote:

091102 0:33:07 [ERROR] /usr/sbin/mysqld: Incorrect information in file: './<nameofdatabase.frm>'

following this a heap of:

Quote:

091102 0:36:35 [ERROR] /usr/sbin/mysqld: Can't open file: '>another database here.frm>
091102 0:36:36 [ERROR] /usr/sbin/mysqld: Sort aborted
091102 0:36:52 [ERROR] /usr/sbin/mysqld: Sort aborted
091102 0:43:00 [ERROR] Error in accept: Too many open files

View Replies!   View Related
Mysql Open Files Limit
I been having a heck of a time just with this one cpanel server and open files limit. At first using open_files_limit did not work so I changed it to open-files-limit that seemed to work but now it rejects the value and sets its down to 65535.

Then system open files limit is 500000. I try to set it to any value about 65535 in my.cnf and here is usual error:

090630 9:32:07 [Warning] option 'open_files_limit': unsigned value 120510 adjusted to 65535
090630 9:32:07 [Warning] option 'open_files_limit': unsigned value 120510 adjusted to 65535

When I run something like the tuning-primer it shows:

Current open_files_limit = 120510 files

The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.

Your open_files_limit value seems to be fine

But Im not sure if it is just reading my.cnf or something. I am still getting complaints from users about lost connections and I see the errors in error log. Ive looked everywhere and cant seem to find a solution to this.

View Replies!   View Related
Too Many Open Files: Couldn't Spawn Child Process
"Too many open files: couldn't spawn child process"


"Too many open files: couldn't spawn child process". This is what I see in the logs.

I have a CGI application which I can't run anymore because it is giving me a 500 Internal Server Error.

Would disabling the logging on all domains solve this issue? (thinking that too many log files are opened)

I did: cat /proc/sys/fs/file-max and in return I got: 372235.

Then I did echo 350000 > /proc/sys/fs/file-max*, because I thought I have file system limitation or something like that.

The problem starts even right after I reboot the server.

If I hit lsof a lot of files are shown.

The server load is tiny so nothing actually happens.

Would editing the httpd.conf or my.cnf files help ? Should I post the prefork and MPM settings here?

What else should I do to have my CGI application running again?

View Replies!   View Related
Mysql Open File Limit
I am trying to increase my open file limit on my CentOS release 4.6 VPS.

I have tried modifying my /etc/security/limits.conf with the following:
@mysql soft nofile 4096
@mysql hard nofile 4096
@mysql soft sigpending 4096
@mysql hard sigpending 4096

Even is a mannual set it with "ulimit -n 4096 mysql" it will not stick.

Any ideas what I can do to get this limit increased permanently?

View Replies!   View Related
SSH File Failed To Open
i can't enter to the SSH secure file transfer and show me that msg':

Failed to open a secure file transfer session
Most likely the sftp-server is not in the path of user on the server-side

View Replies!   View Related
How To Increase Open Files Limit In Apache In Cpanel
How to increase the Open Files limits descriptor in Apache. In the earlier version of Cpanel, we had an option of Raise FD Size Limit to 16384, but the option no longer appear while rebuilding Apache. What is the way to do it and make the change permanent?

View Replies!   View Related
Unable To Open Pty: No Such File Or Directory
MY VPS IS DOWN.

i have this error on concole on hypervm

enter into CT 1820 failed

Unable to open pty: No such file or directory

View Replies!   View Related
None:0: Open: /etc/named.conf: File Not Found
none:0: open: /etc/named.conf: file not found

i had install cpanel on Cent Os 5 on a VPS
Cpanel Correctly Running but named does not working !
i try to restart named but it say :
root@server [/etc]# service named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
none:0: open: /etc/named.conf: file not found
[FAILED]

View Replies!   View Related
Unable To Open Pty: No Such File Or Directory
I have following error when try to login in my vps, how can resolve this issue?

Code:

Last login: Thu Jun 19 21:00:43 2008 from xxx.xxx.xxx.xxx

ALERT! You are entering a secured area! Your IP and login information
have been recorded. System administration has been notified.
This system is restricted to authorized access only. All activities on
this system are recorded and logged. Unauthorized access will be fully
investigated and reported to the appropriate law enforcement agencies.

enter into VE 270 failed

Unable to open pty: No such file or directory.

View Replies!   View Related
AntiSpam & AntiVirus Open Source For Linux?
What open source in linux do you know for anti-spam & anti-virus? Is there existed a benchmark?

View Replies!   View Related
RSYNC / Windows 2003 & Vista / Open Files
Does anybody know how I can force RSYNC to backup open files on Windows 2003 Standard and Vista Ultimate?

View Replies!   View Related
Linux Command
on linux how can i delete files older than the current month (that is leave only this month's files) from one subdir and recurse every directory?

View Replies!   View Related
Torrentflux B4rt Script :: Pipe Error: Too Many Open Files In System
i have Made a VPs on my Own dedicated Server Which i use to run TorrentFlux for Personal Use.
I am facing a few problems and dont know where to askf or help.

when i start more than about 12, i get errors in SSh (if i llogin) or th4e Apache Restarts killing all the Transfers.

I ahve 2 Gb Ram, Dual Core CPU.

the Error Via SSh is:
sh: pipe error: Too many open files in system

and i ahve attached a Errors Log From Apache.

i am a Noob in Servers so i ahve Lxadmin Contorl Panel Installed and the Log is generated by it.

View Replies!   View Related
About TOP Command - Linux
is there a way to look which process/user used the most cpu in last 30min or in last hour.

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
File Details Command
How do you get the file size/details of a file through ssh?

View Replies!   View Related
SSH Command To Record Name Of Files That Contain Certain Text
I have had multiple websites hacked and need to do a cleanup. I need to run a command that will log all files (including path to that file) that contain <!-- ~ --> to a text file from the /home/* directory.

So far I have recieved 2 different ways to do it but none of them have worked

View Replies!   View Related
BackupPC Restoring Files Without GUI Or Command Line
I got our server staff to install BackupPC on our dedicated server and run daily backups. All is well (from what I can tell) but i've come to a point where I want to actually use an archived file.

So I jump into my ftp client, navigate to the backup folder, and download the file. The problem is, the file reads as jibberish. I'm assuming that BackupPC has compressed it.

So the question is two-fold:
1. How do I decompress it on windows (command line stuff is well beyond me)

2. Is there any browser/windows apps that I can use to manage the backups?

View Replies!   View Related
SSH Unzip Command Changes Files To Lower Case
I have a small issue that's probably easy to answer. If I upload a zip file to a Linux server, and run this command via SSH:

Code:

unzip -a name_of_zip.zip

Although it does unzip the directories as expected, it makes all file names and folders lowercase. This is a problem when trying to install software that relies on case sensitive names.

Does anyone know what command tells the server to retain the file names and not alter them?

View Replies!   View Related
What Is Linux Command For Compressing The Contents Of A Directory?
What is Linux command for compressing all the files under a Directory, as
well as all the files in sub-directories under that directory, so that upon
uncompression the files are created in the right directory and sub-directory.

Also of course what is the command to un-compress this compressed file?

In case: the Linux OS here is Redhat Enterprise and the web server is Apache.

View Replies!   View Related
Executing A Linux Command Via Text Message
how I might be able to execute a Linux command by sending a text message to some email address? Where if that email address gets a message (either any message, or perhaps only messages containing some password), a Linux command is executed, e.g.

named -u named
Perhaps via bash script.

View Replies!   View Related
Auto Complete Feature For Linux Command
I am wondering is there any software could offer auto complete feature for linux command? most linux need enter lots of parameters, if there is such a tool, that could be cool & great.

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
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 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
How To Change Permission Of These Files
cache/:

files/:

store/:

I am installing phpBB, it needs to modify those file in order to work. How can i find those files in my host directories and how to modify or change permission ?

View Replies!   View Related
Change Multiple Files
im sure ive asked this before but i cant seem to find my old post via search. i have just moved to a new server and i need to change the ip addresses in my dns on the new server (have copied the zones from old one ) to replace my old servers ip with my new servers so that when i change my nameservers the newserver handles serving the site.

View Replies!   View Related
How To Set Up Exim On Linux Server To Not Allow More Than One Recipient Per Command
how to set up exim on a bare linux server to not allow more than one recipient per command?

I don't want to allow, for example, mail lists.

Example of exim command
2008-11-19 20:14:11 [2135] cwd=/path/to/account 3 args: /usr/sbin/sendmail -t -i
2008-11-19 20:14:11 [2135] 3L5JXP-0001bH-MF <= apache@server.com U=apache P=local S=1091 T="Bla bla" from <apache@server.com> for mail1@ee.com mail2@dd.com mail3@dfffg.com ETC ETC ETC

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
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
Linux Proc Command & Which HDD On Server Scsi Or Sata
1) what is the command to find out what processor is installed on the server

2) how do i find out what type on hdd i have sata or scsi?

whats the ssh command to find these two things out?

View Replies!   View Related
PHP File Change String
I currently have this code in my Image Upload script which changes the file name into sets of numbers and letters

Quote:

$new_file_name = "uploads/" . md5($_FILES['selector']['name'] . time()) . "." . $extension;

How can i make it so its smaller than an md5, about 6 or 7 numbers and letters.

View Replies!   View Related
Unable To Change The File Attribute
I am not able to change the attribute of a file using the command chattr. Please see the output below.

root@server [~]# lsattr /etc/exim.conf
----ia------- /etc/exim.conf
root@server [~]# chattr -ai /etc/exim.conf
root@server [~]# lsattr /etc/exim.conf
----ia------- /etc/exim.conf

In fact, I can change the attributes for all the other files.

I noticed that attribute of /etc is I

root@server [~]# lsattr -d /etc
----------I-- /etc

View Replies!   View Related
How To Change Php Files Permissions In Directory And Subdirectory At Once
How to Change php files permissions in directory and subdirectory at once ?

I want to change the permissions of php permissions to be 644 in /home/user/public_html/forum and all forum subdirectory using SSH.

View Replies!   View Related
Microsoft DNS Change Of IPs Of Zone Files
One of my clients is using Microsoft DNS, he needs to change email server which has a different set of IPs. Is there any command or program that can allow him to change all the zone files at one time? Find and replace the IPs?

View Replies!   View Related
Trying To Change PHP Config On Linux Server
after a number of hours I finally got myself an SSH connection to my Linux server. I created an account with bin/bash access, whatever that is, and got in. Phew, this is all new to me!

I can get to the ./configure prompt and all looks well when I type command --enable-magic-quotes but I refresh my phpinfo() and nothing has changed.

All I want to do is install Joomla!

My Joomla! installation tells me to action following: Set PHP magic_quotes_gpc setting to ON
Set RG_EMULATION setting to `ON` instead of `OFF` in file globals.php
Display Errors should be on
Register Globals Emulation should be off instead of on


It's also telling me that the var/lib/php/session is unwriteable. Do I need to get shell access and command to do that too?

View Replies!   View Related
Do VPS Or Dedicated Allow Change File System
well i am running into the problem of hitting 30k subdir limit. so i need to change to a file system that supports something much bigger.

question is, do hosts allow this ?

View Replies!   View Related
How To Change Permissions Of A Read Only File System
I have a dedicated server and till few days back i was able to edit my files fine but this morning when i am trying to edit any file, it gives me back this error:

[user@domainname theme]$ chmod 777 header.php
chmod: changing permissions of `header.php': Read-only file system
[user@domainname theme]$

[root@domainname theme]$ chmod 777 directoryy
chmod: changing permissions of `directoryy': Read-only file system
[root@domainname theme]$

I tried both as normal user and root and same results. Do you think the hosting guys changed the permissions of the file system or something?

View Replies!   View Related
Virtual Private Server (VPS) Unlimited Number Of Website With Unlimited Number Of Domains?
I'm new to Private Virtual Server and the package offered by different company are quite confusing.

I was on RackForce and their basis VPS package dds200-L can host 100 domain names on Plesk and unlimited domain names on WHM/Cpanel.

On 1and1 it didn't say if Plesk support 100 or unlimited domain names. My question is, do we always have the liberty to host unlimited domain names on our PVS?

Can anyone recommend a good VPS hosting company?

View Replies!   View Related
What Settings Are Really Necessary In Linux 'ifcfg' Files
my servers and they have a minimal list of settings in the ifcfg file. I am using centOS so it is ifcfg-eth0 and ifcfg-eth1.

Anyway, here's one of them from a REL3 server.

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=xxx.xxx.xxx.xxx
NETMASK=255.255.255.240
GATEWAY=xxx.xxx.xxx.xxx

And the one I just saw when I did a fresh install of CentOS 4.4.

DEVICE=eth0
BOOTPROTO=static
BROADCAST=xxx.xxx.xxx.xxx
HWADDR=xx:xx:xx:xx:xx:xx
IPADDR=xxx.xxx.xxx.xxx
NETMASK=255.255.255.240
NETWORK=xxx.xxx.xxx.xxx
ONBOOT=yes
TYPE=Ethernet

So since I'm trying to learn what I'm doing here, what lines are actually needed and why does one setup have extra settings?

View Replies!   View Related
Domlog File And Rawlog Files Are Same
Does domlog file and raw access files are same? I mean do the contains same contents?

View Replies!   View Related
How To Rename A File In Linux
I have a list of files in a folder like this:

/home/files/[url]

And I need to rename them to this format:

awstats092008.[url]

I've played around with sed, rename, and a bunch of others.. but I just can't figure this out.

server is CentOS 5.2

View Replies!   View Related
How To Show Matching Files In Lower Or UPPERcase With "ls" Command
I need to show a listing of all files in a directory that match a certain string, with *either* upper or lower case.

So if the contents of the directory are:

FILE1.txt
file1.txt

And then I do an "ls *file*"... I need both files to be in the results.

how can I do this? I couldn't find an "ignore case" switch when doing a "man ls".

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