Search the Community
Showing results for tags 'Media servers'.
-
Hi, i'm on ps 1.7.5.2 i create 3 media servers. few images can see on the website, and all others no. i regenerated the images and thumbnails. i don't see what problem is? thanks, Ornot
-
- images
- media servers
-
(and 1 more)
Tagged with:
-
Hi, i wanna use media servers on page www.lezecky.sk. http://www.webhostinghub.com/help/learn/prestashop-15-tutorials/performance-and-security-15/setting-media-servers-performance I created 3 subdomains: http://sub1.lezecky.sk/ http://sub2.lezecky.sk/ http://sub3.lezecky.sk/ On every subdomains i created statics folders (themes, css, js). And now i use media servers. (Advanced Parameters -> Performance) All work ok, static data are downloaded from diferent domains, but it`s not what i want, because now i have duplicated data on every subdomain, and it`s hard to keep data actual on every subdomain. After every each change (for example add new product) i have to reupload data to every subdomain. How can i setup subdomain, to get static folders from parent page (www.lezecky.sk). Can i use .htaccess for setup, or is there any setup proces? Can somebody show me some example, or setup .htaccess file for each subdomain? Thanks guys
- 28 replies
-
- performance
- seo
-
(and 1 more)
Tagged with:
-
faz tempo que busco qual a melhor maneira de configurar CND na minha loja. eu tenho um VPS bem robusto, gostaria de saber se posso criar subdomínios dele e usar esses subdomínios como CDN? se sim, como faço com os arquivos? vi que tem o cloudflare, como faço pra usar ele como CDN?
- 2 replies
-
- media servers
- cdn
-
(and 1 more)
Tagged with:
-
Buenos días. Estoy intentando configurar los media servers en mi tienda y me esta sucediendo que cuando introduzco los valores de ellos y pulso guardar se me queda en blanco tanto la pantalla de administración como la tienda. Por pasos, por si alguien puede ayudarme: he seguido esta guia para configurar los servidores multimedia. http://jordiob.com/2014/02/mejorar-la-carga-de-prestashop-con-subdominios-de-media/ Como he realizado ya varias pruebas, actualizando los valores de diferentes modos, me sucede en la ultima prueba que modifico todos los criterios y guardo, sin introducir media servers. (adjunto imagen) Cuando vuelvo a entrar a rendimiento, me doy cuenta que la ultima sección "CACHE" no me ha guardado lo que he incluido, que era "Usar cache: SI" y "Sistema de archivos". Como no tengo mucho dominio del tema, introduzco los valores de los media servers, creados previamente como subdominios apuntando al home de la tienda (adjunto tb captura). Cuando pulso guardar, pantalla blanca. Habilito la depuración, y el mensaje es el siguiente: Fatal error: Class '_PS_CACHING_SYSTEM_' not found in /home2/tusperfu/public_html/classes/cache/Cache.php on line 131 He buscado información al respecto, pero todo lo que encuentro es recuperar el fichero settings.old.php como settings.inc.php, que me activa de nuevo la tienda (recupero de catastrofe) pero no puedo habilitar la opción de los servidores. No se si a alguien le ha pasado y puede ayudarme. Gracias.
- 4 replies
-
- pantalla blanca
- _PS_CACHING_SYSTEM_
- (and 2 more)
-
If you don't have the budget to get a CDN, you can benefit of MEDIA SERVERS in order to divide page request into three subdomains and speed up your web. As I read, a web browser only executes 8 page requests per domain at the same time. So if you divide content on different domains, the browser will be able to execute more request than 8 at the same time. Note that you will not have the principal feature of a CDN, as your content will be still served from the same server. But at least you will be taking advantage of this unused performance. For the media servers configuration of http://www.site.com you have to do: 1. Create subdomains (on your server configuration panel, cpanel, plesk or whatever) that points to the same directory where you have installed http://www.site.com (I mean that all subdomains needs to have the same path as root folder that the main domain has). Subdomain examples: static1.site.com static2.site.com static3.site.com 2. Set that subdomains on each media server field (performance preferences). 3. If you are using SSL on your store and you don't have a wildcard certificate, you have to do the next step in order to don't use media server on https pages: ·PS 1.5 - Follow the next tutorial: http://blog.dh42.com/prestashop-media-server-hack/ ·PS 1.4: You need to add the next condition to the second if statement of the getMediaServer($filename) function (line 1742 aprox.) in "classes/Tools.php" Tools::usingSecureMode() == false Here you can see the original if statement: if (self::$_cache_nb_media_servers AND ($id_media_server = (abs(crc32($filename)) % self::$_cache_nb_media_servers + 1))) return constant('_MEDIA_SERVER_'.$id_media_server.'_'); So you have to replace "AND" with "&& Tools::usingSecureMode() == false &&": if (self::$_cache_nb_media_servers && Tools::usingSecureMode() == false && ($id_media_server = (abs(crc32($filename)) % self::$_cache_nb_media_servers + 1))) return constant('_MEDIA_SERVER_'.$id_media_server.'_'); Sources: HA!*!*Y post and dh42 blog. Regards.
- 10 replies
-
- Media servers
- ccc
-
(and 7 more)
Tagged with:
-
Hi can anyone give me guide or link with a good explanation about Media servers (use only with CCC) how to use it, how it works, how to set the .htaccess, what i should copy, what i should set or some? i need to run myshop faster on reload thanks,
- 3 replies
-
- ccc
- configuration
-
(and 4 more)
Tagged with:
-
[SOLVED] Media Servers SSL - Help me
mozack posted a topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Hi, For a while i'm searching about a solution to use media servers on SSL or avoid them when in secure environment. My point is, when using SSL or do not use media servers or use their default ssl domain. I was searching in Tools.php and found that code: public static function getMediaServer($filename) { if (self::$_cache_nb_media_servers === null) { if (_MEDIA_SERVER_1_ == '') self::$_cache_nb_media_servers = 0; elseif (_MEDIA_SERVER_2_ == '') self::$_cache_nb_media_servers = 1; elseif (_MEDIA_SERVER_3_ == '') self::$_cache_nb_media_servers = 2; else self::$_cache_nb_media_servers = 3; } if (self::$_cache_nb_media_servers && ($id_media_server = (abs(crc32($filename)) % self::$_cache_nb_media_servers + 1))) return constant('_MEDIA_SERVER_'.$id_media_server.'_'); return _PS_SSL_ENABLED_ ? self::getShopDomainSsl(false) : self::getShopDomain(false); } Now, how to inject here the ssl domain for media server, or where can we do that? Thanks Mozack -
Hi, I'm working in performance with prestashop but i'm checking that are some problems that must be fixed. At this time, if we have more than 1 Media Server, i think the files should be distributed by media servers by type, instead of random. For example: MEDIA SERVER 1 - Load CSS MEDIA SERVER 2 - Load JS MEDIA SERVER 3 - Load Images If only one media server, all files are loaded from there, if only 2, CSS in the first and JS + Images in the second, if three, as example. Thanks Mozack
- 1 reply
-
- media servers
- ccc
-
(and 3 more)
Tagged with:
-
I did have 3 subdomains set up as 'media servers' in the performance tab, however it caused an issue on SSL pages as the subdomains did not have their own SSL certificates. So I disabled the media servers. Unfortunately though because I am using CCC, the media servers urls are stored in the CCC'd version of the CSS. I can't seem to get it to redo the CCC'ing. I have tried disabling and reenabling CCC but with no success. How can I force it to re do the CCCing? I am using version 1.4.4.1 TIA Mark