0

So basically i am trying to run yii-framework on wamp server but required higher version of php (5.4 above). In my Wamp server, the php version is 5.5 which i have checked on browser (localhost). But the when i run it on windows, it fails because the windows version is only 5.3. It causes the yii framework fail too because when i type php requirements.php. it does not work.

2
  • 2
    and your programming problem is... what? Commented Dec 4, 2015 at 18:39
  • you can't upgrade the php windows version and change the fastcgi with new php ? Commented Dec 4, 2015 at 19:48

1 Answer 1

2

There is no Windows version of PHP so basically you must have installed a version of PHP manually i.e. not with WAMPServer.

This will probably have added an entry on you PATH ( always a bad idea when using WAMPServer anyway as you can have many versions of PHP on your system at one time with WAMPServer)

Look at your PATH and if you must, amend it to point to the PHP in \wamp\bin\php\php{version}

A better way is to remove any reference to PHP from the PATH environmant variable and write a simple batch file to add php to your path only when you want to, like this

Batch file saved in C:\windows\phppath.cmd

echo off
PATH=%PATH%;c:\wamp\bin\php\php5.4.16

Assuming you have php5.4.16 on your wampserver install.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, the problem is with the path

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.