Archive for 'Linux'
Mirror websites with lftp
Posted on 19. May, 2010 by config.
There are lots of methods to mirror websites, you could use tons of Gui tools or just use Curl, wget or httrack. But as usual with linux there is a simpler and/or "better" method - lftp. It works great for mirroring Apache directory listings.
Continue Reading
Plesk for Linux – Fixing .htaccess pcfg_openfile error – permission fix
Posted on 09. Aug, 2009 by config.
Problem with directory / files permissions after installing some software on your Plesk Linux server ( Nagios for example known to cause this in certain scenarios ). From /var/www/vhosts/domain.com/statistics/logs/error_log : [critical] [client 192.168.0.13] (13)Permission denied: /var/www/vhosts/domain.com/httpdocs/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable You will see Forbidden Error in your browser. If you check the mentioned location you [...]
Continue Reading
Plesk for Linux – Disabling mod_security rules for specific directory
Posted on 08. Aug, 2009 by config.
If you are working with Plesk Control Panel ( Linux version ) and mod security – you probably encountered some problems with specific scripts. Sometimes mod security block certain functions of the script because it thinks it is malicious code. For example this warning taken from Apache log: Warning. Match of "rx ^apache.*perl" against "REQUEST_HEADERS:User-Agent" required. [file [...]
Continue Reading
Grub2, problem booting after kernel update
Posted on 05. Aug, 2009 by config.
If you are using grub2 ( arch linux or ubuntu 9.10 karmic koala ) you might notice some problems after kernel updates. Symptoms – System won’t boot and you will get error similar to this: Error – you need to load the linux kernel first. Quick solution would be to boot from Arch / Ubuntu CD and go [...]
Continue Reading
Ubuntu 9.10 Karmic Koala Alpha – Ctrl+c in ssh terminal
Posted on 04. Aug, 2009 by config.
Seems like Ubuntu dev folks decided to change some functionality of the Ctrl-c shortcut so now it is copy function instead of break. Anyway there is a bug open here: https://bugs.launchpad.net/ubuntu/+bug/402973 My install is ( lsb_release -a ): Description: Ubuntu karmic (development branch) Release: 9.10 uname -a ( date and time stripped ) Linux psy-srv 2.6.31-3-generic-pae #19-Ubuntu SMP i686 GNU/Linux Its Alpha [...]
Continue Reading
How to open CLI to VMware ESXi. How to Clone Virtual Machines.
Posted on 02. Aug, 2009 by config.
ESXi Commands You can access the CLI by switching to terminal 1 using Alt-F1. Now type “unsupported”, This is not echoed so you won’t see anything. If you get it right, you will get a prompt asking for the root pasword. ( This might not work in ESXi 4.0 as VMWare is trying to limit ESXi for their [...]
Continue Reading
How to find biggest files in directory.
Posted on 01. Aug, 2009 by config.
Something you probably have to do now and then is to find the biggest files in directory to delete / destroy / eliminate or explode the damn space wasters. Here is one of the ways to find it: ls -lSrh The “r” switch will cause all the large files to be listed at the end and the [...]
