M
M
Maxim Barulin2014-04-25 13:02:41
PHP
Maxim Barulin, 2014-04-25 13:02:41

Oddities of php + apache versions under windows

Good day,% habrauser%!
I installed the latest Apache from here , downloaded the latest version of php 5.5 ts from here , configured httpd.conf,
checked the console:

>php -v
PHP 5.5.11 (cli) (built: Apr  8 2014 15:07:14)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

>php -i | grep 'PHP Version'
PHP Version => 5.5.11

I display phpinfo () in the browser and, lo and behold, I see
PHP Version 5.4.11
Compiler	MSVC9 (Visual C++ 2008)
, although I downloaded and installed everything VC11.
At the same time, if you look at the paths, then they all lead to the right place.
The apache2handler section also shows what is needed
Apache Version Apache/2.4.9 (Win32) PHP/5.5.11
. But the Core section says that I'm wrong . There are
PHP Version 5.4.11
no other versions of php on the computer. I did not put it through the installers.
Where did I go wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Barulin, 2014-04-25
@Slavenin999

E-my... as it turned out, the problem is that by default php under Windows catches files from windows and windows / system32 ... and there was an old version of the php5ts.dll file, after its removal everything fell into place.

A
AxisPod, 2014-04-25
@AxisPod

Why suffer so? Install xampp.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question