By admin, on September 4th, 2010%
We know that WordPress is most famous blog in the world, and the default link for WordPress is using /archives and /category.
But this make problems to those sites that are not using WordPress, like my site is using Phpwind.
Most of the search engine in the world will search for example.com/archives/… example.com/category/… . . . → Read More: Problem with index.php/archives and index.php/category
By admin, on September 3rd, 2010%
grep -lir “text you want to find” * You could put it as background if it is longer time search
grep -lir “text you want to find” * > searchresult.txt &
example.
I want to search ‘archives/simple’ in my ‘data’ directory cd ./data/ grep -lir “archives/simple” * > searchresult.txt &
After done, . . . → Read More: Find files containing text in Linux
By admin, on September 2nd, 2010%
InnoDB Supports transactions, row-level locking, and foreign keys MyISAM Default engine as of MySQL 3.23 with great performance
I’m running phpwind with huge requests. I meet the problem is every time my database will be freeze and lockup. I’ve been traced for few days, I found that the tables pw_datastore and pw_threads always . . . → Read More: [Solved]Locked table in MySQL
By admin, on August 31st, 2010%
My server eat up of high CPU resource. I’ve figure out by using
[root@server ~]# /usr/bin/watch -n 5 ‘mysqladmin proc stat’
and found out that these results.
| 214024 | phpwind | localhost | phpwind | Query | 318 | Copying to tmp table | SELECT pt.tid,pt.fid,pt.subject,pa.attachurl FROM pw_threads pt ,pw_attachs pa,pw_forums pf . . . → Read More: MySQLTuner result and Tuning Primer result
By admin, on August 31st, 2010%
After you install or update the Visitor Maps plugin, you need to update the Maxmind GeoLiteCity database too. You will notice the message appear.
Visitor Maps plugin needs the Maxmind GeoLiteCity database installed. Install Now
But some of you have this problem, because the server installed mod_security, and we can’t see the actual error . . . → Read More: You don’t have permission to access /wp-admin/plugins.php?page=visitor-maps-Fvisitor-maps.php&_wpnonce=524eba1ec4&do_geo=1
By admin, on August 28th, 2010%
After you install the SI Contact Form WP plugin, you may face this error while sending the form.
There is a problem with the directory /captcha-secureimage/captcha-temp/. The directory is not found, a permissions problem may have prevented this directory from being created. Fixing the actual problem is recommended, but you can uncheck this . . . → Read More: CAPTCHA token file is missing
By admin, on August 28th, 2010%
If your server’s mysql always in high resources or down, I suggest you use this command to trace out which database that eat up your MySql resource
/usr/bin/mysqladmin proc stat /usr/bin/watch -n 5 ‘mysqladmin proc stat’
Every 5.0s: mysqladmin proc stat Sat Aug 28 02:05:06 2010
+——+———-+———–+—-+———+——+——-+——————+ | Id | . . . → Read More: How to view MySql running resources
By admin, on August 22nd, 2010%
Cannot do mass delete ? Cannot remove spam files ?
If you have too many files and with long file name. It is enable to delete using rm -rf or rm *.xx
Here is the solution for the mass delete.
find . -name ‘spam-file-*’ | xargs rm
find . -name ‘*’ | xargs . . . → Read More: -bash: /bin/rm: Argument list too long
By admin, on August 22nd, 2010%
Some people blame that their server hard disk failure or bad sector. Actually can prevent this happen. You must understand the S.M.A.R.T that provide some informations in your hard disk. If any Raw Read Error Rate data is not 0 or more than 0, I suggest you change the hard disk now to . . . → Read More: Check Linux HDD before Failure
By admin, on August 22nd, 2010%
vi /etc/shorewall/makeblacklist
Paste the code below, and save it.
#!/bin/sh
echo "#ADDRESS/SUBNET PROTOCOL PORT" > /tmp/blacklist
wget -q -O - http://feeds.dshield.org/block.txt | awk --posix '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.0\t/ { print $1 "/24";}' >> /tmp/blacklist
wget -q -O - http://www.spamhaus.org/drop/drop.lasso | awk --posix '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\// { print $1;}' >> /tmp/blacklist
echo "#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE" >> /tmp/blacklist
mv /tmp/blacklist /etc/shorewall/blacklist
shorewall refresh &>/dev/null
Continue reading Generate Shorewall blacklist from Spamhaus and DShield
Incoming search terms:
|
|
|
Recent Comments