豚吐露@wiki

install

最終更新:

Bot(ページ名リンク)

- view
管理者のみ編集可

FuelPHP install

CentOS 6.4
PHP 5.3.25


壮絶にトラブった。(´д`;)

apache経由でphpinfo()表示させると、Configure Commandにいっぱい表示されるのに、
./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-rpath --without-pear --with-bz2 --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --enable-gd-native-ttf --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --with-kerberos --enable-ucd-snmp-hack --enable-shmop --enable-calendar --without-sqlite --with-libxml-dir=/usr --enable-xml --with-system-tzdata --with-apxs2=/usr/sbin/apxs --without-mysql --without-gd --disable-dom --disable-dba --without-unixODBC --disable-pdo --disable-xmlreader --disable-xmlwriter --without-sqlite3 --disable-phar --disable-fileinfo --disable-json --without-pspell --disable-wddx --without-curl --disable-posix --disable-sysvmsg --disable-sysvshm --disable-sysvsem
# echo '<?php phpinfo(); ?>' | php
ってすると、
Configure Command => './configure' '--with-mysql=mysqld' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd'

そのせいでoilにFuel環境作らせたら...
[RuntimeException]
You must enable the openssl extension to download files via https
って落ちるし...orz

結局、原因は何よ?言うたら、どうもPHPが2箇所に入っとって、phpコマンドとapacheのphpとで参照しとるのが違ったせいみたい。
whereisしたら見事に複数あった。
# whereis php
php: /usr/bin/php /etc/php.ini /etc/php.d /usr/lib64/php /usr/local/bin/php /usr/local/lib/php /usr/share/php /usr/share/man/man1/php.1.gz
実行fileは『/usr/bin/php』と『/usr/local/bin/php』だけだったので、
# echo '<?php phpinfo(); ?>' | /usr/bin/php
# echo '<?php phpinfo(); ?>' | /usr/local/bin/php
を実行してみたら、案の定apacheとコマンドの差になった。
と、言うわけで、参照したくない方のphpをuninstallして事なきを得ました。(´д`;)



更新日: 2013年09月09日 (月) 15時01分43秒

名前:
コメント:

すべてのコメントを見る
記事メニュー
ウィキ募集バナー