12 2013 档案
摘要:初学php,配置起来老出问题,找了篇不错的帖子,一试就通过了,所以就顺带着转了过来。不过在我安装phpMyAdmin的时候还是发现这篇文章的一个问题,就是php.ini如果放在system32下,启动phpMyAdmin的时候会报“Cannot loadmysqlextension. Please check your PHP configuration.”这个错误,实际上应该放到WINDOWS目录下,就没有问题了(我用的是Windows 2003)。以下为转帖内容:原文出处:http://hi.baidu.com/oyej/blog/item/d5b934344497d23a5bb5f5c5
阅读全文
摘要:$ sshfs root@00.00.00.00:/data/www/rabbit/Upload/ /mnt/file_server_storage
阅读全文
摘要:/usr/local/lnmpsrc/imagick-3.0.1/imagick_class.c:9673: warning: assignment makes pointer from integer without a cast/usr/local/lnmpsrc/imagick-3.0.1/imagick_class.c:9673: error: ‘php_imagick_object’ has no member named ‘magick_wand’make: *** [imagick_class.lo] Error 1安装im
阅读全文
摘要:php 5.3.6 中 php-fpm 配置 成 服务启动从php5.3.3开始 源码中开始包含 php-fpm,不用专门再打补丁了,只需要解开源码直接configure,关于php-fpm的编译参数有 –enable-fpm –with-fpm-user=www –with-fpm-group=www –with-libevent-dir=libevent位置。这个php-fpm 不再支持 php-fpm 补丁具有的 /usr/local/php/sbin/php-fpm (start|stop|reload)等命令,需要使用信号控制:master进程可以理解以下信号SIGINT, SIGT
阅读全文
摘要:在安装php时,报如下错误In file included from /kk/php-5.4.0/ext/gd/gd.c:103:/kk/php-5.4.0/ext/gd/gd_ctx.c: In function ‘_php_image_stream_putc’:/kk/php-5.4.0/ext/gd/gd_ctx.c:51: 错误:‘struct gdIOCtx’ 没有名为 ‘data’ 的成员/kk/php-5.4.0/ext/gd/gd_ctx.c: In function ‘_php_image_stream_putbuf’:/kk/php-5.4.0/ext/gd/gd_ctx.
阅读全文
摘要:检查下面是不是已经安装,如果没有安装之:检查:yum list openldapyum list openldap-devel安装 :yum install openldapyum install openldap-develphp5.3
阅读全文
摘要:今天配置一台server的php支持curl的时候, 出现如下报错checking for cURL in default path... not foundconfigure: error: Please reinstall the libcurl distribution -easy.h should be in/include/curl/其实就是curl的dev包没有安装, 解决方案:终端下# yum -y install curl-devel然后就可以继续了
阅读全文
摘要:今天配置一台server的php支持curl的时候, 出现如下报错checking for cURL in default path... not foundconfigure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/其实就是curl的dev包没有安装, 解决方案:终端下# yum -y install curl-devel可以
阅读全文
摘要:./configure --prefix=/usr/local/php --with-gd=/usr/local/gd --with-jpeg-dir=/usr/local/jpeg --with-png-dir=/usr/local/png --with-freetype-dir=/usr/local/freetype --with-mysql=/usr/local/mysql --with-iconv-dir=/usr/local --with-mcrypt --with-mhash --with-zlib --enable-xml --disable-rpath --enable-bcm
阅读全文
摘要:今天在centos 6.2 64位版本上安装LNMP,config php的时候出现下面错误而退出configure: error: Cannot find ldap libraries in /usr/lib解决办法:cp -frp /usr/lib64/libldap* /usr/lib/然后再./configure ...即可
阅读全文
摘要:配置php的时候出现以下问题解决方案checking for MySQL support... yeschecking for specified location of the MySQL UNIX socket...nochecking for MySQL UNIX socket location... noconfigure: error: Cannot find libmysqlclient_r under/usr/local/mysql. Note that the MySQL client library is not bundledanymore!其实这跟PHP没有关系,那是因为
阅读全文
摘要:我是今天再用emboss得时候发现出现问题了,再网上搜索了一下,发现有人和我一样得问题,解决得方法是:wget -O /usr/lib64/libmysqlclient.so.15 http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15chmod 755 /usr/lib64/libmysqlclient.so.15
阅读全文
摘要:make install出现了cp: cannot stat `ext/phar/phar.phar': No such file or directory于是我又: cd ext/phar/ls -l结果发现没有phar.phar 这个文件!!于是我怀疑是phar.php ,cp ./phar.php ./phar.pharmake install没有问题了呀!!问题解决呀!!
阅读全文
摘要:前两天一个站点转移过来,因为给我的数据库有问题,我也没有仔细处理这个站点。今天把数据库弄好了,发现还是用不了,报的错误如下:Fatal error: Class ‘mysqli’ not found in。原来是我之前在编译php的时候,没有把mysqli的支持编译进去,解决问题的办法,就是重新编译一下 mysqli是优化后的mysql,具体的优点baidu下就ok了 cd php-5.2.8 在这下面有个ext文件夹里有mysqli cd ext/mysqli linux下将源码文件编译应该都有configure吧,可这里没有,在我们已经安装php后,php5这个文件夹里的命令目录b...
阅读全文
摘要:硬件环境:Dell PowerEdge 1950,4核Intel(R) Xeon(R) CPU E5410 @ 2.33GHz4G内存系统环境:CentOS release 5.2,内核版本: 2.6.18-92.el5安装步骤:一、编译安装php 5.4.3所需的支持库1.下载以下rpm包到/usr/local/softwarecurl-devel-7.15.5-2.el5.i386.rpm krb5-devel-1.6.1-25.el5.i386.rpm libpng-devel-1.2.10-7.1.el5_0.1.i386.rpm MySQL-client-5.5.24-1.linux
阅读全文
摘要:安装到mcrypt的时候出现了问题./configure提示出错,首先提示*** Could not run libmcrypt test program, checking why…*** The test program failed to compile or link. See the file config.log for the*** exact error that occured. This usually means LIBMCRYPT was incorrectly installed*** or that you have moved LIBMCRYPT since it
阅读全文
摘要:(以下步骤均为本人实际操作,可能与你的安装方法有所区别,但我会尽量排除疑惑)大致步骤(1)安装mcrypt,(2)安装php对mcrypt的扩展,(3)重启apache(1)、确认你的linux没有安装mcrypt库,如果已安装,跳过安装步骤[root@test-206 ~]# yum list installed|grep mcryptlibmcrypt.x86_64 2.5.8-4.el5.centos installedlibmcrypt-devel.x86_64 2.5.8-4....
阅读全文
摘要:在安装php时,报如下错误In file included from /kk/php-5.4.0/ext/gd/gd.c:103:/kk/php-5.4.0/ext/gd/gd_ctx.c: In function ‘_php_image_stream_putc’:/kk/php-5.4.0/ext/gd/gd_ctx.c:51: 错误:‘struct gdIOCtx’ 没有名为 ‘data’ 的成员/kk/php-5.4.0/ext/gd/gd_ctx.c: In function ‘_php_image_stream_putbuf’:/kk/php-5.4.0/ext/gd/gd_ctx.
阅读全文
摘要:ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':/home/king/php-5.2.13/ext/iconv/iconv.c:2491: undefined reference to `libiconv_open'collect2: ld returned 1 exit statusmake: *** [sapi/cli/php] Error 1[root@test php-5.2.13]# vi Makefile在安裝 PHP 到系统中时要是发生「undefined reference
阅读全文
摘要:原文链接:http://www.centos.bz/2011/03/centos-install-vsftpd-ftp-server/vsftpd作为FTP服务器,在Linux系统中是非常常用的。下面我们介绍如何在centos系统上安装vsftp。什么是vsftpdvsftpd是一款在Linux发行版中最受推崇的FTP服务器程序。特点是小巧轻快,安全易用。vsftpd 的名字代表”very secure FTP daemon”, 安全是它的开发者 Chris Evans 考虑的首要问题之一。在这个 FTP 服务器设计开发的最开始的时候,高安全性就是一个目标。安装vsftpd1、以管理员(roo
阅读全文
摘要:imagick是一个PHP的扩展,用ImageMagick提供的API来进行图片的创建与修改,不过这些操作已经包装到扩展imagick中去了,最终调用的是ImageMagick提供的APIImageMagick是一套软件系列,主要用于图片的创建、编辑以及转换等,详细的解释见ImageMagick的官方网站http://www.imagemagick.org/,ImageMagick与GD的性能要高很多,如果是在处理大量的图片时更加能体现ImageMagick的性能。英文原文介绍如下:imagick is a native php extension to create and modify i
阅读全文
摘要:error while loading shared libraries的解決方法者 icq 21:03 | 靜態連結網址 | 迴響 (0) | 引用 (1) | 點閱次數 (270) | Programming行程式時,如此遇到像下列這種錯誤:./tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory那就表示系統不知道xxx.so 放在哪個目錄下。這個時候就要在/etc/ld.so.conf中加入xxx.so所在的目錄。一般而
阅读全文
摘要:Nginx是一个高性能的HTTP和反向代理服务器,同时还是IMAP/POP3/SMTP代理服务器,该程序由俄罗斯Rambler.ru 站点开发,Nginx因为性能稳定、低系统资源消耗而闻名,近几年Nginx在国内已经成炙热化状态,比如像腾讯、网易、51CTO、迅雷、当当网、51、人人网等诸多大型网站都已经使用Nginx来做Web服务器,所以我们要学会运用Nginx还是非常有必要的,下面我们一起来看一下Nginx是如何在Linux平台上搭建的 安装前首先使用yum命令安装、升级所需的程序库 yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-d
阅读全文
摘要:wgethttp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gztar-zxvflibiconv-1.13.1.tar.gzcdlibiconv-1.13.1/./configure--prefix=/usr/localmakemakeinstallcd../phpconfigure的时候--with-iconv-dir=/usr/localmake的时候加上ZEND_EXTRA_LIBS='-liconv'这里必须把php-fpm停下,然后把php整个删除,重新编译安装才行
阅读全文
摘要:require_once 'User.class.php';$User = new User();$pageNow = isset($_GET['p']) ? $_GET['p'] : 1;$pageSize = 2;$pageCount = $User->getPageCount($pageSize);$list = $User->getPageList($pageNow, $pageSize);if (count($list) >= 1) { foreach ($list as &$tmp) { echo "
阅读全文
摘要:设置mysql.exe文件目录到环境变量Path中去,可能在cmd下面使用mysql,wind7试了一下好像要重启以后才生效什么是数据库 数据库就是存储数据的地方,是保存在计算机(硬盘/内存)中的数据集合关系型数据库什么是数据库管理系统 数据库管理系统(Database System)是由一组程序构成,其主要功能是完成对数据库中的数据进行处理主流的数据库管理系统 mysql Sql server / Access Oracle / db2 / sybase postgresql / sqlite登录数据库命令: cmd > mysql -u[用户名...
阅读全文
摘要:/** * 由于php的json扩展自带的函数json_encode会将汉字转换成unicode码 * 所以我们在这里用自定义的json_encode,这个函数不会将汉字转换为unicode码 */ public function customJsonEncode($a = false) { if (is_null($a)) return 'null'; if ($a === false) return 'false'; if ($a === true) ...
阅读全文