WAMP 2.1d 64-bit PHP CLI
Posted by: alasdair (88.211.34.---)
Date: June 29, 2011 03:29PM

I have some php scripts which need be run on the CLI as these will be picked up by a job queue service.

N.B. These are actually CLI scripts I wrote which are currently working on Linux Production Servers and was working on my Zend install.

I have moved from Zend to WAMP for the ability to switch Apache/PHP/MySQL versions even though I have yet to find any versions compatible with 2.1d 64-bit other than those bundled.

The problem I am experiencing is the CLI php is not picking up the values from the php.ini file and specifically mcrypt.

The website uses mcrrypt and this is enabled in the PHP extensions so thw website part works however the job queue fails as the CLI mode of PHP is unaware of mcrypt and does not recognise the mcrypt constants.

How can i get the CLI to work with mcrypt?

Kind Regards,
Alasdair.

Options: ReplyQuote
Re: WAMP 2.1d 64-bit PHP CLI
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: June 29, 2011 03:48PM

your probably editing the wrong php.ini file


apache+ php through localhost use the

phpforapache.ini @c:\wamp\bin\php\5.x.x

and php.ini @ c:\wamp\bin\apache\apache2.2.xx\bin

These are the same files and wamp duplicates them.


the php cli uses
c:\wamp\bin\php\php5.x.x.\php.ini



this is written in the FAQ above

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.