がるの健忘録

エンジニアでゲーマーで講師で占い師なおいちゃんのブログです。

Apache2にPHP5系をインストールしてみたりする実験

いろ〜いろ大変だったのですが。結局のところ大切なものは一つだけだったりしました。


./configure する前に必ず make clean すること!!


エラーメッセージとしては
httpd: Syntax error on line xxx of /opt/apache_2.2.3/conf/httpd.conf: API module structure `php5_module' in file /opt/apache_2.2.3/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?
とかって感じのものが予測されたりします。


…まぁ、本来必須ではあるのですが…最近あんまり意味のないmake cleanだったのですが。
どうやらMustだったようです(苦笑


ちなみに、これが通ったconfigureです。てんこ盛りなのは「色々やってる」からです(笑


./configure \
--with-config-file-path=/etc \
--with-apxs2=/opt/apache_2.2.3/bin/apxs \
--with-mcrypt \
--with-mysql= \
--with-gd \
--with-zlib-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-freetype-dir=/usr/lib \
--with-pgsql=/opt/db/postgresql-8.0.3 \
--with-gmp \
--enable-zend-multibyte \
--disable-posix-threads \
--enable-mbstring \
--enable-ftp \
--enable-versioning \