Mac OSX でのPHP設定

投稿者:

OSXにはApacheとPHPはデフォでインストールされているそうです
コマンドパス:/usr/sbin/apachectl
設定ファイル:/ete/httpd/httpd.conf
LoadModule php4_module
AddModule mod_php4.c
この行のコメントをはずして有効にする
sudo /usr/sbin/apachectl start
Configure Command
‘/SourceCache/apache_mod_php/apache_mod_php-17/php/configure’ ‘–prefix=/usr’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ ‘–with-apxs’ ‘–with-ldap=/usr’ ‘–with-kerberos=/usr’ ‘–enable-cli’ ‘–with-zlib-dir=/usr’ ‘–enable-trans-sid’ ‘–with-xml’ ‘–enable-exif’ ‘–enable-ftp’ ‘–enable-mbstring’ ‘–enable-mbregex’ ‘–enable-dbx’ ‘–enable-sockets’ ‘–with-iodbc=/usr’ ‘–with-curl=/usr’ ‘–with-config-file-path=/etc’ ‘–sysconfdir=/private/etc’
コンパイルオプションが渋いですね~

Thank you for reading this post, don't forget to subscribe!