Upgrading PHP

Yes, but you have not explained how you installed it before which was my point of this question. It’s important to know how you installed it because then I will know what you are missing. But if you keep avoiding this question, I can’t help you figure out what the problem is.

Also, look at what I am seeing from your httpd.conf file.

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
LoadModule php5_module "c:/php71/php7apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "C:/php71"

Let’s pin it more down.

LoadModule php5_module "c:/php71/php7apache2_4.dll"

Also, your PHP directory isn’t php7.1 as you have said in this post.

It’s actually php71.

Unfortunately I cannot remember how I installed it before…it was a long time ago.
Your logic is correct but I cannot remember…nonetheless I must tell I have a strong feeling that the problem is related with VC++ Redistributable since I have made all the corrections you are mentioning above to the underlying files.

It’s ok. I know how you installed it based on the httpd.conf you gave me. Try these steps to see if it works.

  • Open command prompt with admin permissions - needs to be from the context menu Run as administrator.
  • While in command prompt. Type in cd ../../apache24/bin - replace apache24 with your own setup.
  • Next, while you are in the bin folder, type httpd -k uninstall. This will uninstall your current Apache service.
  • After that, type httpd -k install. This will reinstall a new Apache service.

At any point, if httpd -k install doesn’t work and it says that you must correct the errors in order to continue and if there’s any errors, type httpd and it’ll output the line where it’s complaining about. That’s where you have to fix the problem.

Once you correct everything and Apache was successfully reinstalled, try creating a sample file with phpinfo() in it. It should tell you the version you have.


If all fails, you should definitly check your httpd.conf file since that’s where it’s going to complain the most for the upgrade if you did it incorrectly.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.