{"id":39,"date":"2011-08-25T00:07:18","date_gmt":"2011-08-24T22:07:18","guid":{"rendered":"http:\/\/vladimir-shapiro.com\/en\/blog\/2011\/08\/25\/symfony2-and-xampp-174-problems\/"},"modified":"2016-08-18T11:31:51","modified_gmt":"2016-08-18T09:31:51","slug":"symfony2-and-xampp-174-problems","status":"publish","type":"post","link":"https:\/\/vladimir-shapiro.com\/en\/blog\/2011\/08\/25\/symfony2-and-xampp-174-problems\/","title":{"rendered":"Symfony2 and XAMPP 1.7.4 Problems"},"content":{"rendered":"<p>This evening I&#8217;ve spent installing <a href=\"http:\/\/symfony.com\/\">Symfony2<\/a> in the <a href=\"http:\/\/www.apachefriends.org\/en\/xampp-windows.html\">XAMPP 1.7.4<\/a> environment on Windows&nbsp;7.<br \/>\nFirst, many thanks goes to <a href=\"http:\/\/www.sebastian-widmann.de\/\">Sebastian Widmann<\/a> for his <a href=\"http:\/\/www.sebastian-widmann.de\/2011\/08\/18\/symfony2-mag-xampp-nicht-direkt\/\">original post in German<\/a> which already saved me a lot of time. Unfortunately the steps which were mentioned there are not sufficient (at least on my Win7 installation). My story follows&#8230;<!--more--><\/p>\n<p>After extracting Symfony2 in your web root directory and running the initial app\/check.php you are facing the following 3 issues:<\/p>\n<ol>\n<li>Missing internationalization\u00c2\u00a0 (intl extension)<\/li>\n<li>Missing cache (APC extension)<\/li>\n<li>Enabled short tags<\/li>\n<\/ol>\n<p><strong>Issue 1: php_intl.dll<\/strong><\/p>\n<p>This is the easiest one. Simply copy all of your\u00c2\u00a0 xampp\/php\/icu*36.dll into xampp\/apache\/bin and add the following line to your xampp\/php\/php.ini:<\/p>\n<pre>extension=php_intl.dll<\/pre>\n<p><strong>Issue 2: php_apc.dll<\/strong><\/p>\n<p>This is\u00c2\u00a0 a bit more tricky. As XAMPP 1.7.4 is based on PHP 5.3\u00c2\u00a0 make sure that you download the correct DLL for this version (php_apc-3.1.5-5.3-vc6-x86.zip) from <a href=\"http:\/\/downloads.php.net\/pierre\/\">here<\/a>. Extract dll to your xampp\/php\/ext folder and add the next line to your xampp\/php\/php.ini:<\/p>\n<pre>extension=php_apc.dll<\/pre>\n<p>If you download the wrong apc version you will quickly realize it by testing the basic xampp applications. E.g. the login to your PhpMyAdmin\u00c2\u00a0 installation will not work.<\/p>\n<p><strong>Issue 3: <\/strong><strong>short_open_tag<\/strong><\/p>\n<p>And last but not least&#8230; For whatever reason the new xampp is delivered with the following settings in php.ini:<\/p>\n<pre>; Default Value: On\r\n; Development Value: Off\r\n; Production Value: Off\r\n; http:\/\/php.net\/short-open-tag\r\nshort_open_tag = Off\r\n; XAMPP for Linux is currently old fashioned\r\nshort_open_tag = On\r\n<\/pre>\n<p>Change the last On into Off and your Symfony installation will work.<\/p>\n<p>A nice side effect of the last change: prepared that your xampp web control (localhost\/xampp) will <em>not<\/em> work with this setting. Reason: XAMPP developers have managed to deliver the native xampp coding with the short tags. <a href=\"http:\/\/www.apachefriends.org\/f\/viewtopic.php?f=16&amp;t=46848#p180316\">It seems to be a bug<\/a>, however it is not clear when it will be fixed (may be in <a href=\"http:\/\/www.apachefriends.org\/en\/xampp-beta.html\">1.7.5<\/a>?). Have a nice time going through all xampp\/htdocs\/xampp\/ scripts and fixing all &lt;? and &lt;?= combinations! :)<\/p>\n<p>Enjoy your life.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This evening I&#8217;ve spent installing Symfony2 in the XAMPP 1.7.4 environment on Windows&nbsp;7. First, many thanks goes to Sebastian Widmann for his original post in German which already saved me a lot of time. Unfortunately the steps which were mentioned there are not sufficient (at least on my Win7 installation). My story follows&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/vladimir-shapiro.com\/en\/blog\/wp-json\/wp\/v2\/posts\/39"}],"collection":[{"href":"https:\/\/vladimir-shapiro.com\/en\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vladimir-shapiro.com\/en\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vladimir-shapiro.com\/en\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vladimir-shapiro.com\/en\/blog\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":1,"href":"https:\/\/vladimir-shapiro.com\/en\/blog\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/vladimir-shapiro.com\/en\/blog\/wp-json\/wp\/v2\/posts\/39\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/vladimir-shapiro.com\/en\/blog\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vladimir-shapiro.com\/en\/blog\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vladimir-shapiro.com\/en\/blog\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}