在MAC OS上一步一步搭建PHP開發環境

官方:http://php.net/manual/en/install.unix.apache2.phpphp

更新Apache到2.4版本

http://mac-dev-env.patrickbougie.com/apache/mysql

更新PHP到5.6版本

http://php-osx.liip.ch/sql

安裝MySQL

brew install mysqlapache

安裝 Xdebug

https://xdebug.org/docs/installcurl

xdebug.profiler_output_dir = "/tmp/xdebug/" xdebug.profiler_enable = On xdebug.remote_enable=On xdebug.remote_host="localhost" xdebug.remote_port=9000 xdebug.remote_handler="dbgp" xdebug.idekey=ECLIPSE_DBGPsocket

./configure --prefix=/usr/local/php-5.3.5
--with-config-file-path=/usr/local/php-5.3.5/etc
--with-config-file-scan-dir=/usr/local/php-5.3.5/etc/conf.d
--enable-fpm
--with-fpm-user=www
--with-fpm-group=www
--with-pear
--with-curl
--with-gd
--with-jpeg-dir
--with-png-dir
--with-freetype-dir
--with-iconv
--with-mcrypt
--with-mhash
--with-zlib
--with-xmlrpc
--with-xsl
--with-openssl
--with-mysql
--with-mysqli
--with-pdo-mysql
--disable-debug
--enable-zip
--enable-sockets
--enable-soap
--enable-mbstring
--enable-magic-quotes
--enable-inline-optimization
--enable-memory-limit
--enable-xml
--enable-ftp
--enable-exif
--enable-wddx
--enable-bcmath
--enable-calendar
--enable-sqlite-utf8
--enable-shmop
--enable-dba
--enable-sysvsem
--enable-sysvshm
--enable-sysvmsg
make && make install
相關文章
相關標籤/搜索