- 博客(56)
- 资源 (20)
- 收藏
- 关注
原创 magento index manager 报错,不能index的终极解决方案
乱起八糟设置一顿,回头发现index manager不能index了,解决办法:1Make sure, that the var/locks folder is writableMake sure, that the var/locks folder is writableStep 1. Make sure, that the var/locks folder is wri
2013-12-31 21:38:09 1063
原创 magento配置主从数据库,以及mysql 主从服务器配置详细
1.主服务器的my.cnf的配置[mysqld]#主服务器和从服务器的server-id必须唯一,不然无法同步。server-id=1log=/www/wdlinux/mysql-5.1.69/var/localhost.loglog-bin=/www/wdlinux/mysql-5.1.69/var/mysql-bin.log//记住,一定要写到配置文件的[mys
2013-12-31 11:00:58 1318
原创 mysql的log-bin设置开启失败的原因
开启mysql的log-bin,折腾了一顿,最后终于设置好,原因很低级log-bin=/www/wdlinux/mysql-5.1.69/var/mysql-bin.log把这段话必须放到[mysqld]标签下,否则不能生效,配置文件中的每个变量要放到对应的标签,通过查询资料设置配置文件要特别注意这个。
2013-12-31 08:40:48 7648 1
转载 mysql配置文件my.cnf详解说明
mysql配置文件my.cnf详解说明MySQL配置文件my.cnf 例子最详细翻译,可以保存做笔记用[转载]#BEGIN CONFIG INFO#DESCR: 4GB RAM, 只使用InnoDB, ACID, 少量的连接, 队列负载大#TYPE: SYSTEM#END CONFIG INFO## 此mysql配置文件例子针对4G内存
2013-12-31 08:21:47 658
原创 gmail,imap 接收邮件
<?php/****需要配置的: *$filebasedir:附件相对根目录。 *$key:安全性验证,必须一致,否则返回错误。 *$host:IMAP加载邮件的host *$user:邮箱账号 *$pass:邮箱密码 *xf_num:每次接受邮件的最大值。 *//*$key = "434343";$getkey = "434343";$filebasedir = "43
2013-12-30 11:59:28 1543
原创 Magento数据库配置选项,以及mysql 读写分离
1.数据库配置[mysqld]key_buffer = 512Mmax_allowed_packet = 64Mtable_cache = 512sort_buffer_size = 4Mread_buffer_size = 4Mread_rnd_buffer_size = 2Mmyisam_sort_buffer_size = 64Mtmp_table_size = 128M
2013-12-30 08:40:13 2121
原创 mysql的性能配置 -innodb
拜读mysql高性能,总结:mysql使用innode作为存储引擎的主要配置选项:innodb_buffer_pool_sizeinnodb_log_file_sizekey_buffer_sizemax_connectionsthread_cachetable_cacheopen_files_limit1.配置缓存步骤1.1确定mysql可以使用多少缓存,
2013-12-29 12:42:32 1363
原创 magento 设置smtp发送邮件
1.先下载插件,插件地址为:http://www.magentocommerce.com/magento-connect/aschroder-com-smtp-pro-email-free-and-easy-magento-emailing-for-smtp-gmail-or-google-apps-email.html2.http://freegento.com/ddl-ma
2013-12-28 17:15:45 6544
转载 mysql 数据库配置
[Magento]max_connections = 1000max_connect_error = 10table_cache = 1024max_allowed_packet = 16Mmax_heap_table_size = 64Msort_buffer_size = 8Mjoin_buffer_size = 8Mthread_cache_size = 8
2013-12-28 09:42:52 550
转载 PHP script to count Google backlinks and Indexed Page -查看谷歌收录量 php
PHP script to count Google backlinks and Indexed PageTo get backlinks and indexed page count from Google most webmasters use scrapping Google search page. It is not a good idea because it fails so
2013-12-27 16:46:15 1912
原创 TERRY - Contacts
Magento针对大流量,服务器分布式部署,Varnish+Redis缓存,NFS图片服务器分离,ERP产品订单对接,精准广告营销等技术领域!
2013-12-26 23:01:44 1078
原创 magento + redis 安装
1wget http://redis.googlecode.com/files/redis-2.4.11.tar.gztar xzf redis-2.4.11.tar.gzcd redis-2.4.11make2cd srccp redis-server /usr/local/bin/cp redis-cli /usr/local/bin/3mkdir /e
2013-12-26 22:40:41 1764
原创 Destination folder not writable ,后台cms上传图片报错:不可写
Destination folder not writable当您把文件的权限全部设置成777,还会出这个错误的时候,您需要这样做了ftp进入web目录:建立文件夹media/wysiwyg设置可写权限,OK
2013-12-25 09:18:48 2093
原创 service X does not support chkconfig
增加这段代码在/etc/init.d/对应的文件打开编辑,填写这段代码在头部#!/bin/sh:# chkconfig: 2345 95 20# description: Some description# What your script does (not sure if this is necessary though)# processname: myscript
2013-12-25 08:59:46 936
原创 magento整体加速
NGINX + APC + REDIS/Memcache + Varnish + Percona + CDN +magento
2013-12-24 21:59:44 1432
原创 redis安装
redis支持的类型比memcache多,弥补memcache的缺陷,有着更高的命中:安装方法:http://www.magentocommerce.com/boards/viewthread/278526/P0/
2013-12-24 21:37:18 687
原创 Magento加速 - 神文
http://www.gxjansen.com/101-ways-to-speed-up-your-magento-e-commerce-website/
2013-12-24 20:54:53 714
原创 magento 图片分离 cdn
magento 图片分离:http://www.magentocommerce.com/magento-connect/One+Pica/extension/1279/one-pica-image-cdn
2013-12-24 20:54:15 1587
转载 magento 使用flat 表
转载地址:http://inchoo.net/ecommerce/magento/flat-tables-in-magento-and-product-collection/1.按照下面的步骤操作完成2 system-->index manager然后查询使用的flat表,对于大数据量,对flat表进行索引,然后您就可以进行快速的查询,解决eav模型带来的低级速度问题。
2013-12-24 20:22:54 1703
原创 magento 的select类型(dropdown)的赋值方法
Magento的select类型的赋值方法。<?php function setOrAddOptionAttribute($product, $arg_attribute, $arg_value) { $attribute_model = Mage::getModel('eav/entity_attribute'); $attribute_options_mode
2013-12-24 08:23:47 999
原创 Magento在从window迁移到linux,报错:Cannot send headers; headers already sent in --处理方法
1.前提是你的程序在window下面没有问题,然后迁移到linux就出问题了2解决:打开你的magento目录,把下面的文件全部清空/var/report//var/log/3解释:原因是文件编码的问题删除处理起来比较方便,如果您不想删除,那么打开文件,把文件的编码格式改成utf-8即可。
2013-12-23 16:50:19 1266
转载 给分类添加一个属性,模块sql的方式 -- magento
This is creating a module which will update categories to include new attributes.inside app/etc/modules/yourmodule.xml put the following: xml version="1.0"?> t
2013-12-20 17:06:31 755
原创 Magento,sql,setup的方式添加一个select属性,add attribute selet by module sql
1.新建一个模块Resource里面这么定义: Lon_Wailian Mage_Catalog_Model_Resource_Setup
2013-12-20 17:02:22 1306 1
原创 bacula 的使用
1下载baculahttp://sourceforge.net/projects/bacula/files/bacula/5.2.13/bacula-5.2.13.tar.gz/download2在bacula服务器端安装bacula:# tar zxvf bacula-5.0.# tar zxvf bacula-5.0.1.tar.gz# cd bacula-5.0.1
2013-12-17 22:19:00 2741
原创 nginx 子目录重写
location /zazzle {index index.php;rewrite ^/zazzle/(.*)+$ /zazzle/index.php?$1; # it finally works# return 200 $request_uri; # it is for inspect what $request_uri is# try_files $uri $uri/ /blo
2013-12-14 16:07:07 1388
原创 Magento 给用户customer ,添加一个属性
<?php$installer = $this;$installer->startSetup();$setup = new Mage_Eav_Model_Entity_Setup('core_setup');$entityTypeId = $setup->getEntityTypeId('customer');$attributeSetId = $setup->get
2013-12-12 10:13:41 1376
原创 magento collection中的or条件
// Add OR condition:$collection->addAttributeToFilter(array( array( 'attribute' => 'field_name', 'in' => array(1, 2, 3), ), array(
2013-12-11 10:46:01 1096
原创 http://fghjk.blog.51cto.com/4359709/772688
http://fghjk.blog.51cto.com/4359709/772688
2013-12-10 22:01:38 604
原创 Couldn't open stream {imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX Cannot connect to serve
gmail 第一次使用imap,在后台设置开启IMAP功能,可能会遇到接收不到邮件,报错:Couldn't open stream {imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX Cannot connect to server: Can not authenticate to IMAP server: [ALERT]这是
2013-12-10 16:59:08 11445
原创 magento 使用视图
1.mysql文件代码:<?php$installer = $this;$installer->startSetup();try { $installer->run(" CREATE VIEW `wailian_order_item` AS ( SELECT `a`.`item_id` AS `id`, `a`.`order_id` AS `or
2013-12-09 15:12:17 1208
原创 varnish安装步骤
1.yum install -y automake autoconf libtool ncurses-devel libxslt groff pcre-devel pkgconfig2.tar zxvf pcretar zxvf pcre-8.20.tar.gzcd pcre-8.20./configure --prefix=/usr/local/pcre/make
2013-12-09 01:04:08 812
原创 2web,1db,负载均衡,magento nginx配置
1.安装memcache,作为memcache的缓存服务器,开放端口11211,或者关闭iptables安装memcache:http://blog.csdn.net/terry_water/article/details/171604312.magento网站安装memcache的php扩展反向代理服务器:upstream myserver{ server 192.
2013-12-07 12:48:43 1418
原创 magento 产品列表倒序排列
产品列表倒序排列:app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php文件 $this->_collection->setOrder($this->getCurrentOrder(), $this->getCurrentDirection()); 改为: $this->_collection
2013-12-06 11:44:07 916
原创 开启memcached的效果测试对比-magento,差别不大,这玩意应该就是做负载均衡用,单主机,提速效果不明显。
20*2ransactions: 40 hitsAvailability: 100.00 %Elapsed time: 13.46 secsData transferred: 0.12 MBResponse time: 4.51 sec
2013-12-06 10:44:22 1167
原创 遍历memcached所有的key
$memcache = new Memcache; $memcache->connect("192.168.1.214", 11211) or die ("Could not connect to memcache server"); $list = array(); $allSlabs = $memcache->getExtendedSta
2013-12-06 09:59:38 1543
原创 memcached的安装
服务器端主要是安装memcache服务器端,目前的最新版本是 memcached-1.3.0 。下载:http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz另外,Memcache用到了libevent这个库用于Socket的处理,所以还需要安装libevent,libevent的最新版本是libevent-1.3。(如果你的系统
2013-12-06 08:44:11 883
原创 为数据库添加远程用户
添加远程mysql用户,当然添加的时候需要root账号登陆mysql -uroot -p***然后grant all privileges on *.* to 创建的用户名 @"%" identified by "密码";flush privileges; * 刷新刚才的内容*@ 后面是访问mysql的客户端IP地址(或是 主机名) % 代表任意的客户端,如果填
2013-12-05 19:24:39 636
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人