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
Upgrade system
1
2
3
4
5
6
7
8
9
10
11
12useradd 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_installationFix php5.1 upgrade to php5.4w
1
2
3
4
5
6
7
8
9
10
11rpm -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 extensiondisable iptables
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33iptables -F
http://wiki.centos.org/HowTos/Network/IPTables
cat /etc/sysconfig/iptables | see the rules
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 20 -j ACCEPT
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
iptables -I INPUT -m state --state NEW,ESTABLISHED -m tcp -p tcp --dport 20022:20023 -j ACCEPT
service iptables saveSettings
1
2
3chown -R 777 magento/media
php_value memory_limit 512M in .htaccess
upload_max_filesize = 100M /etc/php.iniFix problem (PHP Fatal error: Unknown: Failed opening required ‘/var/www/html/magento/index.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in Unknown on line 0)
sudo /sbin/restorecon -R /var/www/html/magento/
Install git
1
2
3
4
5yum -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 installUpgrade mysql
1
2
3
4
5
6
7
8
9yum remove mysql-*
yum remove libmysqlclient15-5.0.95-5.w5.x86_64
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-mysqlRemove index.php in url
in /etc/conf/httpd.conf, in section<Directory "/var/www/html">
, changeAllowOverride None
toAllowOverride 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 YesAdmin 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 ManagementAccess control to catogeroy
System->Category->Customer Groups Access Control http://www.zetaprints.com/magentohelp/magento-access-control-for-dynamic-imaging/Install extenstion
System->Magento ConnectInstall phpMyAdmin
cd /var/www/html && mv phpMyAdmin pmaProduct 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.htmlDisable Mage_Notification module to off the noti of callout
Set logo
System->Configuration->General->design->Logo Image SrcChange color
Install ruby and rubygems and compass1
2
3
4
5
6curl -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.scssLog all sql
Edit lib/Varien/Db/Adapter/Pdo/Mysql.php, on these $_debug $_logAllQueries, refer to how-to-log-all-magento-sqlInstall Redis
1
2
3
4
5
6
7wget 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 startInstall phpRedisAdmin
1
2
3git clone git://github.com/ErikDubbelboer/phpRedisAdmin.git
cd phpRedisAdmin
git clone https://github.com/nrk/predis.git vendorInstall Cm_RedisSession
enable Cm_RedisSession module/app/etc/modules/Cm_RedisSession.xml
active -> truerm -rf var/cache
System > Cache Management, Flush Magento Cache
update app/etc/local.xmlInstall Cm_Cache_Backend_Redis && phpredis && modman
- phpredisadd
1
2
3
4git clone https://github.com/phpredis/phpredis
phpize
./configure [--enable-redis-igbinary]
make && make installextension=redis.so
in /etc/php.d/redis.ini
add config of redis cache in app/etc/local.xml - Install modman from https://github.com/colinmollenhour/modman
- phpredis
1 | modman init |
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
Install tmux
yum install glibc-static
- install ncurse :
./configure && make && sudo make install
- install tmux :
1
./configure --enable-static CFLAGS="-I/usr/local/include -I/usr/local/include/ncurses" LDFLAGS="-L/usr/local/lib -L/usr/local/include -L/usr/local/include/ncurses" LIBEVENT_CFLAGS="-I/usr/local/include" LIBEVENT_LIBS="-L/usr/local/lib -levent"
- Reference: http://pyther.net/2014/03/building-tmux-1-9a-statically/
Install ranger
- yum install ncurses-devel
- cd Python-2.7.3 && ./configure && make && sudo make
- wget http://nongnu.org/ranger/ranger-stable.tar.gz
- cd ranger-1.7.1/ && python setup.py install