Archive for December, 2012

A Russian Communist Culture classic movie Battleship Potemkin / Броненосец «Потёмкин» (фильм)

Wednesday, December 5th, 2012


 

Battleship Potemkin HQ

The movie is highly Communistic and early versions of it included a direct verses from the notable Communist Marxist Revolution leader Leon Trotsky

The movie tells a story of a Russian ship during Tsarist Russia in 1905. Due to the bad conditions on the ship and the striving the sailors are exposed to they start, their dissatisfaction progresses until a point. Where low level sailors revolt against the well established ship order – Captain, Doctor, Priest etc. and Create a little revolution taking over the ship, killing the doctor and captain and disobeying God's blessed shipped order. Also in the movie it is evident the bad attitude towards Christianity and Christian faith. The ship priest is displayed as a hypocrite which uses the "faith shield" and people naivety to control the uneasy situation on the ship.
The movie well illustrates the bad spirit of Communists and their scornful attitude towards the Russian Church and faith.
The movie's ultimate Goal as many of the materials of this strange years accent on the Communist Marxist Revolution propaganda. While watching the movie I've noticed even the small details in the movie put accent on "the wrongship" of the established ship order. Take for example the physical height of the ship doctor, he is very low in height and feeble, while the sailors themselves are high in stature and of muscular nature.

