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:
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
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
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^@^@^@^�¡^D^H4^@^@^@ u^C^@^@^@^@^@4^@ ^@^H^@(^@^[^@^Z^@^F^@^@^@4^@^@^@4^�^D^H4^�^D^H^$^@^@^@^ط^@^@^@^Û^@^@^@c^@^@^@C^@^@^@^@^@^@^@^@^@^@^@^A^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@$^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^E^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^^@^@^@ ^@^@$^@^@^@Pا^G^H^@^@^@^@^Q^@ø�^É^D^@^@^@^@^@^@Æ^@^@^@^R^@^@^@^È^E^@^@^@^@^@^@v^@^@^@^R^@^@^@Û^A^@^@^@^@^@^@&^@^@^@^R^@^@^@^O^E^@$^@I^F^@^@^@^@^@^@<^@^@^@^R^@^@^@^A^E^@^@^@^@^@^@~^A^@^@^R^@^@^@ص^G^@^@^@^@^@^@1^@^@^@^R^@^@^@ñ^@^@^@^@^@^@^@ð^C^@^@^R^@^@^@r$^@^@^@^R^@^@^@A^G^@^@^@^@^@^@M^@^@^@^R^@^@^@^ص^D^@^@^@^@^@^@E^@^@^@^R^@^@^@�^D^@^@^@^@^@^@=^A^@^@^R^@^@^@Ç^@^@^@^@^@^@^@J^@^$^@ش^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
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
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
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
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
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
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
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
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
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
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
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
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
|