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 Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
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
Zip From Command Line
Im trying to zip up an sqlite database backup. I execute this command Code: zip ../d/db/backup.zip ../d/db/09-02-15.sqlite backup.zip never appears. Instead, I get some random filename in the directory. Like ziOHokOw If I try to zip a smaller file(last weeks backup) everything runs fine? Code: zip ../d/db/backup.zip ../d/db/09-02-08.sqlite So the 134mb file zips fine, but the 200mb one seems like its failing and im left with some type of temporary file. I tried downloading the weird filename and unzipping it. It has partial info like directory structure, the filename but the actual file inside is corrupt.
View Replies!
View Related
Ip Adjustment Via Command Line
Got a centos / cpanel box. Had to change the block of IP's with an entirely new block of 8. Problem is I cannot access cpanel/whm due to this, but only via ssh. If I run the below, it shows the old IP's /etc/init.d/ipaliases start How do I replace the old block with the new? I've never done it via command line before.
View Replies!
View Related
Command Line On Shared Hosting
I have been looking around for a new shared host, I am currently with GoDaddy =( And it would be helpful to have command line access for some things I am trying to do. Particularly with Zend Gdata API (which GoDaddy has trouble with anyway) Is this reasonable to ask for? I also need at least 150GB/month bandwidth for some relatively high quality streaming video.
View Replies!
View Related
Website Backup Over Command Line
We have a dedicated server, with chroot access enabled. We are wanting to backup each site on this server, as well as all mysql dbs on a weekly basis. Is it possible for us to run a cron job to do this? If so, what commands would we want to use? We have a local FTP server here, so would like to ftp these backups this machine. I know it all sounds a little vague, but I just need to know where to get started.
View Replies!
View Related
How To Detect Raid Harddisk Specs From Command Line
how can i remotly( SSH) figure out what kind of raid controller is on my system?! and how many harddisks my system has and what size?! I am working on Linux( Centos4) if i do #df -h then i get 146 G so if my system has raid1, does it mean that the harddisk is 2 X 146 G? or i should actually see it as 146 / 2?
View Replies!
View Related
Live Traffic View By VPS (or IP) Via Command Line
Back in the day, there was a commandline version of 'ntop' allowing a view of live traffic stats in the format of 'top'. Does a similar tool exist today effectively allowing us to figure our which VPS or IP address is under DDoS attack? The only way I could fix this was via KVM access to netstat -an | grep etc... Not too
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
Granting MySQL Command Line Permissions To A User
Is there any safe way to grant command line permissions to a user/specific account? One that only allows them access to databases on their account. The problem is that this user intermittently runs queries that cause their database to hang (including PHPMyAdmin, so they can't view the processlist through there), and I have to manually kill that process, because they can't. Server is 2.4.21 with MySQL 4.0.27, admin is cPanel WHM.
View Replies!
View Related
Clear A Specific Email Account In Cpanel Or A Command Line Way
I just recently logged into my user email account "the one which was created by the name of the user of the account" and found it had 8000 emails but none are showing up in either horde or squirrelmail. How can i delete all these emails without deleting the other bla@domain.com emails? Is there a way just to clear a specific email account in cpanel or a command line way. I think if i just delete the mail folder it would kill all the emails of that account and I just want to 'reset' that one.
View Replies!
View Related
Where Do I Find The Shell Command Feature
i am trying hard to understand how everything works, i just finished installing my CentOS 5.2 OS and need to install + Apache + MySQL + PHP/Perl. Also i downloaded the apache file and tried to insatll it but it has to be done by giving a command via Bash shell for wht i understood, so i downloaded bash shell file. How and where do i enter the commands for installing these applications?
View Replies!
View Related
Server Refused To Start Shell/command
I am having some server issues. A part of my sshd_config: Port 2255 Protocol 2 ListenAddress 8x.xx.xx.46 PermitRootLogin no Recently, when I want to connect to my server using putty, I get "Connection Refused" using the above IP address and port. When I enter the above IP address (or any other IP address that is stored/set on the server) and port 22, I get "Server refused to start shell/command". It did work before, using 8x.xx.xx.46:2255 and when I enter 8x.xx.xx.46:22 it will block. But now... not anymore. I am using "Direct Admin" to do a "System Backup". I do see the right port and IP address in the sshd_config file. How can I fix this? I can not login the server anymore, however I am going to the datacenter tomorrow. OS: CentOS Installed firewall / protection: APF + BFD Control Panel: Direct Admin
View Replies!
View Related
Strip Whitespace From Each Line Of PHP File
I have a load of PHP files that need trimming down, so for example Code: <html> <?php $loads_of_stuff = 1231231; ?> </html> change to Code: <html> <?php $loads_of_stuff = 1231231; ?> </html> There are 000's of lines, so some awk command or something similiar would be great to execute on each file.
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
How To Make Shell Cant Show File
i setup mod_security and disable this function system,passthru,exec,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec, highlight_file,pclose,pfsockopen,chmod,debugger_off,debugger_on,leak,ftp_exec,posix_uname,getmyuid,g etmygid,posix_kill,posix_mkfifo,chgrp,listen,define_syslog_variables,posix_getpwuid,get_current_user ,apache_child_terminate,posix_setpgid,posix_setsid,posix_setuid,getservbyport,getservbyname,myshelle xec,escapeshellarg and now i have good security but i want ask hhow to make shell dosent show any files and also want know how i can change the error pages design like 400 410 for all my servers
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
./chkrootkit.sh: Line 2: Cd: /downloads/chkrootkit-0.48/: No Such File Or Directory
I just try install but as title I have this error ./chkrootkit.sh: line 2: cd: /downloads/chkrootkit-0.48/: No such file or directory ./chkrootkit.sh: line 3: ./chkrootkit: No such file or directory I’m edite pico /etc/cron.daily/chkrootkit.sh and set it to #!/bin/bash cd /downloads/chkrootkit-0.48/ ./chkrootkit | mail -s "Daily chkrootkit from Servername" ****@****.com then I try make test by cd /etc/cron.daily/ ./chkrootkit.sh and it give me this error ./chkrootkit.sh: line 2: cd: /downloads/chkrootkit-0.48/: No such file or directory . ./chkrootkit.sh: line 3: ./chkrootkit: No such file or directory
View Replies!
View Related
DNS Issues Rndc.conf & Named.conf
It started with this error: Bind reloading on server01 using rndc zone: [ns1.mydomain.net] Error reloading bind on server01: rndc: connect failed: 127.0.0.1#953: connection refused so i did the obvious checked the csf firewall to see if port 953 was enabled and it was so i took a look at rndc.conf Code: root@server01 [~]# nano /etc/rndc.conf #start of rndc.conf key "rndc-key" { algorithm hmac-md5; secret "KLGSBmWZrev0I4fR4Tm4GXxdcYSTFzF23b1f9is1M="; }; options { default-key "rndc-key"; default-server 127.0.0.1; default-port 953; }; # End of rndc.conf # Use with the following in named.conf, adjusting the allow list as needed: #key "rndc-key" { # algorithm hmac-md5; # secret "KLGSBmWZrev0I4fR4Tm4GXxdcYSTFzF23b1f9is1M="; #}; # # controls { # inet 127.0.0.1 port 953 # allow { 127.0.0.1; } keys { "rndc-key"; }; # }; # End of named.conf Then i took a look at named.conf Code: options { /* make named use port 53 for the source of all queries, to allow * firewalls to block all ports except 53: */ //query-source port 53; /* We no longer enable this by default as the dns posion exploit has forced many providers to open up their firewalls a bit */ // Put files that named is allowed to write in the data/ directory: directory "/var/named"; // the default pid-file "/var/run/named/named.pid"; dump-file "data/cache_dump.db"; statistics-file "data/named_stats.txt"; /* memstatistics-file "data/named_mem_stats.txt"; */ }; logging { /* If you want to enable debugging, eg. using the 'rndc trace' command, * named will try to write the 'named.run' file in the $directory (/var/named"). * By default, SELinux policy does not allow named to modify the /var/named" directory, * so put the default debug log file in data/ : */ channel default_debug { file "data/named.run"; severity dynamic; }; }; // All BIND 9 zones are in a "view", which allow different zones to be served // to different types of client addresses, and for options to be set for groups // of zones. // // By default, if named.conf contains no "view" clauses, all zones are in the // "default" view, which matches all clients. // // If named.conf contains any "view" clause, then all zones MUST be in a view; // so it is recommended to start off using views to avoid having to restructure // your configuration files in the future. view "localhost_resolver" { /* This view sets up named to be a localhost resolver ( caching only nameserver ). * If all you want is a caching-only nameserver, then you need only define this view: */ match-clients { 127.0.0.0/24; }; match-destinations { localhost; }; recursion yes; zone "." IN { type hint; file "/var/named/named.ca"; }; /* these are zones that contain definitions for all the localhost * names and addresses, as recommended in RFC1912 - these names should * ONLY be served to localhost clients: */ include "/var/named/named.rfc1912.zones"; };
View Replies!
View Related
Modify MaxClients
i want to larger the "MaxClients", i add the MaxClients 1000 in the httpd/conf/httpd.conf and restart the httpd but it looks likely not work at all, what should i do else? my apache is version 2
View Replies!
View Related
Modify /tmp Size
Used chirpy's method /etc/init.d/chkservd stop /etc/init.d/mysql stop umount /var/tmp umount /tmp replace "256000" "512000" -- /scripts/securetmp rm /usr/tmpDSK /scripts/securetmp --auto cd /tmp ln -s /var/lib/mysql/mysql.sock /etc/init.d/mysql start /etc/init.d/chkservd start df Problem [root@host ~]# umount /tmp umount: /tmp: device is busy umount: /tmp: device is busy [root@cmee34 ~]# lsof | grep /tmp sshd 6650 root 9u unix 0xf57fe300 24988 /tmp/ssh-SDVLUi6650/agent.6650 If I killall -9 sshd, I got obviously logged out of ssh. I need to make /tmp 1GB instead of the current 500MB it is now.
View Replies!
View Related
Cannot Modify Bash Profile
Code: -rw-r--r-- 1 root root 975 Dec 22 2006 .bash_profile root@server [~]# rm -f .bash_profile rm: cannot remove `.bash_profile': Operation not permitted root@server [~]# chmod +t .bash_profile chmod: changing permissions of `.bash_profile': Operation not permitted I simply wanted to modify something within the file but I keep getting permission errors. I'm logged in as root.
View Replies!
View Related
# Of Apache Requests - Modify
I have a dedicated box with softlayer and I have noticed at varying times the past few months that with sites we host, sometimes the connection times out (I'll try to access like 5 or 6 sites within 30 seconds or so and they all drop, then a minute later they load fine). I opened a support ticket and they said it usually has to do with the # of requests Apache can handle, and that this can be modified. They stated they could: "tweak the apache configuration file in this server that can make it possible to handle more requests." So my question is what should the # of requests be set to? (I'm not sure what it is now, but I assume whatever the default # is).
View Replies!
View Related
CPanel: Modify Or Create An Account
I've just run upon a problem while trying to go into my phpMyadmin from within my MySQL Databases icon. When I try to log into phpMyadmin I get this message: Quote: "This feature is not available while logged in with root override. You are logged in with the root, or reseller's password. Please login with this user's account password." Also, as soon as I log into cPanel I receive a red "Warning: You are logged in using the reseller or root password." Yes, I am logging into the only account I have. When logging in with the initial account I created I can view the MySQL dbs that I have created, but I don't have access to phpMyadmin - I get that error message. This is new because for the last two weeks - about as long as I've had this server - I have had no problem even signing in with the same user id and password. Suddenly it won't let me in. So what do I need to do? I created a new account, but I can't see my MySQL dbs with that new account. I don't know how to modify my one existing account so that I can access phpMyadmin. Any thoughts? I hope I've been clear.
View Replies!
View Related
How To Modify Cpanel Default Page When Domain Is Pointing To Server
When a domain name is pointing to our server and the account is not setup yet, there's a default page that says:" Quote: Great Success! Apache is working on your cPanel® and WHM™ Server If you can see this page, then the people who manage this server have installed cPanel and WebHost Manager (WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl) successfully. They now have to add content to this directory and replace this placeholder page, or else point the server at their real content. How can I modify that page ONLY for ROOT accounts and not my resellers?
View Replies!
View Related
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
1Gbps Dedicated Line What Does That Mean?
I do not understand what network: 5 mbps and the traffic 1Gbps mean ========= CPU Intel Core2-Duo E4500 2.2GHz-FSB 800MHz -L2 2MB RAM DDR2 PC2-5300 (667Mhz) 2GB HDD SATA2 250GB (7,200rpm) LANcard Intel PRO/1000 PF Server Adapter Rack Type 1U (4.5cm) Network: 5Mbps Traffic 1Gbps Dedicated Line =======
View Replies!
View Related
Security Question Regarding T1 Line ..
This is our setup: We have two locations about 120 miles apart. We have direct connection with a T1 line. My question: How much safer is our data passing through the same T1 everyone else is using. Most people sending data through the same T1 line are using ISP, so are safer by not using an ISP? .........
View Replies!
View Related
Linux Get Last Line Of Output
What command could I use to get the last line of an output? Heres why... I use this command: netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1 I would like to get just the last line of the output, the output looks like this: 1 203.118.105.* 1 80.195.165.* 1 87.211.51.* 1 91.40.90.* 8 82.2.222.* 213 The reason is because I'd like to get that last figure to place into a file on a certain time period (through a cron), which will then be graphed with PHP.
View Replies!
View Related
Trixbox Server Line
if anybody in the community looks for trixbox as the os to be installed on a dedicated server. I am looking for a new line of servers to provide and i am thinking that Trixbox could be one of them.
View Replies!
View Related
If There's 2 Ethernet Line, How Will The Traffic Be Like
I've a rack in the datacentre, and actually sharing the ethernet line with another partner's rack. Something like: Bandwidth -> Switch 1 -> Switch 2 (partner's rack) Bandwidth -> Switch 1 -> Switch 3 (my rack) After a previous uplinks issue, i'm never able to hit above 4Mbps of download speed to my home's cable broadband anymore. I have no idea whether it's because my partner capped my bandwidth from Switch 1, or his usage has increased such that it's affecting my traffic too. I can't be too concerned about it with him, as he's paying the bulk of the bandwidth costs. For the whole rack, i'm not able to hit above 5Mbps accumulatively, and my normal bandwidth usage is only about 1-2Mbps. So i'm thinking of getting another line for bandwidth directly from the datacentre to my Switch 3, perhaps starting from just 1-2Mbps only. How will things improve? Just a silly thought, whether my total available bandwidth can now be 5Mbps + 2Mbps = 7Mbps.
View Replies!
View Related
|