symfony - Different versions of PHP on OS X 10.9 -
i trying symphony framework installed on laptop (running os x 10.9 mavericks), far can't started because of error messages
the first thing not being error seems have multiple versions of php running , remove except latest version (5.5.12). can please tell me how can achieve this?
i compiled , built newest version of php source , installed (which should replace original version), seeing 2 different versions when using phpinfo()
webpage , php -v
command line:
phpinfo(): php version 5.4.24 php -v: php 5.5.12 (cli) (built: may 29 2014 11:21:46)
i compiled , built newest version of php source , installed (which should replace original version), seeing 2 different versions when using
phpinfo()
webpage ,php -v
command line:
php command line 100% different php loaded via apache module. wiping out old version won’t solve issue & might cause other issues. don’t ever attempt that. instead install version of php want run , edit apache config load proper libphp5.so
php 5.5.12 module.
in mac os x 10.9.3 install default system apache config located here:
/private/etc/apache2/httpd.conf
and in there commented out line—might uncommented in yours—that reads:
#loadmodule php5_module libexec/apache2/libphp5.so
so need make sure create similar line libphp5.so
php 5.5.12 module so:
loadmodule php5_module /path/to/the/new/version/of/php/libphp5.so
making sure change /path/to/the/new/version/of/php/
match actual libphp5.so
php 5.5.12 module.
then restart apache web service & should good.
remember this: when comes unix/linux tools & configurations, never have forcefully uninstall components solve issues this. it’s getting configuration straight.
all said, might make live easier running mamp instead of compiling source this. mamp self-contained lamp stack mamp has latest versions of php installed. , since runs application, none of issues facing compiling source ever happen when use mamp.
Comments
Post a Comment