Humans are called social animals. An eye for an eye? Then he’s just a caveman.



Socially, he died.
However, as an animal, he lives.

|
Humans are called social animals. An eye for an eye? Then he’s just a caveman.
Socially, he died.
17
02
2008
Compiling PHP5 and eAccelerator for Litespeed on Dreamhost PSPosted by: hl in survivalgamesThe standard PHP4 installation that comes with Litespeed may be missing important libraries that you require for your PHP applications. Also, the bundled APC accelerator is not always enabled. Chances are that you will want to compile PHP5 and eAccelerator yourself for maximum compatibility and performance. Luckily, Litespeed has a built-in PHP compiler that simplifies this process. First, make sure that your Dreamhost PS is temporarily set to at least 600MHz/600MB. Compiling is a CPU intensive task, and without sufficient CPU power, it will take far too long. Next, connect to your shell account via SSH. Download, extract, and compile autoconf and automake: After the compile is complete and eaccelerator.so is in your /home/username/ folder, change the Command setting in Server/External App/phpLsapi from $SERVER_ROOT/fcgi-bin/lsphp to $SERVER_ROOT/fcgi-bin/lsphp5 Make a directory /home/username/tmp/eaccelerator and chmod those directories 777. Keep the shm_size as large as your memory will allow. Dreamhost’s NFS file mounts are slow, and we want to avoid putting cache files there. Using /tmp as the cache_dir is faster and allows a smaller shm_size to be used, but it has a capacity of only 128MB, and the server will crash if that directory runs out of space. Now perform a graceful restart of Litespeed. That’s it! To check if everything is running as it should, create and browse to a file called phpinfo.php with these lines of code: With the installation of PHP5 and eAccelerator, most of our speed optimizations for Litespeed are complete. Next time: final tuning of Litespeed and Dreamhost settings for lowest cost and highest stability.
12
02
2008
Optimizing Dreamhost PS CPU and Memory Usage by Installing Litespeed Web ServerPosted by: hl in survivalgamesEdit: Dreamhost PS has a new “Lighttpd” server configuration that reduces CPU and memory usage. However, it is not compatible with .htaccess URL rewrites which are used by many PHP scripts. Even so, this configuration can be used as a base for the Litespeed install to reduce memory usage past the Apache-as-proxy configuration. 1. Change to lighttpd in https://panel.dreamhost.com/?tree=vserver.settings 2. Edit the lighttpd configuration file in /home/username/lighttpd with 3. Restart the VPS to unbind lighttpd from port 80 4. Install litespeed as below, ignoring the proxy step. Dreamhost PS can act as a very cost effective VPS setup if you are able to configure it correctly. For $15.00 a month on top of the generous Dreamhost shared hosting plan, you can move off of the horrendously loaded shared webservers and onto a virtual private server with 150 MB RAM, 150 MB swap memory, and 150 MHz of dedicated CPU. Dreamhost’s MySQL database servers are still shared with others, but they are decent enough for most sites, and the fact that they are off-server means that they don’t use precious VPS memory. Dreamhost PS’s default configuration was inherited directly from their shared hosting setup. It was slightly fiddled with but never fully optimized for low memory situations, which is what we have with Dreamhost PS. In particular, the Apache prefork threads that manage web connections to clients are compiled with libraries that you probably don’t need for your personal site. Because of this, more than 2MB of RAM are wasted per thread, and a moderately popular website usually has 30 or more threads. Also, the FastCGI settings are crude, leading to out-of-memory errors and debilitating “blocking” load from common FCGI daemons such as PHP, Perl, and Ruby. There is much instability when running Dreamhost PS at the lowest memory settings. The easiest solution to this problem is to scale up the CPU/Memory of the Dreamhost PS server until it reaches acceptable levels, and pay extra month after month. A more cost-effective solution is to install an alternative web server behind Dreamhost’s Apache mod_proxy setup. The Litespeed web server is fast, stable, and .htaccess rewrite compatible so it’ll work straight out of the box with your Wordpress or Gallery or phpBB. Read the rest of this entry » Sawajiri Erika’s last song was the chart-topping drama theme song “Taiyou no Uta”, released under Amane Kaoru, her character’s name in the drama. “Taiyou no Uta” ended up selling 481,000 copies, making it 2006’s top-selling single by a Japanese female artist. Now going by just ERIKA, she is releasing her debut single FREE on 2007-7-4. FREE is a song with high pop sensibilities. The rhythm is strong, and the melody is catchy. Erika’s voice constantly modulates between whispery and confident, and it is truly a captivating voice. Compared to the more acoustic Taiyou no Uta, FREE is a rockin’ song. In the PV, Erika has changed her image. Whereas before she was snowy and pure, she is now bronzed and sexy. During the numerous scenes in which she is lying on a bed, she faintly resembles a tanned Reon Kadena. Without the backing of a drama and with the abandonment of her image, FREE is a experiment in change. The great thing that Taiyou no Uta had was a soulful synergy between girl, drama, and song. The acoustics of FREE are nearly on par with Taiyou no Uta, but it feels like something is missing. Still, the song sounds good, Sawajiri Erika has a major fan base, and there’s a curious air about this debut release. How far will it go up the Oricon charts (I’m guessing 125,000 copies sold)? I can’t wait to find out! Erika – FREE lyrics: Nee kikoeru? Kono koe ga 作詩:ERIKA・白鳥マイカ 作曲:COZZi ããˆã€€è´ã“ãˆã‚‹? ã“ã®å£°ãŒ |