Como instalar Magento paso a paso

,

Para instalar Magento

php 5.3 son las siguientes extensiones

  • PDO/MySQL
  • MySQLi
  • mcrypt
  • mhash
  • simplexml
  • DOM
  • SOAP

Primera parte

Primero, utilizaremos memcached como gestor de caché. Para ello ejecutamos las siguientes lineas:

Nota: para Centos 5.8, instalar estos repositorios para memcache:

Luego iniciamos memcached, un servicio de caché en memoria:

Seguidamente reiniciamos los servicios web:

>> /usr/local/psa/admin/bin/websrvmng -av
>> service httpd restart

También configuramos para que memcached se ejecute al inicio:

>> chkconfig memcached on

Ahora iremos a nuestra instalación de Magento y modificaremos la configuración de caché, editaremos el fichero /app/etc/local.xml:

# Disable Berkley DB functionality, saving memory
skip-bdb
#max_connections = 100
# tmp_table_size/max_heap_table_size: Default is 16MB, but this causes many
# temporary tables to be written to disk, and is ineffecient.
# Keep tmp_table_size and max_heap_table_size the same!
tmp_table_size = 128M # was 64M
max_heap_table_size = 128M # was 64M
### query-cache settings ###
query-cache-type = 1
query-cache-size = 84M # was 32M was 64M
query_cache_limit = 16M # was 1M was 8M
### Buffer size settings ###
#sort_buffer_size = 2M
# key_buffer_size is important for MyISAM tables.
key_buffer_size = 150M # was 16M
#join_buffer_size = 16M # was 2M
thread_cache_size = 8
# table_cache: Approximate by taking max_connections and multiplying by the
# largest number of tables that can be open for any join.
table_cache = 2048 # was 256 was 512 was 1024
### Timing options ###
interactive_timeout = 100
wait_timeout = 20
connect_timeout = 15
### Log slow queries ###
# Make sure you create this file before you start mysql or it will not work!
# Use the this command:   touch /var/log/mysql.slow-queries.log && chown mysql:mysql /var/log/mysql.slow-queries.log
log-slow-queries=/var/log/mysql.slow-queries.log
# Duration a query must run (in seconds) to get logged
long_query_time = 1
### InnoDB settings ###
# for InnoDB settings; They largely depend on your application.
innodb_buffer_pool_size = 1G

Finalmente, con esto ya tenemos una base rápida para que Magento funcione como la seda.

Segunda parte

# Disable Berkley DB functionality, saving memory
skip-bdb
#max_connections = 100
# tmp_table_size/max_heap_table_size: Default is 16MB, but this causes many
# temporary tables to be written to disk, and is ineffecient.
# Keep tmp_table_size and max_heap_table_size the same!
tmp_table_size = 128M # was 64M
max_heap_table_size = 128M # was 64M
### query-cache settings ###
query-cache-type = 1
query-cache-size = 84M # was 32M was 64M
query_cache_limit = 16M # was 1M was 8M
### Buffer size settings ###
#sort_buffer_size = 2M
# key_buffer_size is important for MyISAM tables.
key_buffer_size = 150M # was 16M
#join_buffer_size = 16M # was 2M
thread_cache_size = 8
# table_cache: Approximate by taking max_connections and multiplying by the
# largest number of tables that can be open for any join.
table_cache = 2048 # was 256 was 512 was 1024
### Timing options ###
interactive_timeout = 100
wait_timeout = 20
connect_timeout = 15
### Log slow queries ###
# Make sure you create this file before you start mysql or it will not work!
# Use the this command:   touch /var/log/mysql.slow-queries.log && chown mysql:mysql /var/log/mysql.slow-queries.log
log-slow-queries=/var/log/mysql.slow-queries.log
# Duration a query must run (in seconds) to get logged
long_query_time = 1
### InnoDB settings ###
# for InnoDB settings; They largely depend on your application.
innodb_buffer_pool_size = 1G
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open_files_limit = 8192
[isamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M
[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M

Más tarde modificamos el .htacces para activas la compresión:

<IfModule mod_deflate.c>

Fuentes:

http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/magento_installation_guide

http://techportal.inviqa.com/2011/03/08/optimising-magento-for-performance/#tuner

Si necesitas ayuda en instalación o configuración de e-commerce Magento, estamos encantados ayudarte.