Magento: Difference between revisions
Jump to navigation
Jump to search
>Homaar No edit summary |
(No difference)
|
Latest revision as of 17:16, 14 September 2011
check requirements
Debugging
mv /errors/local.xml.sample errors/local.xml
Change base URL
http://blog.chandanweb.com/magento/how-to-change-base-url-in-magento
To change the base website URL in magento manually edit this table: core_config_data. Change all reference to web/unsecure/host and web/secure/host
Cache
liegt unter /.../var/cache/
blank admin page
- app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
I worked all the solutions provided for this error I would suggest if none of the codes works for u than try this one it worked for me.. None of the above..
In fact, in version 1.4.0.1 you can comment only the line #100 ( call_user_func_array(’session_set_cookie_params’, $cookieParams); ) and it will work
Performance Tuning
Übersicht / Checkliste
PHP APC (Bytecode-Cache) oder Memcached (Memory Object Caching) MySQL Query Caching aktivieren Per tuning-primer.sh Shellscript prüfen und optimieren Apache MPM-Prefork Tuning KeepAlive aktivieren, HostNameLookups deaktivieren mod_deflate mod_expires .htaccess Einträge in vhost Konfiguration Dateisystem (Linux) tmpfs (Ramdisk) Magento Sessions in der Datenbank speichern Zusammenfassung der Javascript und CSS-Dateien durch die Extension Fooman Speedster Image Sprites verwenden Magento Cache aktivieren Content Delivery Network für statische Dateien und Produktbilder
cleanup.php
#Aufraeumen 30 1 * * * root curl -s -o /dev/null http://www.test.de/cleanup.php?clean=var 35 1 * * * root curl -s -o /dev/null http://www.test.de/cleanup.php?clean=log
<?php $xml = simplexml_load_file('./app/etc/local.xml', NULL, LIBXML_NOCDATA); $db['host'] = $xml->global->resources->default_setup->connection->host; $db['name'] = $xml->global->resources->default_setup->connection->dbname; $db['user'] = $xml->global->resources->default_setup->connection->username; $db['pass'] = $xml->global->resources->default_setup->connection->password; $db['pref'] = $xml->global->resources->db->table_prefix; if($_GET['clean'] == 'log') clean_log_tables(); if($_GET['clean'] == 'var') clean_var_directory(); function clean_log_tables() { global $db; $tables = array( 'dataflow_batch_export', 'dataflow_batch_import', 'log_customer', 'log_quote', 'log_summary', 'log_summary_type', 'log_url', 'log_url_info', 'log_visitor', 'log_visitor_info', 'log_visitor_online', 'report_event' ); mysql_connect($db['host'], $db['user'], $db['pass']) or die(mysql_error()); mysql_select_db($db['name']) or die(mysql_error()); foreach($tables as $v => $k) { mysql_query('TRUNCATE `'.$db['pref'].$k.'`') or die(mysql_error()); } } function clean_var_directory() { $dirs = array( 'downloader/pearlib/cache/*', 'downloader/pearlib/download/*', 'var/cache/', 'var/log/', 'var/report/', 'var/session/', 'var/tmp/' ); foreach($dirs as $v => $k) { exec('rm -rf '.$k); } } ?>