2013年10月31日

magento文件的位置记录

摘要: 1. 导入产品时,保存单条产品的方法的文件路径/app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php 中的saveRow 方法 阅读全文

posted @ 2013-10-31 14:04 阿杜0409 阅读(96) 评论(0) 推荐(0) 编辑

2013年10月18日

nginx下使用netbeans调试PHP出错时的解决方法

摘要: In the past, I've used apache+mod_php+xdebug+netbeans for development my website (server is my local machine, running Debian Squeeze), with pleasure - xdebug worked just as expected, debug sessions could be started and stopped any time, when I need it. But, when I moved to nginx+php_fpm+xdebug+n 阅读全文

posted @ 2013-10-18 17:47 阿杜0409 阅读(226) 评论(0) 推荐(0) 编辑

netbeans 在nginx php环境下调试程序不成功,php进程死掉,调试一直连接不上的解决方法!

摘要: location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }使用NetBeans结合xdebug调试nginx下的php程序被这个问题搞的相当头大 个人一直认为任何事情一定有一个非... 阅读全文

posted @ 2013-10-18 15:36 阿杜0409 阅读(254) 评论(0) 推荐(0) 编辑

在centos6.3的Linux下安装Xdebug,并且配置netbeans调试PHP

摘要: 为了调试PHP程序,安装一下xdebug官方网址: http://www.xdebug.org首先下载xdebug2.1.0,在官方首页下载源代码,下载回来的文件名是:xdebug-2.1.0.tgz xdebug的版本需与您的php版本相对应,由于偶的php是5.3.2,所以下载xdebug2.1... 阅读全文

posted @ 2013-10-18 14:02 阿杜0409 阅读(275) 评论(0) 推荐(0) 编辑

2013年10月14日

CentOS 6.3使用源代码方式安装配置JDK 1.6 和 Tomcat 7,非yum安装

摘要: 本系列文章使用的系统是CentOS 6.3 x64 mini;所有的软件包都统一下载到/usr/local/src下面,软件都安装到/usr/local下面 一、安装JDK 1、 卸载服务器自带的jdk # java –version --查看ja... 阅读全文

posted @ 2013-10-14 10:57 阿杜0409 阅读(251) 评论(0) 推荐(0) 编辑

2013年10月11日

NGINX出现500错误的常见解决,提高linux系统的链接数限制到51200

摘要: nginx出现500错误,不会显示具体错误信息。要到日志文件里面去看,通过yum安装的nginx的日志文件位于/var/log/nginx/error.log日志描述日志文件里面出现类似(24: Too many open files)的错误信息,这是说明nginx太过于繁忙,打开文件的数量超过linux的系统限制。解决办法需要对3个文件进行修改,分别是:一、/etc/security/limits.conf使用vi打开文件,然后在文件里增加以下代码soft nofile 51200hard nofile 65535二、修改/etc/pam.d/login,在文件中增加session requ 阅读全文

posted @ 2013-10-11 13:15 阿杜0409 阅读(1768) 评论(0) 推荐(0) 编辑

2013年10月9日

在nginx下配置PATH_INFO的方法,包含新老版本的设置方法,以及$_SERVER[PATH_INFO]和phpinfo()函数的使用方法

摘要: 要想让nginx支持PATH_INFO,首先需要知道什么是pathinfo,为什么要用pathinfo?pathinfo不是nginx的功能,pathinfo是php的功能。php中有两个pathinfo,一个是环境变量$_SERVER['PATH_INFO'];另一个是pathinfo函数,pathinfo() 函数以数组的形式返回文件路径的信息;。nginx能做的只是对$_SERVER['PATH_INFO]值的设置。下面我们举例说明比较直观。先说php中两种pathinfo的作用,再说如何让nginx支持pathinfo。php中的两个pathinfophp中的p 阅读全文

posted @ 2013-10-09 14:22 阿杜0409 阅读(874) 评论(0) 推荐(0) 编辑

2013年9月23日

配置文件的路径

摘要: redis配置文件路径 /etc/redis.confphp配置文件路径 /usr/local/php/etc/php.inimysql配置文件路径 /etc/my.cnfnginx配置文件路径 /usr/local/nginx/conf/solr配置文件路径 /usr/local/tomcat/webapps/solr/conf/mulitcore/ 阅读全文

posted @ 2013-09-23 13:39 阿杜0409 阅读(263) 评论(0) 推荐(1) 编辑

ifconfig命令为centos linux系统配置临时的局域名IP、网关以及子网掩码

摘要: ifconfig eth0 192.168.1.25 netmask 255.255.255.0 broadcast 192.168.1.1 upnetmask:子网掩码broadcast:默认网关 阅读全文

posted @ 2013-09-23 09:45 阿杜0409 阅读(346) 评论(0) 推荐(1) 编辑

2013年9月22日

redis和redis php扩展安装

摘要: redis是一个内存数据库,比memcache支持更丰富的value类型,新浪微博就使用redis来做缓存。redis的源码安装wget http://download.redis.io/redis-stable.tar.gztar -zxvf redis-stable.tar.gzcd redis-stablemakemake testmake install1. make时可能会报如下错误zmalloc.o: In function `zmalloc_used_memory':/root/redis-stable/src/zmalloc.c:223: undefined refer 阅读全文

posted @ 2013-09-22 15:34 阿杜0409 阅读(156) 评论(0) 推荐(1) 编辑

导航