<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4087297446568006045</id><updated>2025-11-06T02:22:34.753-08:00</updated><category term="Gentoo"/><category term="PHP"/><category term="Magento"/><category term="Apache"/><category term="Linux"/><category term="Zend Framework"/><category term="LDOCE"/><category term="Apache2"/><category term="Samba"/><category term="Symfony2"/><category term="Webcam"/><category term="composer"/><category term="mc"/><category term="xdebug"/><category term="ALSA"/><category term="Debug"/><category term="Doctrine"/><category term="Git"/><category term="Gtk"/><category term="KDE"/><category term="Kjots"/><category term="KnpMenuBundle"/><category term="Krusader"/><category term="MySQL"/><category term="PHP5.4"/><category term="PhpStorm"/><category term="Qt"/><category term="Suhosin"/><category term="Twitter Bootstrap"/><category term="UT2004"/><category term="Zend Debugger"/><category term="ZendDebugger"/><category term="bash"/><category term="eclipse"/><category term="zend studio"/><title type='text'>Memory tips or Shit happens</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-9190091606689496500</id><published>2013-05-15T07:16:00.001-07:00</published><updated>2013-09-01T13:22:19.018-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Debug"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="PhpStorm"/><category scheme="http://www.blogger.com/atom/ns#" term="xdebug"/><title type='text'>Configure PhpStorm for debugging</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
IDE: PhpStorm6&lt;br /&gt;
OS: Ubuntu 12.10&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
Configure IDE for debugging.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
1) At first &lt;span style=&quot;color: #e69138;&quot;&gt;install and configure XDebug&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Open page&amp;nbsp;&lt;a href=&quot;http://xdebug.org/wizard.php&quot;&gt;http://xdebug.org/wizard.php&lt;/a&gt;&amp;nbsp;and check your phpinfo output.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Follow instructions to install or update your XDebug.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&amp;nbsp;My additional xdebug.ini options:&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;xdebug.remote_enable=On&lt;/li&gt;
&lt;li&gt;xdebug.remote_host=localhost&lt;/li&gt;
&lt;li&gt;xdebug.remote_port=9000&lt;/li&gt;
&lt;li&gt;xdebug.max_nesting_level=250&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Do not forget restart your web server with new configuration.&lt;br /&gt;
Also you can check if XDebug is used in phpinfo output.&lt;br /&gt;
&lt;br /&gt;
2) &lt;span style=&quot;color: #e69138;&quot;&gt;Install and configure &quot;Xdebug Helper&quot;&lt;/span&gt; plugin in browser(chrome for example)&lt;br /&gt;
I using&amp;nbsp;&lt;a href=&quot;https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc&quot;&gt;https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc&lt;/a&gt;&lt;br /&gt;
Configuration options for it:&lt;br /&gt;
&lt;b&gt;IDE key&lt;/b&gt;&amp;nbsp;Other:PHPSTORM1&lt;br /&gt;
Or you can try another key from PhpStorm documentation page:&lt;br /&gt;
&lt;a href=&quot;http://www.jetbrains.com/phpstorm/marklets/&quot;&gt;http://www.jetbrains.com/phpstorm/marklets/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
3) &lt;span style=&quot;color: #e69138;&quot;&gt;Configure PhpStorm&lt;/span&gt;:&lt;br /&gt;
Add your app server: File -&amp;gt; Settings -&amp;gt; PHP -&amp;gt; Servers (Debugger: Xdebug)&lt;br /&gt;
Configure debug options: File-&amp;gt;Settings-&amp;gt;PHP-&amp;gt;Debug&lt;br /&gt;
&amp;nbsp; Xdebug | debug port - 9000&lt;br /&gt;
&amp;nbsp; Xdebug | Can accept external connections - checked&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Debuging&lt;/b&gt;&lt;br /&gt;
Run-&amp;gt;Break at first line in PHP scripts - check it&lt;br /&gt;
Run-&amp;gt;Start Listen PHP Debug Connections - enable listener&lt;br /&gt;
Go to debugging page in browser.&lt;br /&gt;
Click on gray bug icon and enable Debug.&lt;br /&gt;
After these actions all should be ready, so reload page(or send a form, or click on link, ...) and debug will start.&lt;br /&gt;
&lt;br /&gt;
Thanks to authors from these resources:&lt;br /&gt;
&lt;a href=&quot;http://icephoenix.us/php/how-to-setup-local-php-debugging-with-phpstorm-and-xdebug/&quot;&gt;http://icephoenix.us/php/how-to-setup-local-php-debugging-with-phpstorm-and-xdebug/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://blog.jetbrains.com/webide/2011/02/zero-configuration-debugging-with-xdebug-and-phpstorm-2-0/&quot;&gt;http://blog.jetbrains.com/webide/2011/02/zero-configuration-debugging-with-xdebug-and-phpstorm-2-0/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://blog.jetbrains.com/webide/2011/03/configure-php-debugging-in-phpstorm-2-0/&quot;&gt;http://blog.jetbrains.com/webide/2011/03/configure-php-debugging-in-phpstorm-2-0/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/9190091606689496500/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2013/05/configure-phpstorm-for-debugging.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/9190091606689496500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/9190091606689496500'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2013/05/configure-phpstorm-for-debugging.html' title='Configure PhpStorm for debugging'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-6754368444198284577</id><published>2013-02-20T08:17:00.001-08:00</published><updated>2013-02-20T08:17:36.994-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache2"/><title type='text'>Apache2 Negotiation: discovered file(s) matching request</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;- Linux A230512 3.5.0-24-generic #37-Ubuntu SMP Thu Feb 7 01:50:30 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;&amp;nbsp;- Apache/2.2.22&lt;div&gt;
&lt;br /&gt;&lt;div&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
I trying to get page from local server by URL: http://&amp;lt;sitename&amp;gt;/index/index/site_id/6. There one input point &quot;index.php&quot;, htaccess configured properly. But &quot;Page not found&quot; returned.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Apache log show this message &quot;&lt;span style=&quot;color: #b45f06;&quot;&gt;Negotiation: discovered file(s) matching request...&lt;/span&gt;&quot;. It mean you need to disable &quot;MultiViews&quot; in domain configuration.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1) Edit domain configuration file&lt;br /&gt;&amp;gt; &lt;span style=&quot;color: #b45f06;&quot;&gt;nano -w /etc/apache2/sites-available/&amp;lt;site-configuration-file&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
2) Find this row &quot;&lt;span style=&quot;color: #b45f06;&quot;&gt;Options Indexes FollowSymLinks MultiViews&lt;/span&gt;&quot; and remove phrase &quot;MultiViews&quot;.&lt;/div&gt;
&lt;div&gt;
As a result you should have this &quot;&lt;span style=&quot;color: #b45f06;&quot;&gt;Options Indexes FollowSymLinks&lt;/span&gt;&quot;. Save file.&lt;/div&gt;
&lt;br /&gt;
3) Restart apache&lt;br /&gt;
&amp;gt;&amp;nbsp;&lt;span style=&quot;color: #b45f06;&quot;&gt;/etc/init.d/apache2 restart&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note:&lt;/b&gt;&lt;br /&gt;
OS Ubuntu 12.10, In your system routes and commands may be different.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/6754368444198284577/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2013/02/apache2-negotiation-discovered-files.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/6754368444198284577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/6754368444198284577'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2013/02/apache2-negotiation-discovered-files.html' title='Apache2 Negotiation: discovered file(s) matching request'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-6996998577381293546</id><published>2013-01-16T09:58:00.001-08:00</published><updated>2013-01-16T09:58:28.061-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache2"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP5.4"/><category scheme="http://www.blogger.com/atom/ns#" term="ZendDebugger"/><title type='text'>Configure ZendDebugger for PHP5.4</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;OS: &lt;/i&gt;Ubuntu12.10 -&amp;nbsp;Linux A230512 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;
&lt;i&gt;Web server:&lt;/i&gt; Apache2&lt;br /&gt;
&lt;i&gt;PHP:&lt;/i&gt; PHP 5.4.6-1ubuntu1.1 &amp;nbsp;Zend Engine v2.4.0&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
Need to debug php scripts with &lt;span style=&quot;color: #b45f06;&quot;&gt;ZendStudio10(beta!)&lt;/span&gt;. But officially Zend doesn&#39;t produce Debugger for &lt;span style=&quot;color: #b45f06;&quot;&gt;PHP v5.4&lt;/span&gt;, latest version for v5.3&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
Main idea: download ZendServer package for PHP5.4 get ZendDebugger from this pacakge and install it manually. Follow those steps and you will be fine!&lt;br /&gt;
&lt;br /&gt;
1) Get deb package of ZendServer(depending your system 64 bit or 32)&amp;nbsp;for PHP5.4&lt;br /&gt;
&amp;gt; &lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;wget http://repos-source.zend.com/zend-server/preview-php5.4/deb/pool/php-5.4-debugger-zend-server_5.3.33+b7_amd64.deb
&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
2) Unpack it:&lt;br /&gt;
&amp;gt;&amp;nbsp;&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;dpkg -x php-5.4-debugger-zend-server_5.3.33+b7_amd64.deb php54debugger
&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
3) Copy ZendDebugger.so to the right place:&lt;br /&gt;
&amp;gt;&amp;nbsp;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;i&gt;cp ./usr/local/zend/lib/debugger/php-5.4.x/ZendDebugger.so &lt;/i&gt;/usr/lib/php5/20100525/ZendDebugger.so&lt;/span&gt;&lt;br /&gt;
4) Copy zend debugger.ini to the right place:&lt;br /&gt;
&amp;gt;&amp;nbsp;&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;cp ./usr/local/zend/etc/conf.d/debugger.ini /etc/php5/mods-available&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
5) Now you need to replace one string that ini file. Find this string&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;zend_extension_manager.dir.debugger=/usr/local/zend/lib/debugger
&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
and replace it to this&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;zend_extension=/usr/lib/php5/20100525/ZendDebugger.so
&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
6) Enable this ini file:&lt;br /&gt;
&amp;gt;&amp;nbsp;&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;ln -s /etc/php5/mods-available/debugger.ini /etc/php5/fpm/conf.d/30-debugger.ini&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
7) Restart web server:&lt;br /&gt;&amp;gt;&amp;nbsp;&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;/etc/init.d/apache2 restart&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
This works for me from the box, no additional actions.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;PS.&lt;/b&gt; All scripts and commands depends of your OS, in this version its Ubuntu.&lt;br /&gt;
Giant thanks to the author of this post&amp;nbsp;&lt;a href=&quot;http://irtbf.posterous.com/zend-debugger-for-nginx-php-54&quot; target=&quot;_blank&quot;&gt;original version&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/6996998577381293546/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2013/01/configure-zenddebugger-for-php54.html#comment-form' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/6996998577381293546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/6996998577381293546'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2013/01/configure-zenddebugger-for-php54.html' title='Configure ZendDebugger for PHP5.4'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-7870479510408362157</id><published>2012-09-26T06:36:00.000-07:00</published><updated>2012-09-26T06:36:29.449-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>bash, colored output</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;Linux A230512 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;
Qt: 4.8.1&lt;br /&gt;
&lt;br /&gt;
KDE Development Platform: 4.8.5 (4.8.5)&lt;br /&gt;
Yakuake: 2.9.8&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;Need &lt;span style=&quot;color: #b45f06;&quot;&gt;colored bash&lt;/span&gt; output.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
Edit your ~/.bashrc configuration file.&lt;br /&gt;Find this parameter &lt;span style=&quot;color: #b45f06;&quot;&gt;force_color_prompt&lt;/span&gt; and set it to &lt;span style=&quot;color: #b45f06;&quot;&gt;yes&lt;/span&gt;.&lt;br /&gt;&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;force_color_prompt=yes&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/7870479510408362157/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/09/bash-colored-output.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/7870479510408362157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/7870479510408362157'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/09/bash-colored-output.html' title='bash, colored output'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-4283535692921086498</id><published>2012-09-13T02:46:00.000-07:00</published><updated>2012-09-13T02:46:21.737-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Enable $HTTP_SERVER_VARS and $HTTP_GET_VARS in PHP5</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
In php4 project not defined variables &lt;span style=&quot;color: #b45f06;&quot;&gt;$HTTP_SERVER_VARS&lt;/span&gt; and &lt;span style=&quot;color: #b45f06;&quot;&gt;$HTTP_GET_VARS&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
Enable php directives &lt;span style=&quot;color: #b45f06;&quot;&gt;register_globals&lt;/span&gt; and&amp;nbsp;&lt;span style=&quot;color: #b45f06;&quot;&gt;register_long_arrays&lt;/span&gt;&lt;br /&gt;
You can do it in your &lt;i&gt;php.ini&lt;/i&gt; configuration file, but the best way do it in &lt;i&gt;.htaccess&lt;/i&gt; file in your specific project.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/4283535692921086498/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/09/php5-and-httpservervars-and-httpgetvars.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/4283535692921086498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/4283535692921086498'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/09/php5-and-httpservervars-and-httpgetvars.html' title='Enable $HTTP_SERVER_VARS and $HTTP_GET_VARS in PHP5'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-945386287054397550</id><published>2012-09-10T07:45:00.000-07:00</published><updated>2012-09-10T08:30:46.758-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Git"/><title type='text'>Git remove submodule</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
git version 1.7.9.5&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Bundles DoctrineFixturesBundle and DoctrineMigrationsBundle has changed repository URLs and namespaces. So I can&#39;t update submodules.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
1) Remove appropriate sections in &lt;span style=&quot;color: #b45f06;&quot;&gt;.git/config&lt;/span&gt; file:&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;pattern:&amp;nbsp;git config -f .git/config --remove-section submodule.$submodulepath&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;gt;&amp;nbsp;git config -f .git/config --remove-section submodule.vendor/bundles/Symfony/Bundle/DoctrineFixturesBundle&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;gt;&amp;nbsp;git config -f .git/config --remove-section submodule.vendor/bundles/Symfony/Bundle/DoctrineMigrationsBundle&lt;/span&gt;&lt;br /&gt;
It also remove appropriate sections in .gitmodules file, if not, use this command:&lt;br /&gt;
&lt;i&gt;pattern:&amp;nbsp;git config -f .gitmodules --remove-section submodule.$submodulepath&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
2) pattern: &lt;i&gt;git rm --cached $submodulepath&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;gt;&amp;nbsp;git rm --cached vendor/bundles/Symfony/Bundle/DoctrineFixturesBundle&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;gt;&amp;nbsp;git rm --cached vendor/bundles/Symfony/Bundle/DoctrineMigrationsBundle&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3) Commit this changes:&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;gt; git commit -m &quot;Remove submodules&amp;nbsp;DoctrineFixturesBundle and&amp;nbsp;DoctrineMigrationsBundle&quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/945386287054397550/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/09/git-remove-submodule.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/945386287054397550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/945386287054397550'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/09/git-remove-submodule.html' title='Git remove submodule'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-3027784652588623262</id><published>2012-09-10T03:12:00.002-07:00</published><updated>2012-09-10T04:00:14.451-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mc"/><title type='text'>Midnight Commander color scheme and code highlight</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
Linux A230512 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;
GNU Midnight Commander 4.8.1&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Need another color scheme and code highlightes in Midnight Commander.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Configuration file for mc-4.8.1 located here:&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;~/.config/mc/ini&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
1) Enable code highlightes in mc editor.&lt;br /&gt;
Change highlight parameter in mc config file to 1:&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;editor_syntax_highlighting=1&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
May be you need to copy &lt;span style=&quot;color: #b45f06;&quot;&gt;misc/filehighlight.ini&lt;/span&gt; file from mc source to &lt;span style=&quot;color: #b45f06;&quot;&gt;/etc/mc&lt;/span&gt; directory.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2) Apply custom color scheme.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
Set appropriate parameter:&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;i&gt;[Color]&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; line-height: 18px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #b45f06; font-family: inherit;&quot;&gt;&lt;i&gt;base_color=lightgray,default:normal=lightgray,default:selected=black,green:marked=yellow,default:markselect=white,green:errors=white,red:menu=lightgray,default:reverse=black,lightgray:dnormal=white,default:dfocus=black,green:dhotnormal=brightgreen,default:dhotfocus=brightgreen,green:viewunderline=brightred,default:menuhot=yellow,default:menusel=white,black:menuhotsel=yellow,black:helpnormal=black,lightgray:helpitalic=red,lightgray:helpbold=blue,lightgray:helplink=black,cyan:helpslink=yellow,default:gauge=white,black:input=black,green:directory=white,default:executable=brightgreen,default:link=brightcyan,default:stalelink=brightred,default:device=brightmagenta,default:core=red,default:special=black,default:editnormal=lightgray,default:editbold=yellow,default:editmarked=black,cyan:errdhotnormal=yellow,red:errdhotfocus=yellow,lightgray&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; line-height: 18px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; line-height: 18px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;!!! IMPORTANT !!!&lt;/span&gt; &amp;nbsp;- use nano or vi or ... to edit mc ini file, but not internal mc-editor,&lt;br /&gt;otherwise your changes will be lost&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: inherit; line-height: 18px; text-align: justify;&quot;&gt;!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; line-height: 18px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; line-height: 18px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;PS:&lt;/b&gt; Thanks to this post author.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a href=&quot;http://plug-and-pray.blogspot.com/2009/09/editing-midnight-commanders-color.html&quot;&gt;http://plug-and-pray.blogspot.com/2009/09/editing-midnight-commanders-color.html&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; line-height: 18px; text-align: justify;&quot;&gt;Her color scheme is beauty.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/3027784652588623262/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/09/midnight-commander-color-scheme-and.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/3027784652588623262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/3027784652588623262'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/09/midnight-commander-color-scheme-and.html' title='Midnight Commander color scheme and code highlight'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-7867287590991069664</id><published>2012-09-07T01:45:00.000-07:00</published><updated>2012-09-07T01:45:12.506-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="composer"/><title type='text'>Composer time out error</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;php5.3&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
Error while installing dependencies. Command:&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;gt;&amp;nbsp;php composer.phar install&lt;/span&gt;&lt;br /&gt;
returned the error:&lt;br /&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;[Composer\Downloader\TransportException]&lt;br /&gt;.........&amp;nbsp;file could not be downloaded: failed to open stream: Connection timed out&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
Set higher timeout for composer, run command:&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;gt; COMPOSER_PROCESS_TIMEOUT=1000&amp;nbsp;php composer.phar install&lt;/span&gt;&lt;br /&gt;
If you get error again try to set higher timeout. For example 3000 against 1000.&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/7867287590991069664/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/09/composer-time-out-error.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/7867287590991069664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/7867287590991069664'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/09/composer-time-out-error.html' title='Composer time out error'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-3654928046718613650</id><published>2012-09-06T08:53:00.002-07:00</published><updated>2012-09-06T08:53:57.547-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="KnpMenuBundle"/><category scheme="http://www.blogger.com/atom/ns#" term="Symfony2"/><category scheme="http://www.blogger.com/atom/ns#" term="Twitter Bootstrap"/><title type='text'>KnpMenuBundle and Twitter Bootstrap styles</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;Symfony2.1 RC2 and appropriate KnpMenuBundle&lt;br /&gt;
Twitter Bootstrap 2.1&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
Need to customize Menu by Bootstrap css classes.&lt;br /&gt;
For example, I need to add attribute &lt;span style=&quot;color: #b45f06;&quot;&gt;class=&quot;nav&quot;&lt;/span&gt; to &lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt; element of generated menu.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Using methods&lt;/span&gt; setAttribute(), setChildrenAttributes(), ...&lt;br /&gt;
Example:&lt;br /&gt;
$menu = $factory-&amp;gt;createItem(&#39;root&#39;);&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;$menu-&amp;gt;setChildrenAttributes(array(&#39;class&#39; =&amp;gt; &#39;nav&#39;));&lt;/span&gt;&lt;br /&gt;
$menu-&amp;gt;addChild(&#39;Home&#39;, array(&#39;route&#39; =&amp;gt; &#39;bst_app_homepage&#39;));&lt;br /&gt;
...&lt;br /&gt;
The output will be:&lt;br /&gt;&amp;lt;ul class=&quot;nav&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;li&amp;gt;...&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/3654928046718613650/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/09/knpmenubundle-and-twitter-bootstrap.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/3654928046718613650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/3654928046718613650'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/09/knpmenubundle-and-twitter-bootstrap.html' title='KnpMenuBundle and Twitter Bootstrap styles'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-754351628965419238</id><published>2012-08-31T05:07:00.004-07:00</published><updated>2012-08-31T05:07:45.341-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="composer"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Symfony2"/><title type='text'>Symfony2 composer install error</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;PHP 5.3.10-1ubuntu3.2&lt;br /&gt;
Symfony 2.1 RC2&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
After command&lt;br /&gt;&lt;i&gt;&amp;gt; php composer.phar install&lt;/i&gt;&lt;br /&gt;I have error:&lt;br /&gt;
&lt;i&gt;Your requirements could not be resolved to an installable set of packages.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Problem 1&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; - Installation request for jms/security-extra-bundle == 1.2.9999999.9999999-dev -&amp;gt; satisfiable by jms/security-extra-bundle 1.2.x-dev.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; - Can only install one of: jms/security-extra-bundle dev-master, jms/security-extra-bundle 1.2.x-dev.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; - Installation request for jms/security-extra-bundle == 9999999-dev -&amp;gt; satisfiable by jms/security-extra-bundle dev-master.&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
1) Remove &lt;i&gt;composer.lock&lt;/i&gt; file from your project directory&lt;br /&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp;&amp;gt; &lt;span style=&quot;color: #b45f06;&quot;&gt;rm composer.lock&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
2) Re-install all packages again, run command:&lt;br /&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp;&amp;gt; &lt;span style=&quot;color: #b45f06;&quot;&gt;php composer.phar install&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;It will take some time, but the problem will be solved.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/754351628965419238/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/08/symfony2-composer-install-error.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/754351628965419238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/754351628965419238'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/08/symfony2-composer-install-error.html' title='Symfony2 composer install error'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-7007543993117503585</id><published>2012-05-29T06:08:00.002-07:00</published><updated>2012-05-29T06:08:56.356-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>PHP5 with XSL module installed in Ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;div&gt;
OS: Ubuntu 11.4&lt;br /&gt;PHP: 5.3.10&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Problem:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;XSL&lt;/i&gt; module for PHP is not installed.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;&lt;i&gt;&amp;gt; apt-get install php5-xsl&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;gt; /etc/init.d/apache2 restart&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/7007543993117503585/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/05/php5-with-xsl-module-installed-in.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/7007543993117503585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/7007543993117503585'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/05/php5-with-xsl-module-installed-in.html' title='PHP5 with XSL module installed in Ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-5791112011152760672</id><published>2012-05-18T08:17:00.003-07:00</published><updated>2012-05-18T08:17:41.889-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="Gentoo"/><title type='text'>Enable Apache mod_status in Gentoo</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
OS:&amp;nbsp;Linux solar 3.1.6-gentoo #16 SMP Thu Jan 5 14:49:10 GMT 2012 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux&lt;br /&gt;
Apache-2.2&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
I need enable apache module &lt;i&gt;mod_status.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
Edit apache conf file: &quot;&lt;span style=&quot;color: #b45f06; font-style: italic;&quot;&gt;/etc/conf.d/apache2&lt;/span&gt;&quot;&lt;br /&gt;
Add option &quot;&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;-D STATUS&lt;/span&gt;&lt;/i&gt;&quot; to the directive &quot;&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;APACHE2_OPTS&lt;/span&gt;&lt;/i&gt;&quot;&lt;br /&gt;Example string:&lt;br /&gt;
APACHE2_OPTS=&quot;-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D STATUS&quot;&lt;br /&gt;
&lt;br /&gt;
Restart apache and follow here &quot;&lt;i&gt;http://localhost/server-status&lt;/i&gt;&quot;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/5791112011152760672/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/05/enable-apache-modstatus-in-gentoo.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/5791112011152760672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/5791112011152760672'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/05/enable-apache-modstatus-in-gentoo.html' title='Enable Apache mod_status in Gentoo'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-8705353810875174451</id><published>2012-03-10T02:45:00.004-08:00</published><updated>2012-03-10T02:45:59.098-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Magento cms home page with products and pager</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
Magento 1.6.0&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
Display products on home page with pager.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Without programming&lt;/span&gt;&lt;/i&gt; you can display products only from one category.&lt;br /&gt;
Edit home page in admin panel of your shop.&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Admin panel -&amp;gt; CMS -&amp;gt; Pages -&amp;gt; Home page&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;Insert into &quot;&lt;i&gt;Design&lt;/i&gt;&quot; tab the following code&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;lt;reference name=&quot;content&quot;&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;lt;block type=&quot;catalog/product_list&quot; name=&quot;product_list&quot; template=&quot;catalog/product/list.phtml&quot;&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;action method=&quot;setCategoryId&quot;&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;category_id&amp;gt;18&amp;lt;/category_id&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/action&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;block type=&quot;catalog/product_list_toolbar&quot; name=&quot;product_list_toolbar&quot; template=&quot;catalog/product/list/toolbar.phtml&quot;&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;block type=&quot;page/html_pager&quot; name=&quot;product_list_toolbar_pager&quot;/&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/block&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;action method=&quot;setToolbarBlockName&quot;&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;name&amp;gt;product_list_toolbar&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/action&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;lt;/block&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;lt;/reference&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
Change the &lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;category_id&lt;/span&gt;&lt;/i&gt; value for your needs.&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/8705353810875174451/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/03/magento-cms-home-page-with-products-and.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/8705353810875174451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/8705353810875174451'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/03/magento-cms-home-page-with-products-and.html' title='Magento cms home page with products and pager'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-255380439087615538</id><published>2012-02-23T02:09:00.000-08:00</published><updated>2012-02-23T02:17:59.916-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="LDOCE"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Gentoo install libgtk-x11-2.0.so.0</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
OS:&amp;nbsp;Linux solar 3.1.6-gentoo #16 SMP Thu Jan 5 14:49:10 GMT 2012 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
I trying to run LDOCE5 and have this error:&lt;/div&gt;
&lt;div&gt;
Error while loading shared libraries: &lt;i&gt;libgtk-x11-2.0.so.0&lt;/i&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
32bit applications need 32bit libraries, but I have 64bit system.&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Solution:&lt;/b&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
Many 32bit libraries on 64bit gentoo you can install with package&amp;nbsp;&lt;i&gt;app-emulation/emul-linux-x86-gtklibs&lt;/i&gt;. Also this package has needed&amp;nbsp;&lt;i&gt;libgtk-x11-2.0.so.0&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;gt;&amp;nbsp;emerge app-emulation/emul-linux-x86-gtklibs &amp;nbsp;-av&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/255380439087615538/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/02/gentoo-install-libgtk-x11-20so0.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/255380439087615538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/255380439087615538'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/02/gentoo-install-libgtk-x11-20so0.html' title='Gentoo install libgtk-x11-2.0.so.0'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-7955936353140045051</id><published>2012-02-18T11:26:00.001-08:00</published><updated>2012-02-18T11:26:53.353-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>Enable MySQL query cache, in Gentoo</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp;- OS:&lt;/i&gt; Linux solar 3.1.6-gentoo #16 SMP Thu Jan 5 14:49:10 GMT 2012 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp;- MySQL:&lt;/i&gt;&amp;nbsp;mysql &amp;nbsp;Ver 14.14 Distrib 5.1.61, for pc-linux-gnu (x86_64) using readline 5.1&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
No problem :) I need to enable query cache in mysql for testing my site with high load.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Edit mysql config file &lt;i&gt;&quot;/etc/mysql/my.cnf&quot;&lt;/i&gt;.&lt;/div&gt;
&lt;div&gt;
Add those options to the &quot;&lt;i&gt;[mysqld]&quot;&lt;/i&gt; section:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #e69138;&quot;&gt;query-cache-type = 1&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #e69138;&quot;&gt;query-cache-size = 10M&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
Restart mysql daemon:&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #e69138;&quot;&gt;/etc/init.d/mysql restart&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #e69138;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
To check cache enabled or not, run this query:&lt;br /&gt;&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;show variables like &#39;%query_cache%&#39;;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;And you will see that (and other options):&lt;br /&gt;&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;have_query_cache YES&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;query_cache_type ON&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/7955936353140045051/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/02/enable-mysql-query-cache-in-gentoo.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/7955936353140045051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/7955936353140045051'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/02/enable-mysql-query-cache-in-gentoo.html' title='Enable MySQL query cache, in Gentoo'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-6235489734789144002</id><published>2012-02-04T07:44:00.000-08:00</published><updated>2012-02-04T07:44:49.753-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Magento disable user subscribe success email notification</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
Magento 1.6.0&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
In Magento admin you can not disable email notification when user subscribe. &amp;nbsp;So, look to this solution&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
Find script:&lt;br /&gt;
&lt;i&gt;/app/code/core/Mage/Newsletter/Model/Subscriber.php&lt;/i&gt;&lt;br /&gt;and comment folloving line in function &lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;subscribe($email)&lt;/span&gt;&amp;nbsp;&lt;/i&gt;:&lt;br /&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;$this-&amp;gt;sendConfirmationSuccessEmail();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;PS:&lt;/b&gt;&lt;br /&gt;
This is bad solution, because &amp;nbsp;when you upgrade your store to the new version&lt;br /&gt;
those changes will be overwritten. If you not so lazy, create package for yourself ;)&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/6235489734789144002/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/02/magento-disable-user-subscribe-success.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/6235489734789144002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/6235489734789144002'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/02/magento-disable-user-subscribe-success.html' title='Magento disable user subscribe success email notification'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-157054044860822092</id><published>2012-02-03T12:19:00.000-08:00</published><updated>2012-02-04T07:48:42.146-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Magento change amount of emails sended at once</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
Magento 1.6.0&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
In Magento I need decrease of emails count wich will be send by cron at once. &amp;nbsp;Set this value to 8&lt;br /&gt;
and send emails every 5 minutes against default 15.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
Find and edit the following scriots by example.&lt;br /&gt;
&lt;br /&gt;
Change count of emails in one action:&lt;br /&gt;
&lt;i&gt;app/code/core/Mage/Adminhtml/controllers/Newsletter/QueueController.php&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;$countOfSubscritions = 8;&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;app/code/core/Mage/Newsletter/Model/Observer.php&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;$countOfSubscritions = 8&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Change newsletter exec cron &amp;nbsp;time interval:&lt;br /&gt;
&lt;i&gt;/app/code/core/Mage/Newsletter/etc/config.xml&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;lt;crontab&amp;gt;&amp;lt;jobs&amp;gt;&amp;lt;newsletter_send_all&amp;gt;&amp;lt;schedule&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;lt;cron_expr&amp;gt;*/5 * * * *&amp;lt;/cron_expr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;PS:&lt;/b&gt;&lt;br /&gt;
This is bad solution, because &amp;nbsp;when you upgrade your store to the new version&lt;br /&gt;
those changes will be overwritten. If you not so lazy, create package for yourself ;)&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/157054044860822092/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/02/magento-change-amount-of-emails-sended.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/157054044860822092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/157054044860822092'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/02/magento-change-amount-of-emails-sended.html' title='Magento change amount of emails sended at once'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-8662715228810264061</id><published>2012-01-15T01:14:00.000-08:00</published><updated>2012-01-15T01:14:55.659-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="UT2004"/><title type='text'>UT2004 game no sound</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
Linux solar 3.1.6-gentoo #16 SMP Thu Jan 5 14:49:10 GMT 2012 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
No sound in game Unreal Tournament 2004.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
UT2004 uses &lt;i&gt;openal&lt;/i&gt; lib. So you must have this lib in system.&lt;br /&gt;
If you run the game by this binary &lt;i&gt;&quot;Games/ut2004/System/ut2004-bin&quot;&lt;/i&gt; (32bit system),&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
you must have &lt;i&gt;/usr/lib32/openal.so.&lt;/i&gt;&lt;br /&gt;
Or if you use binary&lt;i&gt;&quot;Games/ut2004/System/ut2004-bin-linux-amd64&quot; (64bit system)&lt;/i&gt;,&lt;br /&gt;
you must have &lt;i&gt;/usr/lib64/openal.so.&lt;/i&gt;&lt;br /&gt;
On my Gentoo amd64 it wasn&#39;t installed (case second). So just type in console:&lt;br /&gt;
&lt;i&gt;&amp;gt; emerge&amp;nbsp;media-libs/openal -av&lt;/i&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/8662715228810264061/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/01/ut2004-game-no-sound.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/8662715228810264061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/8662715228810264061'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/01/ut2004-game-no-sound.html' title='UT2004 game no sound'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-5360933733567618249</id><published>2012-01-15T00:38:00.000-08:00</published><updated>2012-01-15T00:38:02.204-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Gentoo"/><title type='text'>Gentoo error: not found libstdc++.so.5</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
- Linux solar 3.1.6-gentoo #16 SMP Thu Jan 5 14:49:10 GMT 2012 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux&lt;br /&gt;
- gcc (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) 4.5.3&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
When I run applicaton it give me this error:&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&amp;gt; emerge&amp;nbsp;app-emulation/emul-linux-x86-compat -av&lt;br /&gt;
It will install also&amp;nbsp;&lt;i&gt;sys-libs/libstdc++-v3&lt;/i&gt;&lt;br /&gt;
Also, may be you need to create a symbolic link in your application to this shared library.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/5360933733567618249/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/01/gentoo-error-not-found-libstdcso5.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/5360933733567618249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/5360933733567618249'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/01/gentoo-error-not-found-libstdcso5.html' title='Gentoo error: not found libstdc++.so.5'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-3406422019040716808</id><published>2012-01-09T15:15:00.000-08:00</published><updated>2012-01-09T15:15:49.424-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Zend Debugger"/><title type='text'>Configure Zend Debugger</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
Linux Gentoo 3.1.6&lt;br /&gt;
PHP 5.3.8-pl0-gentoo&lt;br /&gt;
Apache 2.2.21-r1&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
Need to configure Zend Debugger.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
1) &lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Download Zend Debugger&lt;/span&gt;&lt;/i&gt; from site zend.com&lt;br /&gt;
2) &lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Unpack archive&lt;/span&gt;&lt;/i&gt; to the temporary folder.&lt;br /&gt;
3) &lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Find ZendDebugger.so&lt;/span&gt;&lt;/i&gt; file with version compatibale to your PHP version&lt;br /&gt;
For example, I have &lt;i&gt;PHP version 5.3.8&lt;/i&gt; so my&amp;nbsp;ZendDebugger.so file located in&amp;nbsp;&lt;i&gt;5.3.x folder&lt;/i&gt;.&lt;br /&gt;
4) &lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Copy ZendDebugger.so&lt;/span&gt;&lt;/i&gt; to the folder accesibale by apache.&lt;br /&gt;
For example: &lt;i&gt;/home/&amp;lt;user_name&amp;gt;/Applications/ZendDebugger/ZendDebugger.so&lt;/i&gt;&lt;br /&gt;
5) &lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Edit php.ini&lt;/span&gt;&lt;/i&gt;. Location of php.ini depends by system. For Gentoo is here: &lt;i&gt;/etc/php/apache2-php5.3/php.ini&lt;/i&gt;&lt;br /&gt;
6) &lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Add following lines&lt;/span&gt;&lt;/i&gt; to the end of php.ini:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;[Zend]&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;zend_extension=/home/&amp;lt;user_name&amp;gt;/Applications/ZendDebugger/ZendDebugger.so&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;zend_debugger.allow_hosts=127.0.0.1&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;zend_debugger.expose_remotely=always&lt;/i&gt;&lt;br /&gt;
About this and additional options you can read in internet.&lt;br /&gt;
7) &lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Restart the apache&lt;/span&gt;&lt;/i&gt;. In gentoo just execute &lt;i&gt;/etc/init.d/apache2 restart&lt;/i&gt;&lt;br /&gt;
8) &lt;i&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Check debugger&lt;/span&gt;.&lt;/i&gt;&amp;nbsp;Look to the &lt;i&gt;phpinfo()&lt;/i&gt;&amp;nbsp;if all &quot;ok!&quot; you will see section &quot;Zend Debugger&quot; with config options.&lt;br /&gt;
9) &lt;span style=&quot;color: #b45f06;&quot;&gt;Fix errors. &lt;/span&gt;If you can&#39;t see &quot;Zend Debugger&quot; section&amp;nbsp;look to the apache error log file and fix the errors.&lt;br /&gt;
Log file in Gentoo: /var/log/apache2/error_log&lt;br /&gt;
In my case I have this errors:&lt;br /&gt;
&lt;span style=&quot;color: #e06666;&quot;&gt;* Failed loading&amp;nbsp;/home/&amp;lt;user_name&amp;gt;/Applications/ZendDebugger/ZendDebugger.so: &amp;nbsp;libssl.so.0.9.8: cannot open shared object file: No such file or directory&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #e06666;&quot;&gt;*&amp;nbsp;Failed loading&amp;nbsp;/home/&amp;lt;user_name&amp;gt;/Applications/ZendDebugger/ZendDebugger.so: &amp;nbsp;libcrypto.so.0.9.8: cannot open shared object file: No such file or directory&lt;/span&gt;&lt;br /&gt;
So I create soft links to the existing libs &quot;libssl.so.1.0.0&quot; and &quot;libcrypto.so.1.0.0&quot;&lt;br /&gt;
&lt;i&gt;&amp;gt; ln -s /usr/lib/libssl.so.1.0.0&amp;nbsp;/home/&amp;lt;user_name&amp;gt;/Applications/ZendDebugger/&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;gt;&amp;nbsp;ln -s /usr/lib/libcrypto.so.1.0.0&amp;nbsp;/home/&amp;lt;user_name&amp;gt;/Applications/ZendDebugger/&lt;/i&gt;&lt;br /&gt;
links must be in the same folder with ZendDebugger.so&lt;br /&gt;
&lt;br /&gt;
That&#39;s all.&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/3406422019040716808/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/01/configure-zend-debugger.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/3406422019040716808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/3406422019040716808'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/01/configure-zend-debugger.html' title='Configure Zend Debugger'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-425223561220213846</id><published>2012-01-07T13:10:00.000-08:00</published><updated>2012-01-07T13:10:27.196-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Configure Apache to interpret PHP scripts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
- Linux solar 3.1.6-gentoo #16 SMP Thu Jan 5 14:49:10 GMT 2012 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux,&lt;br /&gt;
- PHP 5.3.8-pl0-gentoo,&lt;br /&gt;
- Apache/2.2.21 (Unix)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
Apache not interpret php scripts, theirs content printed in browser.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
Edit apache config file &lt;i&gt;/etc/conf.d/apache2&lt;/i&gt;&amp;nbsp;(don&#39;t forget this is gentoo!)&lt;br /&gt;
Find string where defined parameter&amp;nbsp;&lt;i&gt;APACHE2_OPTS&lt;/i&gt;&amp;nbsp;and add &quot;&lt;i&gt;-D PHP5&lt;/i&gt;&quot; to his value.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/425223561220213846/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/01/configure-apache-to-interpret-php.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/425223561220213846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/425223561220213846'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/01/configure-apache-to-interpret-php.html' title='Configure Apache to interpret PHP scripts'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-3065186741408343205</id><published>2012-01-07T10:20:00.000-08:00</published><updated>2012-01-07T10:21:38.372-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="KDE"/><category scheme="http://www.blogger.com/atom/ns#" term="Kjots"/><title type='text'>Kjots data migrate to new version (Kjots 4.6 -&gt; Kjots 4.7.3)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
Linux solar 3.1.6-gentoo #16 SMP Thu Jan 5 14:49:10 GMT 2012 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux&lt;br /&gt;
KDE 4.7.3&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
Upgrade kde from 4.6 to 4.7.4 and need to &lt;i&gt;migrate my Kjots data to new application version&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
Open console, and input commands (current user account, not root):&lt;br /&gt;
&amp;gt; cd&amp;nbsp;~/.kde4/share/apps/kjots&lt;br /&gt;
&amp;gt;&amp;nbsp;kjotsmigrator --interactive&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/3065186741408343205/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2012/01/kjots-46-migrate-to-473.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/3065186741408343205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/3065186741408343205'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2012/01/kjots-46-migrate-to-473.html' title='Kjots data migrate to new version (Kjots 4.6 -&gt; Kjots 4.7.3)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-9082549935357154678</id><published>2011-12-25T08:46:00.000-08:00</published><updated>2011-12-25T08:56:49.000-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Zend Framework"/><title type='text'>PHP sessions across sub domains</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
PHP-5.3, Apache-2.2&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
I need a &lt;i&gt;single session&lt;/i&gt; for &lt;i&gt;mysite.com&lt;/i&gt; and &lt;i&gt;admin.mysite.com&lt;/i&gt;&amp;nbsp;domains. I would login on main domain &lt;i&gt;mysite.com&lt;/i&gt;, and will be already authorized on sub domains like &lt;i&gt;admin.mysite.com.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
In script before session start need too setup this session parameters:&lt;br /&gt;
&lt;i&gt;session.cookie_path = &quot;/&quot;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;session.cookie_domain = &quot;.mysite.com&quot;&lt;/i&gt; - dot at the beginning is important, it specify use same sessions on sub domains&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;
Example for Zend Framework application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Define site domain name value:&lt;br /&gt;
&lt;i&gt;*** public/index.php ***&lt;/i&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #b45f06; font-size: x-small;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #b45f06; font-size: x-small;&quot;&gt;defined(&#39;SITE_DOMAIN_NAME&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #b45f06; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;|| define(&#39;SITE_DOMAIN_NAME&#39;, (getenv(&#39;SITE_DOMAIN_NAME&#39;) ? getenv(&#39;SITE_DOMAIN_NAME&#39;) : &#39;mysite.com&#39;));&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #b45f06; font-size: x-small;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
It seems, if server value&amp;nbsp;SITE_DOMAIN_NAME is not defined, craete it. We will use it in config file.&lt;br /&gt;
&lt;br /&gt;
You can define&amp;nbsp;SITE_DOMAIN_NAME in .htaccess file, Anyway he need to be configured on every server separately.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;*** public/.htaccess ***&lt;/i&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;SetEnv SITE_DOMAIN_NAME mysite.com&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Further I set session values in config file&lt;br /&gt;
&lt;i&gt;*** application/configs/application.ini ***&lt;/i&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;[production]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;local.session.cookie_path = &quot;/&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;local.session.cookie_domain = &quot;.&quot; SITE_DOMAIN_NAME&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
This line &amp;nbsp;&lt;i&gt;&quot;.&quot; SITE_DOMAIN_NAME&amp;nbsp;&lt;/i&gt; is equal to &quot;&lt;i&gt;.mysite.com&lt;/i&gt;&quot;&lt;br /&gt;
&lt;br /&gt;
And in Bootstrap.php wee initialize session.&lt;br /&gt;
&lt;i&gt;*** application/Bootstrap.php ***&lt;/i&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;protected function _initSession()&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;$localCfg = new Zend_Config($this-&amp;gt;getOption(&#39;local&#39;), true);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Zend_Session::setOptions($localCfg-&amp;gt;session-&amp;gt;toArray());&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Zend_Session::start();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06; font-size: x-small;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/9082549935357154678/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2011/12/php-sessions-across-sub-domains.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/9082549935357154678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/9082549935357154678'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2011/12/php-sessions-across-sub-domains.html' title='PHP sessions across sub domains'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-2112713975395159362</id><published>2011-12-23T11:53:00.000-08:00</published><updated>2011-12-23T11:54:59.377-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Zend Framework"/><title type='text'>Zend Framework, bind subdomains to modules</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
Zend Framework 1.11, PHP-5.3, Apache 2.2, local pc with Gentoo on board.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
I want to bind subdomains to certain module of Zend Framework application.&lt;/div&gt;
&lt;div&gt;
Example:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;http://mysite.com&lt;/i&gt; - follow to &lt;i&gt;default&lt;/i&gt; module of my app.&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;http://admin.mysite.com&lt;/i&gt;&amp;nbsp;- follow to &lt;i&gt;admin&lt;/i&gt; module.&lt;/div&gt;
&lt;div&gt;
Controllers, actions and params may be various(global variables also):&lt;br /&gt;
&lt;i&gt;http://admin.mysite.com/index/index/foo/bar/......&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
etc.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;1)&lt;/b&gt; Create site with default Zend Framework module structure.&lt;/div&gt;
&lt;div&gt;
/var/www/mysite.com/&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;application/&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; configs/&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; modules/&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;admin/&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; controllers/&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; views/&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;default/&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ......&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Bootstrap.php&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;......&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;2)&lt;/b&gt; Bind &lt;i&gt;DocumentRoot&lt;/i&gt; folder of &lt;i&gt;mysite.com, www.mysite.com, admin.mysite.com&lt;/i&gt; to the same folder. In my case it&#39;s:&lt;br /&gt;
&lt;i&gt;/var/www/mysite.com/public&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;3)&lt;/b&gt; In &lt;i&gt;Bootstrap.php&lt;/i&gt; file init application router:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp;protected function _initRouter()&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;b&gt;{&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;b&gt;$router&lt;/b&gt; = Zend_Controller_Front::getInstance()-&amp;gt;getRouter();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;b&gt;$hostnameDefaultRoute&lt;/b&gt; = new Zend_Controller_Router_Route_Hostname(&#39;:module.mysite.com&#39; &amp;nbsp;, array(&#39;module&#39; =&amp;gt; &#39;default&#39;));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;b&gt;$router-&amp;gt;addRoute&lt;/b&gt;(&#39;default&#39;, $hostnameDefaultRoute-&amp;gt;chain(new Zend_Controller_Router_Route(&#39;:lang/:controller/:action/*&#39;, array(&#39;lang&#39; =&amp;gt; &#39;en&#39;, &#39;controller&#39;=&amp;gt;&#39;index&#39;, &#39;action&#39;=&amp;gt;&#39;index&#39;))));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;b&gt;$hostnameDefaultRoute&lt;/b&gt; = new Zend_Controller_Router_Route_Hostname(&#39;mysite.com&#39; &amp;nbsp;, array(&#39;module&#39; =&amp;gt; &#39;default&#39;));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;b&gt;$router-&amp;gt;addRoute&lt;/b&gt;(&#39;www&#39;, $hostnameDefaultRoute-&amp;gt;chain(new Zend_Controller_Router_Route(&#39;:lang/:controller/:action/*&#39;, array(&#39;lang&#39; =&amp;gt; &#39;ru&#39;, &#39;controller&#39;=&amp;gt;&#39;index&#39;, &#39;action&#39;=&amp;gt;&#39;index&#39;))))&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;b&gt;-&amp;gt;addRoute&lt;/b&gt;(&#39;login&#39; &amp;nbsp;, $hostnameDefaultRoute-&amp;gt;chain(new Zend_Controller_Router_Route_Static(&#39;login&#39;, &amp;nbsp; array(&#39;controller&#39; =&amp;gt; &#39;user&#39;, &#39;action&#39;=&amp;gt;&#39;login&#39;))));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// routes for admin area&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;b&gt;$hostnameAdminRoute&lt;/b&gt; = new Zend_Controller_Router_Route_Hostname(&#39;admin.mysite.com&#39;, array(&#39;module&#39; =&amp;gt; &#39;admin&#39;));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;b&gt;$router-&amp;gt;addRoute&lt;/b&gt;(&#39;admin&#39; , $hostnameAdminRoute-&amp;gt;chain(new Zend_Controller_Router_Route(&#39;:lang/:controller/:action/*&#39;, &amp;nbsp; array(&#39;lang&#39; =&amp;gt; &#39;en&#39;, &#39;controller&#39;=&amp;gt;&#39;index&#39;, &#39;action&#39;=&amp;gt;&#39;index&#39;))))&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;b&gt;-&amp;gt;addRoute&lt;/b&gt;(&#39;settings&#39; , $hostnameAdminRoute-&amp;gt;chain(new Zend_Controller_Router_Route_Static(&#39;settings&#39;, array(&#39;controller&#39; =&amp;gt; &#39;config&#39;, &#39;action&#39; =&amp;gt; &#39;list&#39;))));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
==================================================================&lt;/div&gt;
&lt;div&gt;
In a result will work this url&#39;s:&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;mysite.com/&lt;/i&gt; -&amp;gt; Module: default, IndexController, indexAction, lang: en&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;mysite.com/en/index/index&lt;/i&gt; -&amp;gt; Module: default, IndexController, indexAction, lang: en&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;mysite.com/en/index/index/foo/bar&lt;/i&gt; -&amp;gt;&amp;nbsp;Module: default, IndexController, indexAction, lang: en&amp;nbsp;, params: foo = bar&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;mysite.com/login&lt;/i&gt; -&amp;gt; Module: default, UserController, loginAction&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;admin.mysite.com&lt;/i&gt; -&amp;gt;&amp;nbsp;Module: admin, indexController, indexAction, lang: en&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;admin.mysite.com/en/&lt;/i&gt; -&amp;gt;&amp;nbsp;Module: admin, indexController, indexAction, lang: en&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;admin.mysite.com/settings&lt;/i&gt; -&amp;gt;&amp;nbsp;Module: admin, configController, listAction&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;4)&lt;/b&gt; Also you can use route names in view helper URL. In view script:&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;echo $this-&amp;gt;url(array(), &#39;www&#39;)&lt;/i&gt; will output &#39;&lt;i&gt;mysite.com/en/index/index&lt;/i&gt;&#39;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;echo $this-&amp;gt;url(array(&#39;foo&#39; =&amp;gt; &#39;bar&#39;), &#39;www&#39;)&lt;/i&gt;&amp;nbsp;will output &#39;&lt;i&gt;mysite.com/en/index/index/foo/bar&lt;/i&gt;&#39;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;echo $this-&amp;gt;url(array(), &#39;login&#39;)&lt;/i&gt;&amp;nbsp;will output &#39;&lt;i&gt;mysite.com/login&lt;/i&gt;&#39;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;echo $this-&amp;gt;url(array(&#39;page&#39; =&amp;gt; 1), &#39;admin&#39;)&lt;/i&gt;&amp;nbsp;will output &#39;&lt;i&gt;admin.mysite.com/en/index/index/page/1&lt;/i&gt;&#39;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;echo $this-&amp;gt;url(array(), &#39;settings&#39;)&lt;/i&gt;&amp;nbsp;will output &#39;&lt;i&gt;admin.mysite.com/settings&lt;/i&gt;&#39;&lt;/div&gt;
&lt;div&gt;
Also you can specify controllers and actions&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;echo $this-&amp;gt;url(array(&#39;controller&#39; =&amp;gt; &#39;post&#39;, &#39;action&#39; =&amp;gt; &#39;list&#39;), &#39;www&#39;)&lt;/i&gt;&amp;nbsp;will output &#39;&lt;i&gt;mysite.com/en/post/list&lt;/i&gt;&#39;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;echo $this-&amp;gt;url(array(&#39;action&#39; =&amp;gt; &#39;print&#39;, &#39;id&#39; =&amp;gt; 2), &#39;admin&#39;)&lt;/i&gt;&amp;nbsp;will output &#39;&lt;i&gt;admin.mysite.com/en/index/print/id/2&lt;/i&gt;&#39;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/2112713975395159362/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2011/12/zend-framework-bind-subdomains-to.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/2112713975395159362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/2112713975395159362'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2011/12/zend-framework-bind-subdomains-to.html' title='Zend Framework, bind subdomains to modules'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4087297446568006045.post-8159334514364258321</id><published>2011-12-18T06:53:00.000-08:00</published><updated>2011-12-18T06:53:27.703-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Magento, change emails count in newsletter queue</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Params:&lt;/b&gt;&lt;br /&gt;
Magento 1.6.0&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;
When cron execute newsletters, the count of emails which will be send is limited to 20 per request.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
Notice: This is bad solution!&lt;br /&gt;
Edit script &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06;&quot;&gt;app/code/core/Mage/Adminhtml/controllers/Newsletter/QueueController.php&lt;/span&gt;&lt;br /&gt;
Find string :&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06;&quot;&gt;$countOfSubscritions = 20;&lt;/span&gt;&lt;br /&gt;
and set the value which you need. For me is &quot;8&quot; - limit of my hosting (emails count per request).&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uommo.blogspot.com/feeds/8159334514364258321/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://uommo.blogspot.com/2011/12/magento-change-emails-count-in.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/8159334514364258321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4087297446568006045/posts/default/8159334514364258321'/><link rel='alternate' type='text/html' href='http://uommo.blogspot.com/2011/12/magento-change-emails-count-in.html' title='Magento, change emails count in newsletter queue'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05049528796367910167</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>