{"id":45,"date":"2010-04-15T17:50:51","date_gmt":"2010-04-15T12:50:51","guid":{"rendered":"http:\/\/www.zubair.info\/blog\/?p=45"},"modified":"2019-08-13T19:38:42","modified_gmt":"2019-08-13T14:38:42","slug":"apache-2-2-x-wont-load-php5apache2-dll-solution","status":"publish","type":"post","link":"https:\/\/www.zubair.info\/blog\/2010\/04\/15\/apache-2-2-x-wont-load-php5apache2-dll-solution.html","title":{"rendered":"Apache 2.2.x won\u2019t load php5apache2.dll solution"},"content":{"rendered":"<p>Recently, I started upgrading all my applications to the latest versions or at least upto the version my hosting providers uses &#8211; i was using <strong>Apache 1.3.x HTTP Server<\/strong>, but I&#8217;ve finally upgraded to the latest version which is <strong>Apache 2.2.15<\/strong> &amp; <strong>PHP 5.3.2<\/strong> as of writing this post. I think it&#8217;s a good idea to keep your Apache \/ PHP and MySQL up-to date with the latest release or at least up-to date to match your Web Hosting Provider. Anyways, while i was upgrading from Apache 1.3.4 to Apache 2.2.15 i ran into a problem &#8211; Apache 2 actually installed pretty smoothly without any complicated issues arising. After the Apache &amp; PHP Installation I started to setup Apache to use PHP where the real problem begin, Apache couldn&#8217;t load the <code><strong>php5apache2.dll<\/strong><\/code> Module, it was saying that the module can&#8217;t be found (look at the below pic to see the error i was getting). <a href=\"http:\/\/www.zubair.info\/blog\/wp-content\/uploads\/2010\/04\/post-apache2_2x-wont-load-php-module-error.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.zubair.info\/blog\/wp-content\/uploads\/2010\/04\/post-apache2_2x-wont-load-php-module-error.gif\" alt=\"Apache 2.2.x Can&#039;t Load php5apache2.dll Module Error\" title=\"Apache 2.2.x Can&#039;t Load php5apache2.dll Module Error\" width=\"600\" height=\"121\" class=\"aligncenter size-full wp-image-339\" srcset=\"https:\/\/www.zubair.info\/blog\/wp-content\/uploads\/2010\/04\/post-apache2_2x-wont-load-php-module-error.gif 600w, https:\/\/www.zubair.info\/blog\/wp-content\/uploads\/2010\/04\/post-apache2_2x-wont-load-php-module-error-300x60.gif 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a> I was using the PHP Installation Manual (install.txt) all this time that came included with the PHP zip file, i had the below values added as said in that install file: <code> # For PHP 5 do something like this: LoadModule php5_module \"c:\/php\/<strong>php5apache2.dll<\/strong>\" AddType application\/x-httpd-php .php<\/code> <code> # configure the path to php.ini PHPIniDir \"C:\/php\"<\/code> I then double checked the PHP installation directory to make sure there is a file called <strong>php5apache2.dll<\/strong> and sure enough, it was there. While i was checking for the above file I also noticed that there is another file in that directory called <strong>php5apache2_2.dll<\/strong>. I tried giving that file a try and change the file name in <strong>httpd.conf<\/strong> from <code>php5apache2.dll<\/code> to <code>php5apache2_2.dll<\/code>, <strong>Which got it working!<\/strong> It was a really simple fix but very easy to overlook it. Hope this will save others (who come across this issue) some valuable time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I started upgrading all my applications to the latest versions or at least upto the version my hosting providers uses &#8211; i was using Apache 1.3.x HTTP Server, but I&#8217;ve finally upgraded to the latest version which is Apache 2.2.15 &#038; PHP 5.3.2 as of writing this post.<\/p>\n","protected":false},"author":1001009,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35,20],"tags":[39,36,37,61,38,40,60,59,17,41],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-apache","category-php","tag-apache-modules","tag-apache-web-server","tag-httpd-server","tag-httpd-conf","tag-php-5","tag-php-modules","tag-php5apache2_2-dll","tag-php5apache2-dll","tag-programming","tag-troubleshooting"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.zubair.info\/blog\/wp-json\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubair.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubair.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubair.info\/blog\/wp-json\/wp\/v2\/users\/1001009"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubair.info\/blog\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":0,"href":"https:\/\/www.zubair.info\/blog\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zubair.info\/blog\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubair.info\/blog\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubair.info\/blog\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}