PHP不是识别OneThink的验证码-解决翻案<br>
<span style="color:rgb(68,68,68); font-family:'Open Sans',Helvetica,Arial,sans-serif; font-size:14px; line-height:24px; margin:0px; padding:0px; border:0px; vertical-align:baseline">PHP安装</span><br style="color:rgb(68,68,68); font-family:'Open Sans',Helvetica,Arial,sans-serif; font-size:14px; line-height:24px"><span style="color:rgb(68,68,68); font-family:'Open Sans',Helvetica,Arial,sans-serif; font-size:14px; line-height:24px">要考虑安装SVN所需的东西(Apache),OneThink的东西</span><br>
1.安装依赖项 yum install perl yum install libxml2 yum install libxml2-devel yum install libjpeg libjpeg-devel yum install libpng-devel yum install freetype-devel yum install gd-devel yum install curl curl-devel 2.配置源码 cd ~/src //转到存放源代码压缩包的目录中。 tar zxvf php-5.3.13.tar.gz cd php-5.3.13/ ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-zlib --with-jpeg-dir=/usr/lib64/ --with-png-dir=/usr/lib64/ --with-freetype-dir=/usr/lib64/ --enable-gd-native-ttf --enable-sockets --with-iconv --enable-mbstring --with-config-file-path=/usr/local/php5/etc --enable-zlib=/usr/lib64/ --enable-zip --with-curl --with-xpm-dir=/usr/lib64/make make install cp php.ini-production /usr/local/php5/etc/php.ini 3.重启Apache服务器,使用phpinfo查看php是否安装成功。 service apache2 restart 在默认的网站目录中,新建php文件,然后用web browser 或者wget测试 (如果curl没有开启,请检查php.ini 文件是否存在 extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/" extension = curl.so 不存添加即可)
<br>
checking for jpeg_read_header in -ljpeg... yesIf configure fails try --with-vpx-dir=<dir>checking for png_write_image in -lpng... yesconfigure: error: libXpm.(a|so) not found.</dir>
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-zlib --with-jpeg-dir=/usr/lib64/ --with-png-dir=/usr/lib64/ --with-freetype-dir=/usr/lib64/ --enable-gd-native-ttf --enable-sockets --with-iconv --enable-mbstring --with-config-file-path=/usr/local/php5/etc --enable-zlib=/usr/lib64/ --enable-zip --with-curl --with-xpm-dir=/usr/lib64/x11
cp
php.ini-production
/usr/local/php5/etc/php
.ini
<br>