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?
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.
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.
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With