What stuff has done with Magento

http://devdocs.magento.com/guides/m1x/index.html

http://devdocs.magento.com/guides/m1x/install/installing_install.html

http://merch.docs.magento.com/ce/user_guide/Magento_Community_Edition_User_Guide.html

useradd user

yum update

yum clean

yum install yum-utils

yum-complete-transaction

yum install php php-mysql

yum install httpd

yum install mysql-server

service mysqld start

mysql_secure_installation

= Fix php5.1 upgrade to php5.4w

rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm

yum remove php php-mysql

yum install yum-plugin-replace

yum replace php-common --replace-with=php54w-common

yum install php54w

yum install php54w-mcrypt

yum install php54w-gd

yum install php54w-soap

yum install php54w-mbstring

yum install php54w-devel # for phpredis extension

= disable iptables

iptables -F

http://wiki.centos.org/HowTos/Network/IPTables

cat /etc/sysconfig/iptables | see the rules

iptables -A INPUT -j RH-Firewall-1-INPUT

iptables -A FORWARD -j RH-Firewall-1-INPUT

iptables -A RH-Firewall-1-INPUT -i lo -j ACCEPT

iptables -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT

iptables -A RH-Firewall-1-INPUT -p 50 -j ACCEPT

iptables -A RH-Firewall-1-INPUT -p 51 -j ACCEPT

iptables -A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT

iptables -A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT

iptables -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT

iptables -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

iptables -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited

modprobe ip_conntrack_ftp

iptables -I INPUT  -p tcp -m tcp --dport 21 -m conntrack --ctstate ESTABLISHED -j ACCEPT -m comment --comment "Allow ftp connections on port 21"

iptables -I OUTPUT -p tcp -m tcp --dport 21 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT -m comment --comment "Allow ftp connections on port 21"

iptables -I INPUT  -p tcp -m tcp --dport 20 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT -m comment --comment "Allow ftp connections on port 20"

iptables -I OUTPUT -p tcp -m tcp --dport 20 -m conntrack --ctstate ESTABLISHED -j ACCEPT -m comment --comment "Allow ftp connections on port 20"

iptables -I INPUT -m state --state NEW,ESTABLISHED -m tcp -p tcp --dport 80 -j ACCEPT

service iptables save

= settings

chown -R 777 magento/media

php_value memory_limit 512M in .htaccess

= install git

yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel gcc

wget https://www.kernel.org/pub/software/scm/git/git-1.8.5.4.tar.gz

make configure

./configure --with-expat --with-openssl --with-curl

make && make install

= upgrade mysql

yum remove mysql-*

yum remove libmysqlclient15-5.0.95-5.w5.x86_

download mysql-community-release-el5-{version-number}.noarch.rpm from http://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html

rpm -Uvh mysql-community-release-el5-5.noarch.rpm

yum install mysql-community-server

yum install -y dovecot

yum install -y perl-DBD-MySQL

yum install -y php54w-mysql

= remove index.php in url

in /etc/conf/httpd.conf, in section <Directory "/var/www/html">, change AllowOverride None to AllowOverride All

edit magento/.htaccess and uncomment the line: RewriteBase /magento/

in admin console,

In System->Configuration->Web->Search Engines Optimizations, select Yes

In System->Configuration->Web->Secure->Use Secure Urls in the fontend, select Yes

= admin console settings

System->Configuration->System->Advanced->Advanced->Disable Modules Output

System->Configuration->System->Advanced->Developer->Log Settings

set Mage::setIsDeveloperMode(true); and ini_set(‘display_errors‘, 1); in file index.php

System->Cache Management

System->Index Management

= Access control to catogeroy

System->Category->Customer Groups Access Control http://www.zetaprints.com/magentohelp/magento-access-control-for-dynamic-imaging/

= install extenstion

System->Magento Connect

== phpMyAdmin

cd /var/www/html && mv phpMyAdmin pma

product video link

http://de.magentocommerce.com/magento-connect/product-videos-2.html

http://www.magentocommerce.com/magento-connect/product-video-1.html

http://www.magentocommerce.com/magento-connect/product-video-4.html

Installed http://www.magentocommerce.com/magento-connect/youtube-video-gallery-1.html

Disable Mage_Notification module to off the noti of callout

Set logo

System->Configuration->General->design->Logo Image Src

Change color

Install ruby and rubygems and compass

curl -sSL https://get.rvm.io | bash

srouce /etc/profile.d/rvm.sh

rvm install 1.9.3

rvm use 1.9.3 --default

gem install compass

Change color => compass watch . && edit skin/frontend/rwd/default/scss/_var.scss

log all sql

edit lib/Varien/Db/Adapter/Pdo/Mysql.php, on these $_debug $_logAllQueries  http://magento.stackexchange.com/questions/25113/how-to-log-all-magento-sql

Install Redis

wget https://github.com/antirez/redis/archive/2.8.21.tar.gz

