Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install php_posix php extension in windows?

Tags:

php

I'm trying to play with symfony in windows, and when I run the check configuration script gives me the next error:

[[WARNING]] The posix_isatty() is available: FAILED
        *** Install and enable the php_posix extension (used to colorized the CLI output) ***

how can I install the php_posix in windows or it's not possible to install in windows?

like image 402
j2gl Avatar asked Jul 08 '11 00:07

j2gl


People also ask

How do I enable PHP extensions in Windows?

On Windows, you have two ways to load a PHP extension: either compile it into PHP, or load the DLL. Loading a pre-compiled extension is the easiest and preferred way. To load an extension, you need to have it available as a ". dll" file on your system.

Where do I put PHP INI extension?

Go to your php. ini file and add the following line: extension=<extension_name>. dll. To verify that the extension was loaded properly, go to Setup | Extensions and locate the extension from the list.


2 Answers

The POSIX extension cannot be installed on Windows as stated on http://ca3.php.net/manual/en/intro.posix.php.

Note: This extension is not available on Windows platforms.

The Windows shell doesn't support color. If you want to play around with Symfony MVC Framework on Windows, you may need to use Cygwin or WAMP (or something similar).

like image 187
Francois Deschenes Avatar answered Oct 06 '22 00:10

Francois Deschenes


For colorized output support in Windows, you have two options, ansicon and cygwin. However Symfony2 will only auto-colorize if ANSICON env variable. In cygwin you have to set the variable in ~/.bash_rc.

Bonus: Also download puTTYCyg for cygwin.

like image 30
ken Avatar answered Oct 06 '22 00:10

ken