August 2nd, 2008 — Linux, Plesk
Configuring apache for squirrelmail following this tutorial is not enough. You’ll need to configure squirrelmail too. Edit your /etc/squirrelmail/config_local.php file and paste the following configuration:
// courier-imap settings
$imap_server_type = 'courier';
$default_folder_prefix = 'INBOX.';
$trash_folder = 'Trash';
$sent_folder = 'Sent';
$draft_folder = 'Drafts';
$show_prefix_option = false;
$default_sub_of_inbox = false;
$show_contain_subfolders_option = false;
$optional_delimiter = '.';
$delete_folder = true;
$force_username_lowercase = false;
// other settings
$default_charset = 'iso-8859-1';
$lossy_encoding = false;
$sendmail_args = '-i -t';
$encode_header_key = '';
$hide_auth_header = false;
$plugins[3] = 'filters';
$abook_global_file = '';
$abook_global_file_writeable = false;
$addrbook_global_dsn = '';
$addrbook_global_table = 'global_abook';
$addrbook_global_writeable = false;
$addrbook_global_listing = false;
August 1st, 2008 — Linux
If you are working on a x86_64 system don’t even try to go with 64bit of FireFox, just install 32bit version and enjoy all FireFox’s plugins: flash, java, … don’t waste your time.
Adobe didn’t released yet a 64bit flash plugin for linux, although there exists different workarounds to make 32bit plugins to work on the x86_64 platform they are still buggy.
If you’ll try to use nspluginwrapper you’ll end up with FireFox eating 1GB of ram after you’ll open a few flash sites because it’s leaking memory.
Let’s go to install firefox with flash-plugin, firstly remove firefox x86_64 version and then install i386 version:
[root@silver ~]# yum remove firefox.x86_64
[...]
[root@silver ~]# yum install firefox.i386
[...]
Then we’ll download rpm for linux from Adobe :
http://www.adobe.com/shockwave/download/alternates/
[root@silver ~]# rpm -ivh flash-plugin-9.0.124.0-release.i386.rpm
[...]
Now, you are ready to use your favorite browser on linux x86_64 with flash player.
Update:
An alpha refresh of 64-bit Adobe Flash Player 10 for Linux operating systems was released on 12/16/2008.
Download it from here:
http://labs.adobe.com/downloads/flashplayer10.html
August 1st, 2008 — Linux
If are seeing a lots of “TCP: drop open request from A.B.C.D” messages and you don’t expect a real load the server, you’ll need to enable syncookies. Edit your /etc/sysctl.conf and append the following lines:
# enable syncookies
net.ipv4.tcp_syncookies = 1
Then restart network service.
[root@centurion ~]# /etc/init.d/network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
July 17th, 2008 — Linux, Plesk
Extracting files from a Plesk 8.3 backup it’s not an easy task and it’s time consuming.
Let’s examine backup file:
[root@monster ~]# file plesk_bigserver_2008-07-10.backup
plesk_bigserver_2008-07-10.backup: ASCII English text, with very long lines
Plesk backup is a multi-part mime-encoded file, you can easy restore one domain or whole server using plesk backup utilities, but when you need a few files from backup you’ll need an external tool like ripemime or mpack.
Requirements:
- Free disk space minimum 2*backup_file_size
- mpack tool
Check your free space using df(disk free) command.
[root@monster ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 9.2G 2.5G 6.3G 29% /
/dev/hda1 190M 15M 166M 8% /boot
none 1010M 0 1010M 0% /dev/shm
/dev/hda7 53G 17G 34G 34% /home
/dev/hda6 950M 17M 886M 2% /tmp
/dev/hda5 46G 7.2G 37G 17% /var
Let’s install mpack. On a Redhat/Fedora/CentOS system it’s easy, just subscribe to Dag Wieers’s repository. You’ll need to download rpmforge-release rpm that’s matching your server OS and architecture:
For CentOS 5 and x86_64 architecture we’ll use rpmforge-release-0.3.6-1.el5.rf.i386.rpm:
[root@monster tmp]# wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
[...]
[root@monster tmp]# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
[...]
[root@monster tmp]# yum install mpack
[...]
Let’s make a directory where we’ll extract backup files and then extract files there:
[root@monster ~]# mkdir recover
[root@monster ~]# cd recover
[root@monster ~]# munpack < ../plesk_bigserver_2008-07-15.backup
[...]
Mpack will extract files into separate tar archives where you can locate the domain by archive name and extract files using tar command.