tar zxf redis-2.8.21.tar.gz

make && sudo make install

cd utils

./install_server.sh # the last answer is "/usr/local/bin/redis-server"

sudo chkconfig redis_6379 on

sudo service redis_6379 start

Install phpRedisAdmin

git clone git://github.com/ErikDubbelboer/phpRedisAdmin.git

cd phpRedisAdmin

git clone https://github.com/nrk/predis.git vendor

Install Cm_RedisSession

enable Cm_RedisSession module

/app/etc/modules/Cm_RedisSession.xml active -> true

rm -rf var/cache

System > Cache Management, Flush Magento Cache

update app/etc/local.xml

Install Cm_Cache_Backend_Redis && phpredis && modman

modman init

modman clone https://github.com/colinmollenhour/Cm_Cache_Backend_Redis

lib Credis && Cm_Cache_Backend_Redis are already installed, just copy these files to respective directory

run php stats.php to show the usage of tags in redis

时间: 2024-11-23 11:45:20

What stuff has done with Magento的相关文章

麦进斗:magento如何安装子主题

让我们的孩子创造一个主题,我们所有的自定义主题在Magento 2去这里: 应用程序/设计/开发/ company_name / theme_name 让我们假设,我们公司的名称是公司和我们的主题名称是基本.我们需要创建以下主题目录结构: <app>      <design>           <frontend>               <mycompany>                   <basic>             

magento建立子主题

让我们的孩子创造一个主题,我们所有的自定义主题在Magento 2去这里: 应用程序/设计/开发/ company_name / theme_name 让我们假设,我们公司的名称是公司和我们的主题名称是基本.我们需要创建以下主题目录结构: <app>      <design>           <frontend>               <mycompany>                   <basic>             

Magento database maintenance

OverviewThis article examines the various ways to maintain an efficient Magento database, even when large in size. Magento does many things well, but maintaining an efficient database is not one of them. Having many products is a good reason to have

如何在magento中建立自定义页面

访问url为:http://youip/paypal/standard/help 那么我们反向分析.根据之前的分析,我们找到控制文件\app\code\core\Mage\Paypal\controllers\StandardController.php在里面增加一个方法 public function helpAction() { $this->loadLayout(); $this->_initLayoutMessages('paypal/session'); $this->rend

magento结构解析

Magento 模块 模块( module )是 Magento 的核心.站点上的任何一个动作( action ),无论是在前台和还是在后台的每一个操作都是通过模块来实现的.模块是可以视为一个容器,它可包含下面这几项:设置 (settings) ,数据库模式 (database schema) ,呈现对象 (rendering object) ,辅助工具类 (utility helpers) ,数据模型 (data models) 或动作控制器 (action controller) .一个模块

magento移动端后台管理插件mobile Admin by snm portal

Magento mobile Admin 通过手机自动(的iPhone,iPad,Android手机或PC / Mac的),你的库存和产品价格. 定义属性,条形码编号和分配给您的产品.打开mobileAdmin和去库存.使用USB或蓝牙扫描条形码扫描和轻松改变你的股票. 安装扩展,并呼吁通过HTTP接口:// [你的店铺] / mobile_admin 演示(Magento的1.9): http://demo.snm-portal.de/snm(演示/ demo123) http://demo.

Magento开发经验总结(一、 初初见你——产品属性集搜索模块)

一. 初初见你——产品属性集搜索模块 产品属性搜索模块作为我第一个开发的定制功能模块,对于我个人理解magento系统内部规则与机制.二次开发规则等具有极其重要的意义.可以这么说,通过此模块的开发,我轻轻叩开了magento系统开发的大门,第一次看到了门内复杂.深邃.丰富及灵活的运行机制. 在门外徘徊的我感触良多,magento上手难这件事情我真真切切得感受到了,但是一旦入了门,我们可以从过程中学到非常多的东西,如深入理解设计模式.构建软件理论.模式设计.领域驱动设计等等. 1. 功能需求:新创

magento登陆

magento判断用户登录 Magento 登陆之后返回登录之前的页面 magento 在登陆后一般会自动跳转到 My Account 页面 但是经常会有需求 就是登陆自动跳转到 之前的页面里面 工具/原料 php+mysql+apache 方法/步骤 只要加代码 Mage::getSingleton('customer/session')->setBeforeAuthUrl(Mage::getUrl('*/*/*', array('_secure'=>true)));或 Mage::getS

How to optimize Magento performance

OverviewThis guide demonstrates how to optimize Magento performance. Most optimizations will work with any version of Magento. Those intended for specific versions will be indicated as such. Tweak .htaccess The default .htaccess file that comes with

Permanent Link: 101 ways to speed up your Magento e-commerce website

101 ways to speed up your Magento e-commerce website May 18, 2010/in E-commerce, Magento /by Guido Jansen As you probably know by now, Google is Using site speed in web search ranking. And I couldn’t agree more: speed is important for your site, and