Articles in the Linux Category
Bookmarks, Linux, Wordpress »
When you try to clean your “Database cache” (dbcache folder) get this error ?
500 Internal Server Error
Then, this “hack” will solve the “500 Internal Server Error” when you try to clean cache and will solve another issue with “Garbage collection”. The problem occurs mainly at sites with high traffic, tens of thousands of visits per day. If the execution time of a php scrip is too small (under 60s), plugin will never finish the “Garbage collection” job and the number of files and folders will grow day by day.
You try …
Bookmarks, Linux »
How to specify a range of IP addresses or ports for linux firewall via iptables:
ip range – iptables configuration syntax:
-m iprange –src-range IPA-IPB -j ACTION
-m iprange –dst-range IPA-IPB -j ACTION
For example, allow incoming request on a port 411 for source IP in the 192.168.0.1-192.168.0.254 range, you need to add next acl/rules in iptables:
-A INPUT -p tcp –dport 411 -m iprange –src-range 192.168.0.1-192.168.0.254 -j ACCEPT
port range – iptables configuration syntax:
–sport porta:portb (if -p tcp is specified)
–dport porta:portb
Example (block all incoming ssh and ftp for source port range 513:65535) :
-A INPUT …
Bookmarks, Hosting, Linux, pHp »
If you want to transfer a lot of information, and server or hosting has some limitations, the best solution is here: PhP-ZiP MultiVolume Script.
Step 1:
1. Download This Script
Mirror 1 – phpzip-multivol.zip
Mirror 2 - phpzip-multivol.zip
Local File – phpzip-multivol.zip
2. Upload script on old host/server
3. Load script “phpzip-multivol.php” in browser
4. Configure script with desired values
5. Starts script and waits until it reaches the final job (parsing data)
Step 2:
1. You just need to run shell scripts from the command line (in old server for archive) ex: ./backup-2010-04-24_zip.sh
2. Copy all archives on the new …
Bookmarks, Linux »
Seems rm linux command has limits (kernel limitation on the size of the parameters of the command)
If you try to delete too many files in a directory at the same time and receive an error message like this:
Argument list too long
must use the following command to delete files:
find /home/mydir/ -name ‘*.ext’ -print0 | xargs -0 rm -f
or this (delete all files from folder):
find /some/path/ -type f -exec rm -f ‘{}’ \;
where:
-f, –force = ignore nonexistent files, never prompt
(WARNING: be careful with this command, you can erase wrong folder/files)
xargs = parameter …
Bookmarks, Hosting, Linux »
http://www.bshellz.net/
Hardware: dual core athlon64, 2GB, 0.8TB; Operating system: debian-grsec; Quota: 50MB; Internet connection: 100Mb
Services/programs: PHP, Perl, cgi-bin, irssi, screen, bitchx, SILC, lftp, IMAP, nethack, gcc/make/etc… any community requested…
IRC access: yes; Background processes allowed: limited
Other info: Users with free account (i.e haven’t donated) must visit our IRC channel at least once every 168 hours. (1 Week) and Say in channel !keep .
http://hamish.awardspace.com/
Hardware: Pentium(r) 4 CPU 3Ghz; Operating system: Linux Debian Sarge; Quota: 5mb (can be increased within reason)
Services/programs: Apache, psyBNC, eggdrop, perl, python, sqmail… You can install any programs you wish, …
Bookmarks, Linux, MySQL »
Linux command to auto repair, check & optimize all the tables in all databases from mysql server: (v3.23.38 and later)
mysqlcheck -u {user} -p{passwd} –auto-repair –check –optimize –all-databases
or the shorter version
mysqlcheck -u {user} -p{passwd} -Aor
where:
{user} – user full access to the database ( can be root )
{passwd} – password for {user} acount
mysqlcheck can not repair read-only tables.
[ Short URL ... ]
Bookmarks, Linux, Windows »
List with best Virtual PC Software :
VMware
VMware provides virtual machines for x86 that can run unmodified PC operating systems. The technology involved in doing this is complex and also incurs (sometimes significant) performance overheads with hosted VMware products (VM Server and Workstation).
Xen
Xen Virtualization system whose motivation differs from that of Denali in that it is intended to run a moderate number of full-featured operating systems, rather than a large number of specialised, lightweight ones (Denali\’s virtual machines support specialised minimal OSs for Internet services.
Virtual PC
Virtual PC is a powerful software …
Bookmarks, Linux »
7Zip – high compression ratio file archiver:
Website: http://p7zip.sourceforge.net/
License: LGPL
Group: Applications/Archiving
p7zip RPM packages for Red Hat, CentOS and Fedora
http://dag.wieers.com/rpm/packages/p7zip/
Very high compression ratio file archiver. p7zip is a port of 7za.exe for Unix. 7-Zip is a file archiver with a very high compression ratio.
Your 7-Zip download
http://sourceforge.net/projects/sevenzip/files/7-Zip/
Sourceforge / OpenSource Download Center - 7-Zip download direct link and mirrors.
7-Zip Command-Line Examples
http://dotnetperls.com/7-zip-examples
You have 7za.exe and you want to compress, extract, and update files. The 7-Zip compression utility provides superior compression and is open-source, making it easy to obtain and use. Review this document …
