The best way is to visit this article
The best way is to visit this article
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
sudo su -
Activar o Apacheapachectl start
cd /etc/apache2/
cp httpd.conf httpd.conf.bak
nano httpd.conf
LoadModule php5_module libexec/apache2/libphp5.so
apachectl restart
<?php phpinfo(); ?>
export PATH=/usr/local/mysql/bin:$PATH
cd /var
mkdir mysql
cd mysql
ln -s /tmp/mysql.sock mysql.sock
nano /etc/apache2/httpd.conf
LoadModule deflate_module libexec/apache2/mod_deflate.so
LoadModule expires_module libexec/apache2/mod_expires.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
<!-- geometry --> <dtm:DataTypeMapping > <dtm:SourceDataType> <dtm:DataTypeName>geometry</dtm:DataTypeName> </dtm:SourceDataType> <dtm:DestinationDataType> <dtm:SimpleType> <dtm:DataTypeName>DT_IMAGE</dtm:DataTypeName> </dtm:SimpleType> </dtm:DestinationDataType> </dtm:DataTypeMapping>
<!-- geography --> <dtm:DataTypeMapping > <dtm:SourceDataType> <dtm:DataTypeName>geography</dtm:DataTypeName> </dtm:SourceDataType> <dtm:DestinationDataType> <dtm:SimpleType> <dtm:DataTypeName>DT_IMAGE</dtm:DataTypeName> </dtm:SimpleType> </dtm:DestinationDataType> </dtm:DataTypeMapping>