title: Unable to switch from PHP5 to PHP7 using Apache 2.4
body: <p>I recently downloaded the latest version of AppServ (<code>Appserv8</code>) for Windows.
  It installs <code>Apache 2.4</code>, <code>MySQL 5.7</code> and both version of <code>PHP5</code> and <code>PHP7</code>. After installing, the used version of PHP is 5.</p>
  
  <p>I've tried to switch the version using the script "<em>PHP Version Switch</em>" provided with the installation but it seems not working.</p>
  
  <p>I've tried to manually edit the <code>http.conf</code> file in <code>Apache24</code> folder but without results.</p>
  
  <p>With these lines Apache starts normally with PHP5:</p>
  
  <pre><code>LoadModule php5_module C:/AppServ/php5/php5apache2_4.dll
  PHPIniDir "C:/AppServ/php5/"
  </code></pre>
  
  <p>If I edit with:</p>
  
  <pre><code>LoadModule php7_module C:/AppServ/php7/php7apache2_4.dll
  PHPIniDir "C:/AppServ/php7/"
  </code></pre>
  
  <p>When I try to start Apache, I obtain the following error:</p>
  
  <pre><code>httpd.exe: Syntax error on line 180 of C:/Appserv/Apache24/conf/httpd.conf: Cannot load C:/Appserv/php7/php7apache2_4.dll into server: Impossibile trovare il modulo specificato.
  </code></pre>
  
  <p>(Part of the error is in italian: unable to find the specified module)</p>
  
  <p>Note that the dll is in the folder as specified in the path. I'm stuck with this error and I don't know where I have to modify configuration file (if is this the problem).</p>
  
  <p><strong>EDIT1:</strong>
  Somewhere I've found <a href="https://jaredmeredith.wordpress.com/2015/12/21/stuck-on-cannot-load-php7apache2_4-dll-into-server-the-specified-module-could-not-be-found-try-this/" rel="nofollow">this discussion</a> in which the author explain that, because of a dependencies of Visual C++, the DLL can be not readable. I checked my system, I cleaned it from multiple installation of Microsoft Visual C++ redistributable and I tried to install x64 or x86 versions.</p>
  
  <p>With the x86 version, I have the previous problem.
  With the x64 version, I can't start Apache because of a missing dll: it should be because apache is x86 version (I'm not sure of this).</p>
  
  <p><strong>EDIT2:</strong>
  As suggested from @chugadie, I tried to use <a href="http://dependencywalker.com/" rel="nofollow">dependencywalker</a> to trace dependencies.
  I found several missing files with prefix <code>API-MS-WIN-CRT</code>.
  Now I'm trying to fix but I have several problems with dll which are x86 and x64. I think the best way is to reinstall all components in x64 architecture.</p>
  
  <p>Any help is very appreciated.</p>