The captain himself is high and skinny illustrated as a cruel and unhuman nature, while the sailors are pictured as a good and humble "natural" people. This whole plot and even the most little detail scream "The order is not right, we need new Order". The movie director is a Jews and the General message of the movie is pro jewish, as it tries to illustrate the WhiteGuards (King's army and soldiers as evil and un-human willing to kill all jews). Another thing is the movie is filled with unhuman cruelty, as the Tsarist marching soldiers kills a multitudes of "innocent" people including babies and mothers. Obviously it was all illustrated to blacken the Russian Monarchy and its previous order and Christian faith. There is a terrible scene, where a sailor reads on a plate written the words of the Lord's Prayer and being enraged by his continuous eating of rotten bad quality boiled meat drops the plate in anger. This scene openly illustrates the whole attitude towards God and the God order on earth as well as the Russian Orthodox Church, talking clearly that the screenplay of the director was a atheist blashemer. Honestly watching the breaking the Lord's prayer's plate made me angry and then sad, because whoever initiated the movie did not know the love of Jesus and tried to spread a message that God is all guilty for human's failure's or suffering ….

It should be noted that the movie's main story line The Battleship Potemkin's revolution is a historical truth (though I don't know details), however the part of the movie displaying the city massacre by Monarchy troops is completely fictional and never happened but is just the director's desire to make the influence over the observer severe. The movie was never of great success and though the Movie Author Eisenstein expected the movie to become a hit it never did. The Odessa city movie closing part was shocking to see by the much more pious people than today and I guess it was even worser than Quentin Tarantino's movies nowadays.

The main "star" artist of the movie is Valunchik, a working class hero who initiates the battleship revolution and is depicted as "the voice of rationality in the darkness a nd of cruel Monarchy who only cares for the high people class".

Battleship Potemkin / Броненосец Потемким Russian communist revolution propaganda movie cover picture

In the western world the movie in Brussels and France the movie was highly praised and was reviewed as one of the most influential propaganda movies ever made. In Brussel's world's fair the movie was named "the greatest file of all time" "Considered one of the most important films in the history of silent pictures, as well as possibly Eisenstein's greatest work, Battleship Potemkin brought Eisenstein's theories of cinema art to the world in a powerful showcase; his emphasis on montage, his stress of intellectual contact, and his treatment of the mass instead of the individual as the protagonist. The film tells the story of the mutiny on the Russian ship Prince Potemkin during the 1905 uprising." This movie is part of the collection: Silent Films Producer: Sergei M. Eisenstein, Grigori Aleksandrov Audio/Visual: sound Keywords: Silent; War; Russian Creative Commons license: Public Domain Mark 1.0

To be honest though the movie is of a great "art" value I don't like it as it is ungodly and against the Church. Now it is rather interesting to see the movie and put it in the face of the atheist "communists" who thought the Communist revolution will take over the whole world. After 68 years of Communism and communist blocks like USSR it is now over confirming the Gospel words that "every initiative that is not from God will eventually collapse".  There is plenty said on the movie and it is one of the most important movies nowadays most of the people aged 40 – 65, who lived through Communism and within the USSR socialist block know the movie quite well (in this number my father too). Since the movie is so popular one can find a lot of information and reviews on it with critical or positive analysis. The movie could probably be classified in the Drama genre and in my view is educational perspective for people who wish to have a glimpse on communist ideology and the attitudes of the '30s – 50s in Russia, China and plenty of other countries 'round the world.

Bronenosets-Potemkin-Battleship-potemkin-sailor-raising-alert--film-cover

Movie Length: 1 horo 11 minutoj

Original Title: Броненосец “Потёмкин”
Producer Company: Mosfilm-studio
Screenplay Directory: Н. Агаджанова (N. Agaĝanova): С. Эйзенштейн (S. Eisenstein)
Assitant Directory: Г. Александров (G. Aleksandrov)
Cinematography: Э. Тиссе (E. Tisse)
Music: Д. Шостакович (D. Ŝostakoviĉ)
Actors: Александр Антонов (Aleksandr Antonov), В. Барский (V. Barskij), Григорий Александров (Grigorij Aleksandrov) , М. Гоморов (M. Gomorov), Владимир Уральский (Vladimir Uralskij), Иван Бобров (Ivan Bobrov) k.a.
Country Produced: Soviet Union (USSR)

Movie Cast The film is composed of five episodes:

  •   "Men and Maggots" (Люди и черви), in which the sailors protest at having to eat rotten meat;
  •     "Drama on the Deck" (Драма на тендре), in which the sailors mutiny and their leader, Vakulinchuk, is killed;
  •     "A Dead Man Calls for Justice" (Мёртвый взывает) in which Vakulinchuk's body is mourned over by the people of Odessa;
  •     "The Odessa Staircase" (Одесская лестница), in which Tsarist soldiers massacre the Odessans.
  •     "The Rendez-Vous with a Squadron" (Встреча с эскадрой), in which the squadron tasked with intercepting the Potemkin instead declines to engage, lowering their guns, its sailors cheer on the rebellious battleship and join the mutiny.
     

Automating size tailoring of Youtube Embedded Videos and Inserted Images in WordPress blogs

Wednesday, December 5th, 2012

I regularly embed Youtube videos in my blog posts just like most bloggers do. With the grow of video materials, embedding a video along with your shorty study is very handy. Whoever has embedded videos in WordPress knows it is as simple as copy pasting the embed code provided by youtube's Share button (located little below the video Window).

youtube example for random video embed code screenshot with selector

Often the video provided by youtube is varying in sizing making the embedded video on my blog (and probably on others) override a content placed on the right as BlogRoll links, Recent Posts, Twitter of Facebook (Follow / Share) buttons etc.

As with every piece of nice free software, wordpress is quickly developing becoming better and better, every next day; One of the recent developments WordPress developers did is adding it a capability for limiting an Embedded Media Settings size. Doing so makes wordpress to automatically tailor the size of embedded videos, so you don't have every time when embedding a new video to bother changing inside the generated youtube embed code, but wordpress does this auto for you while pressing the Post Publish button.

Enabling automatic video size tailoring in WordPress is done like so:
 

1. Login to Wordress with admin user (http://www.wordpress-site.com/wp-admin or whatever WP admin URL is)

2. On the left menu you will see the Settings menu, use sub-menu Media, i.e.

Settings -> Media

wordpress blog wp admin administrator settings media menu location screenshot

Like you see on below screenshot, besides being able to automatically adjust Embedded codes (videos objects) wordpress is capable of automatically pass article images options to set every inserted image to certain pre-defined size.

wordpress blog change embed image media settingsscreenshot - auto tailoring youtube videos in wordpress

Setting a Custom Image size along with Custom Embed desired size is very handy and saves a lot of time. So far everytime when I write a new post on my blog and included a picture in it, I loose time to adjust the picture to 480×315 pixels (a good picture sizing looking good on screen resolutions from 1024 and higher).

Thus in future this little trick will save me up to few minutes whether I write an article with plenty of pictures or videos 😉

The process of embedding becomes even more easier if you are using already some Advanced functionality WordPress Article editor like FCKEDITOR for wordpress plugin
If you have fckeditor, you can straight embed the automatically shrinked to your set size by using FCKEDITOR's flash button instead of loosing each time when copying the embed code by pressing below the youtube video Share and Embed buttons.

Actually just about an year ago, the default wordpress editor TinyMCE used to have native support for Embedding youtube videos through a button called Insert / Edit Embedded Media, but due to copyright protections it was removed from wordpress. There is also one other wp plugin called Embedded Video Plugin but as long as I tested this one in the past it never used to work for me (though nowadays it might be working fine with embedding youtube videos)

soulfly embed video share and embed code- buttons screenshot

Well that's all folks. Hope my little post helps someone 🙂

Belarusian Good Night song ( Kids Lullaby )- Беларуская Калыханка

Tuesday, December 4th, 2012

Here is a beatiful Good Night song (Lullaby) popular in Russia and Belarus.

Беларуская Калыханка Доўгі дзень (БТ) Качественнее.mp4 –  Колыбельная

There is also a newer remake of the song from 2010, in the video one can see how they "smartly" heavily embedded the spiral, as well as plenty of twisting and cycling objects as a mean to hypnotize the poor unknowing kid 😉
I don't believe in hypnosis as I'm Christian and I think hypnosis works only if you believe it, but the guys who made this video definitely believed in hypnosis methodologies 😉 I never saw a video with so many twistings. Of course as always I'm a bit over critical, however I cannot stand without admitting the video animation is really high quality. I get the impression in Belarus they have a high quaite painters and animators.

Here is one other performance of this so beautiful and calming song – (Doctors should start prescribing this song as a song for healing people with nerveous disorders ;))


 

Белорусская колыбельная – Калыханка

The positivism below song emits along with the drawings joy is something totally missing nowadays in Western Civilizzation.

As an ex-metal, punk, rock person it was interesting for me to see Kalyhanka, has a Neo-Metal / Alternative Rock version.


 

Сьцяна – Калыханка

Here is also a piano version of the song – i don't like that so much but the video clip is really high quality of modern art – This gives me the idea in belarus modern art is quite advanced.

Biełaruskaja kałychanka / Беларуская калыханка / Belarusian lullaby

Below is the lyrics:

Доугі дзень
Цеплы дзень
Адплывае за аблокі
Сіні цень
Соны цень
Адпаўзае у кут далекі
Збеглі зайкі усе у лясы
Змоуклі птушак галасы
І буслы у гняздо схавалі
Свае доугія насы
Баю бай
Баю бай
Вачаняты закрывай (2 разы)
Пакрысе на расе
Патухаюць зоркі-сплюшкі
Гульні усе
Казкі усе
Пахаваны пад падушкі
Спяць і мышкі і стрыжы
Спяць машыны у гаражы
Ты таксама каля мамы
Ціха ціхенька ляжы
Баю бай
Баю бай
Вачаняты закрывай
Баю бай
Баю бай
Разам з намі засыпай (2 разы)

I found few other interesting Russian GoodNight kids songs are below:


 

Спят усталые игрушки


 

Спокойной ночи, малыши! (Заставка конца 90-х)

The animation is quite good, besides that it is rather interesting how the video is made to overflow the mind, so after the mind is "buffer overflowed" it turns into the Sleepe State generating Beta Waves 😉

As I'm Bulgarian and Slavonic it makes me wonder, why modern Bulgarians have not seen this, after all our Languages and Culture is so close to each other.

Here is one more which is great for kids, before going to bed 🙂

The Lord’s prayer in Anglo Saxon (Vikings) like English and Welsh – Pater Nostra English language development 7th to 16 century

Tuesday, December 4th, 2012

The story of Christianization of the nations is one of the most fascinating stories of all times. Yet people and especially historians forgot that. Modern Anthropology is based on some mambo-jambo and some speculations on the basis of rejection of God. It is my believe that people who wish to know what has really happened in the past and have a better understanding on human history should study closely Christianity.

The Lord's prayer and studying the origin and spread among languages of the Lord's prayer is one great Anthropological standpoint. While researching on The Lord's Prayer in as many languages as I can I've stumbled on rather unique fascinating information, which gives one a glimpse on how Ancient Anglo-Saxon (Viking) English looked like?

This inspired me to come with this little article in which I want to share with other brother and sisters in Christ the blessing of hearing and listening to the Lord's prayer in Ancient languages.

In Arabic world, there are plenty of theories that the Qur'an and the ancient prayers from there contain more spiritual power than the modern translated ones. Of Course we Christians knows well the Qur'an does not possess a spiritual power in truth, so I just it just as example as many Islamic people believe that too.
The topic of which languages are more blessed than others has been in wide discussion in Christian realm, way before Islamic people had their Qu'ran written.

In IX – 7th century there was a wide spread belief that there are in practice two God inspired languages, which should be used for Christian faith (Jewish, Greek and Latin).

There were people in the ancient Church for and against the understanding of the only 3 God blessed languages in which the Holy writtings – the Holy Bible and Church Liturgical texts should be written.

God's will for humanity to use mother languages to read holy scriptures and pray as well as the existence of the Autocephalous Orthodox Churches all around the world has shown that this understanding is incorrect.

Even though this, the fact that there was a dispute on the topic had a good reason as the more ancient languages (in my view) had more spiritual deepness compared to newer developed mixed languages; besides that older languages are less mixed up, almost as a rule of thumb the more advanced a language is the more words from other languages it includes.

This is just my personal understanding and not a viewpoint of the one Holy Apostolic Church – The Orthodox Church. The reason why I think so is in the past people were more simple in their thinking and their understanding about the world. In my view simplicity and simple way of thinking allowed our ancestors to be more real and more closer to God, in a way offering them less options for evil, therefore I believe the ancient languages in which the Holy Bible and Church services are done like Church Slavonic, Jewish, Greek, Syriac, Coptic etc.

One of this ancient languages is Anglo-Saxon whose variation nowadays most of the world speaks in the face of modern English. As I felt so joyful to find and listen the Lord's prayer being recited in Anglo-Saxon and other ancient English-Germanic Languages, therein I decided to share the Lord's Prayer in Ancient English from XI-th century (from youtube) .


 

The Lords Prayer in Old English from the 11th century


 

The Lord's Prayer (Fæder ure) in Anglo Saxon (Old English)


 

The Lord's Prayer in Gaelic

 

The Lord's Prayer in Welsh


 

The Lord's Prayer in Old English

 


 

The Lord's Prayer in Old Norse


 

Heliand, Lord's Prayer – Old Saxon

 

The Lord's Prayer / Preier of Oure Lord in Recited Middle English John Wycliffe Bible


 

 

Lords Prayer in Proto-Celtic, Ancient British and Brythonic


 

 

Pater Noster in Old English-Middle English-Early Modern English


 

 

The Lord's Prayer in Old English (with scary voice and face :))

People who might enjoy this post might want to check out my previous attempt to collect Otche Nash – The Lord’s Prayer in 10 languages as sung by Church choires and prayed in the Orhodox Church

Install Eaccelerator PHP cacher to decrease server CPU load on Debian Squeeze GNU / Linux

Monday, December 3rd, 2012

eaccelerator a php opcode cache optimizer accelerator

I don't know what is happening with Apache but I'm quite disappointed with the poor performance results  of  Apache2.2.16-6+squeeze8  + PHP 5.3.3-7+squeeze14 – installed from Official Debian Squeeze repositories through debs (apache2-mpm-prefork and libapache2-mod-php5). I should say the Apache is mainly processing PHP part of my wordpress blog which of time of writting contains about 1280 posts, few joomla based sites, another little wordpress and few other very little projects written in PHP The daily unique visitors the host gets are not that high about 8000 UNIQUE IP visitors and besides that the machine is equipped with a good amount of memory running on Lenovo PowerEdge host, here is raw system config where I got issues:

System Memory: 8 GB
Dual Core Intel(R) Pentium(R) CPU G630 @ 2.70GHz (5.40 Ghz), with
CPU  cache size    : 3072 KB.

The machine is not too powerful for a server configuration but for about 8000 Unique visitors mostly fetching WordPress pages many of which are cached with W3 Cache WP Plugin and handled back to the client in plain .html it is unusual such Apache CPU overloads happens. It is true the incoming traffic from crawlers puts a high load on the system as some of the WebCrawlers like 80legs sometimes are fetching pages too agressive and therefore create too high loads from PHP code multiple times interpreted by Apache, it is also a fact that sometimes the machines gets a bunch of increased number of requests from normal User IPs, but still the traffic even in peak hours  should not so high to be causing the weird Apache forked childs CPU overloads.

I've used Eacceleartor in the past and it proofed to significantly reduced the load Apache puts on servers CPU on all servers installed . Thus I thought of experimenting and running Eaccelerator on those particular problematic Debian Squeeze host to see if this will make some difference and fully resolve problems or at least reduce the overloads frequency. Whether this weird Apache overloads happens the system load avarage drops often to 80 or 100! The host is completely lagged then and often inaccessible via ssh. The work around is  either manual Apache restart via Apache init script (/etc/init.d/apache2 restart) or be setting a script to automatically restart Apache whether high load is matched. In some cases, the system gets so loaded that even the automated shell script which does restart Apache on high loads is not working, so only fix is to manually do cold system reset.

Eaccelerator though mostly popular among server administrators and thoughmany of the eaccelerators installs are on Debian  as of time of writting in Debian stable Linux does standard repositories does not include it . In past on Debian Lenny I used to  install Eacceleartor using a 3rd party repository but as I tried following my own tutorial to install it from deb without compiling I've figured out eaccelerator .deb's are no longer available.

Thus I proceeded and install it from source, here is how;

1. First to compile eacceleator from source one needs to have installed few build tools

 

 apt-get install --yes php5-dev make

2. Second download it from eaccelerator source repo on github, untar, compile, create eaccelerator cache directory, create eaccelerator config and restart Apache to load new settings.

 cd /usr/local/src

 wget -q https://github.com/eaccelerator/eaccelerator/tarball/master
 mv master eacceleartor.tar.gz

 tar -zxvvf eaccelerator.tar.gz
drwxrwxr-x root/root         0 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/
-rw-rw-r-- root/root       204 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/.gitignore
-rw-rw-r-- root/root       670 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/AUTHORS
-rw-rw-r-- root/root     17992 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/COPYING
-rw-rw-r-- root/root     49163 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/ChangeLog
-rw-rw-r-- root/root       627 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/Makefile.frag
-rw-rw-r-- root/root       269 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/Makefile.in
-rw-rw-r-- root/root      9761 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/NEWS
-rw-rw-r-- root/root     17053 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/PHP_Highlight.php
-rw-rw-r-- root/root      7281 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/README
-rw-rw-r-- root/root      2760 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/README.win32
-rw-rw-r-- root/root      2634 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/bugreport.php
-rw-rw-r-- root/root      9235 2012-08-16 16:34 eaccelerator-eaccelerator-42067ac/config.m4

cd $(ls -ld *eaccel*/|awk '{ print $9 }')  phpize
 ./configure
 make
 make install
 mkdir -p /var/cache/eaccelerator
 chmod 0777 /var/cache/eaccelerator
 cd /etc/php5/conf.d/

echo 'extension="eaccelerator.so"' >>  eaccelerator.ini
echo 'eaccelerator.shm_size="16"' >> eaccelearator.ini
echo 'eaccelerator.cache_dir="/var/cache/eaccelerator"' >> eaccelerator.ini
echo 'eaccelerator.enable="1"' >> eaccelerator.ini
echo 'eaccelerator.optimizer="1"' >> eaccelerator.ini
echo 'eaccelerator.check_mtime="1"' >> eaccelerator.ini
echo 'eaccelerator.debug="0"' >> eaccelerator.ini
echo 'eaccelerator.filter=""' >> eaccelerator.ini
echo 'eaccelerator.shm_max="0"' >> eaccelerator.ini
echo 'eaccelerator.shm_ttl="0"' >> eacceleartor.ini
echo 'eaccelerator.shm_prune_period="0"' >> eaccelerator.ini
echo 'eaccelerator.shm_only="0"' >> eaccelerator.ini
echo 'eaccelerator.compress="1"' >> eaccelerator.ini
echo 'eaccelerator.compress_level="9"' >> eaccelerator.ini

 

/etc/init.d/apache2 restart

For some clarity here is the exact config placed in /etc/php5/conf.d/eaccelerator.ini by above echo commands

extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/var/cache/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

People who are lazy to copy paste from this post and like to have eaccelerator installed updated to a number of hosts (e.g. do some scripting automation) use install_upgrade_eaccelerator_debian.sh tiny shell script.

install_update_eaccelerator_debian.sh script is very useful for people who regularly update Debian to latest security updates.
Due to the fact eaccelerator is compiled from source code, after every update of Apache or PHP packages it is necessery to rebuild also eaccelerator, otherwise after upgrading Apache eaccelerator will stop silenty working, so if you don't explicitly check in phpinfo(); periodically you might even not have noticed that, except if you don't notice a bit of degraded performance after the last Apache / PHP update. Actually the need to re-compile eaccelerator PHP module, after each Apache or PHP update is a bit annoying and is downsize, that package has no native deb. There is one work around to that I can think of – just set install_update_eaccelerator_debian.sh to execute via cron routinely.
 I personally don't do that but people, as I don't like full automation, but people who prefer to install once eaccelerator and further forgot about it should:

a. Copy install_update_eaccelerator_debian.sh script to lets say /usr/local/bin

b. set a cronjob similar to

10 5,10,15,20,25,27 * * * /usr/local/bin/install_update_eaccelerator_debian.sh >/dev/null 2>&1

During execution the cron would put some extra load on the system but at least, you can be sure you will regularly be running with working / updated (re-compiled) version of Eaccelerator.

To test if eaccelerator is loaded on the system check in phpinfo(); function output. Create anywhere in a site DocumentRoot a file like php_info.php with content:

<?
phpinfo();
?>

Access the site in browser and look for eaccelerator in it. If eaccelerator is configured to serve well you will see something like on below screenshot:

eaccelerator php cache engine debian squeeze screenshot

Install eacceleartor php load up info debian squeeze linux shot
One note to make here is Eaccelerator might be creating problems due to caching on some hosts using Smarty Framework for a site basis, I assume with some other PHP Frameworks there might be some problems too but in general due to my experience so far I've faced problems with sites due to eaccelerator in very rare occasions in maybe 50 Eaccelerator installs so far, there were issues due to caching only on maybe 2 or 3. However I should share Eaccelerator is not recommended on testing Apace + PHP server for web development, as on those it sometimes might be creating "dev. time lags" in development due to caching – a common example for that is when a developer substitutes a .php with another similar ones whose size is identical to the previous .php script ….

After installing the system load dropped a bit, there is plenty of benchmarking online comparing Eaccelerator with other popular PHP Cachers like XCache, APC, PurePHP etc. – According to benchmarking done between the 3 Eaccelerator is maybe the most fastest PHP Cacher  – the article is a bit outdated but worthy to read.
As a result of putting in use Eaccelerator now the system load is more gracefully distributed in time sar (system activity information) over time does not show moments in which the CPU was "stoned" idling at 0 – as before.

As a result of the resolved downtimes and Apache restarts, I see also in webalizer statistics increase in the amount of traffic (unique visitors). Only time will show for sure if this increased capacity of traffic serving is directly because of Eaccelerator or there were other factors too but as long as I didn't change nothing else on the host I think it is very likely it is thanks to Eaccelerator.
Another note to make here is that on PHP Zend Framework it might be Zend PHP Caching via APC is quicker than Eaccelerator.

P.S. : Sometimes you might need to clean Eacceleartor PHP Cache, as it might be cause for showing old cached pages; even though some PHP were updated – more n that here

I will be glad to hear from people who install Eaccelerator, some feedback, did you got decreased server loads and more stable and quicker served pages?

I would like to also to give thanks to this nice blog article which was along the articles which help me with install guideance and hence was a kind of inspiration of this a bit prolonged but hopefully informative article.

After all, increased "Apache thoroughput" and more served connection without changing (spending on new hardware) is way to increase ur business efficiency and save money 🙂

Njoy 😉

Fixing 127.0.0.1 – – “OPTIONS * HTTP/1.0” 200 136 “-” “Apache (internal dummy connection)” / ::1 – – [-.. :- .. +0200] “OPTIONS * HTTP/1.0” 200 Apache access.log junk records

Saturday, December 1st, 2012

If you're on Debian Linux and you played with mpm_prefork_module MinSpareServers and MaxSpareServers directives, it is very likely your access.log apache log ends up with a plenty of junk messages like:

127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"

It was quite unexplainable to me what is causing all this errors. I've seen plenty of posts on the Internet discussing on that but most are somehow outdated and suggested solutions to the weird logged  internal dummy connection messages did not work well for me.

I would not care so much about the message, only if it was not creating a lot of bulk records in my logs which when later are compressed just take up useless disk space and besides that it makes following the Apache log with:

# tail -f  /var/log/apache2/access.log

hardly readable.

  • One of the many solutions and posts suggested a solution with mod_rewrite rules. It claims adding the rules to .htaccess or to apache config files (vhost confs whether multiple vhosts domains):

RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* – [F,L]

The full article you read the whole here.
I've tested this rules, and thought I might be doing something wrong this proved unworking for me. Besides that even if it worked I would not imply such fix, as it will be creating a useless extra load on each incoming Apache connection.

 

As a second solution as I found on stackoverflow's website is to add in apache / vhost configs:

<Limit OPTIONS Order allow,deny Deny from all </Limit> I tested this as well but it does not work either. I've seen a bunch of other posts and none seemed to be working, until I finally came across Linux Guru's blog which was discussing a similar issue suggesting a fix. The post is discussing on Apache access.log being filled with messages like: ::1 - - [13/Mar/2008:09:05:13 +0200] "OPTIONS * HTTP/1.0" 200 Which are almost the same except, the 127.0.0.1 is the IPv6's equivalent ::1. The blog provided solution is to use: SetEnvIf Remote_Addr "::1" dontlog CustomLog /var/log/apache2/access.log combined env=!dontlog What this makes is to completely clear up all occurances of ::1 in /var/log/apache2/access.log. Once it uses Apache Internal directive SetEnvIf Remote_Addr "::1" dontlog to "bind" ::1 to dontlog variable and then after the usual Log location definition – e.g. – CustomLog /var/log/apache2/access.log combined it instructs the environment not to log dontlog variable matches, i.e. env=!dontlog

Following he same logic to get rid of the so annoying:

127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"

I used as a solution adding:

SetEnvIf Remote_Addr "127.0.0.1" dontlog
CustomLog /var/log/apache2/access.log combined env=!dontlog

to /etc/apache2/sites-available/000-default (the default virtualhost), with the CustomLog directive, for more domains and more CustomLog VirtualHost definitions it might be necessary to add it to all Vhosts too.

This solution to Request of the Server to itself is also found on Apache's wiki  check what httpd wiki here.

As I've read further it appeared the same Internal Dummy Connection error is experienced on CentOS Linux too and the SetEnvIf method works there too well you can read post here.

Another possible solution though this didn't work for me is to just play with the settings of MinSpareServers and MaxSpareServers in apache2.conf (or httpd.conf on RedHats and BSD).

There is plenty of things written on the problem and it is really confusing to read about it, as most of the people writing about it were looking for the quick fix and thus just dropped few lines on what worked for them without much details on exact OS en Apache version.

The reason why:
127.0.0.1 – – [25/Nov/2012:06:27:21 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)" appear in log is due to the fact in Apache 2.x series Apache developers change the the Parent Apache controlling process to send periodic requests to its waiting idling childs, just to make the childs are still alive, this is done somehow in the very inefficient method IMHO by sending those dummy connection requests.

Maybe better and more thoroughful explanation on What is the Dummy Internal Connection and what causes it is on another Bulgarian Fellow Valery Dachev you can read his explan.

On a couple of occasions, I've experienced a very high server loads like load avarage of 180etc. , I have some suspicion that this super high loads are caused somehow by the Internal Dummy Connection thing too, though I'm not sure if my assumptions are correct. It could be I have messed up something with MaxSpareServers / MinSpareServers too, or just the hardware on the host is unable to process a sudden traffic peaks. I've red online other people who complain of similar overloads and complaininng about the Internal Dummy Connection too. But as long as my little research go, I couldn't find noone knowing anything on that. If some of the readers of this post has an idea on that please drop a comment !

Well that's it hope my little blog post sheds some more light on the topic, and lets hope in future Apache versions developers will come with less resource hungry method to do internal dummy checks for exmpl. by sending a SIGUSR signal.