alvilasalo Posted July 22, 2021 Share Posted July 22, 2021 Buenos días a todo el mundo, Acabo de migrar mi tienda de hosting siguiendo este manual https://victor-rodenas.com/migrar-tu-tienda-de-local-a-internet-bajo-prestashop-1-7/ a rajatabla pero no he conseguido que se pueda acceder: el backoffice https://alvilasalo.com/store/admin672bv7ehn/index.php? la tienda https://alvilasalo.com/store/ Si alguien tiene alguna idea de que puede ser agradecería su ayuda, muchas gracias. Link to comment Share on other sites More sharing options...
juanrojas Posted July 23, 2021 Share Posted July 23, 2021 los 2 servidores coinciden con la version de php? Link to comment Share on other sites More sharing options...
alvilasalo Posted July 23, 2021 Author Share Posted July 23, 2021 El antiguo tenia la versión 7.2.34 y el nuevo la 7.4 (que en teoría debería soportar las anteriores). Que me aconsejas? Link to comment Share on other sites More sharing options...
Nickz Posted July 23, 2021 Share Posted July 23, 2021 (edited) 3 minutes ago, alvilasalo said: El antiguo tenia la versión 7.2.34 y el nuevo la 7.4 (que en teoría debería soportar las anteriores). Que me aconsejas? Retroceder a PHP 7.2.34 si se trata de una migración y no un actualización Edited July 23, 2021 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
alvilasalo Posted July 25, 2021 Author Share Posted July 25, 2021 He cambiado la versión pero nada, el mismo mensaje de error. Link to comment Share on other sites More sharing options...
Nickz Posted July 25, 2021 Share Posted July 25, 2021 (edited) 2 hours ago, alvilasalo said: He cambiado la versión pero nada, el mismo mensaje de error. has reiniciado apache2? Después de efectuar un cambio en la configuración php se debe hacer in restart Y vacia el cache. Edited July 25, 2021 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
alvilasalo Posted July 25, 2021 Author Share Posted July 25, 2021 He borrado el caché manualmente, no se como reiniciar apache2. Es caso es que tampoco me ha funcionado Link to comment Share on other sites More sharing options...
Nickz Posted July 25, 2021 Share Posted July 25, 2021 1 hour ago, alvilasalo said: no se como reiniciar apache2. Aquí hay información sobre apache2 https://linuxize.com/post/start-stop-restart-apache/ en Debian 9-10 y ubuntu 18.4 y 20.4 con sudo systemctl start apache2 Link to comment Share on other sites More sharing options...
Loadinges Posted July 26, 2021 Share Posted July 26, 2021 Hola @alvilasalo No parece un problema con apache, accediendo a https://alvilasalo.com/store/ aparece error 500 en prestashop, más bien es una configuración de la aplicación o del propio .htaccess que tienes generado. Yo probaría revisando primero en la base de datos que la tabla ps_shop_url tienes configurado correctamente los campos domain y domain_ssl con tu nombre de dominio alvilasalo.com y en physical_url /store/, ya que tienes montada la tienda en este directorio. Con este cambio tendrías que poder acceder al backoffice y ya regenerar el .htaccess desde la opción Parámetros de la tienda -> Tráfico & SEO y URLs y dentro del bloque “Configuración de URLS” volver a guardar los cambios. Link to comment Share on other sites More sharing options...
alvilasalo Posted July 26, 2021 Author Share Posted July 26, 2021 Gracias Loadinges y Nickz por la a yuda, He estado siguiendo vustros conssejos y de momento he conseguido que al menos funcione la tienda (sin fotos), pero el back office ni a tiros. Estos son los parametros que he usado a ver si os dan alguna pista: 'database_host' => '217.76.150.121', 'database_port' => '', 'database_name' => 'qafn160', 'database_user' => 'qafn163', 'database_password' => 'M0rtadel0', 'database_prefix' => 'ps_', 'database_engine' => 'InnoDB', 'mailer_transport' => 'smtp', 'mailer_host' => '127.0.0.1', 'mailer_user' => NULL, 'mailer_password' => NULL, 'secret' => 'v794nnQmW7CSEBKVf0C0H5W88M0V3i33DgzWUpfsXq158QaXrKku025o', 'ps_caching' => 'CacheMemcache', 'ps_cache_enable' => false, 'ps_creation_date' => '2020-07-05', 'locale' => 'es-ES', 'use_debug_toolbar' => true, Link to comment Share on other sites More sharing options...
Loadinges Posted July 27, 2021 Share Posted July 27, 2021 16 hours ago, alvilasalo said: Gracias Loadinges y Nickz por la a yuda, He estado siguiendo vustros conssejos y de momento he conseguido que al menos funcione la tienda (sin fotos), pero el back office ni a tiros. Estos son los parametros que he usado a ver si os dan alguna pista: 'database_host' => '217.76.150.121', 'database_port' => '', 'database_name' => 'qafn160', 'database_user' => 'qafn163', 'database_password' => 'M0rtadel0', 'database_prefix' => 'ps_', 'database_engine' => 'InnoDB', 'mailer_transport' => 'smtp', 'mailer_host' => '127.0.0.1', 'mailer_user' => NULL, 'mailer_password' => NULL, 'secret' => 'v794nnQmW7CSEBKVf0C0H5W88M0V3i33DgzWUpfsXq158QaXrKku025o', 'ps_caching' => 'CacheMemcache', 'ps_cache_enable' => false, 'ps_creation_date' => '2020-07-05', 'locale' => 'es-ES', 'use_debug_toolbar' => true, El problema debe estar seguramente en el .htaccess que tienes en el raíz de tu prestashop, ¿podrías copiarnos aquí el contenido del .htaccess para revisarlo? Link to comment Share on other sites More sharing options...
alvilasalo Posted July 27, 2021 Author Share Posted July 27, 2021 3 hours ago, Loadinges said: El problema debe estar seguramente en el .htaccess que tienes en el raíz de tu prestashop, ¿podrías copiarnos aquí el contenido del .htaccess para revisarlo? Y tanto! aquí lo tienes # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on #Domain: alvilasalo.com RewriteRule . - [E=REWRITEBASE:/store/] RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.dx.am$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/font-woff .woff AddType font/woff2 .woff2 <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> </IfModule> <Files composer.lock> # Apache 2.2 <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> Link to comment Share on other sites More sharing options...
alvilasalo Posted July 28, 2021 Author Share Posted July 28, 2021 On 7/27/2021 at 9:35 AM, Loadinges said: El problema debe estar seguramente en el .htaccess que tienes en el raíz de tu prestashop, ¿podrías copiarnos aquí el contenido del .htaccess para revisarlo? Y tanto! aquí lo tienes # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on #Domain: alvilasalo.com RewriteRule . - [E=REWRITEBASE:/store/] RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.dx.am$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^alvilasalo.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/font-woff .woff AddType font/woff2 .woff2 <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> </IfModule> <Files composer.lock> # Apache 2.2 <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> Link to comment Share on other sites More sharing options...
Nickz Posted July 28, 2021 Share Posted July 28, 2021 (edited) What happens when you comment: Perdon, que pasa cuando comentes #<IfModule !mod_authz_core.c> # Order deny,allow # Deny from all # </IfModule> y quitas el coment de #Domain: alvilasalo.com a Domain: alvilasalo.com ultimo deberia ser tu dominio. Edited July 28, 2021 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
alvilasalo Posted July 28, 2021 Author Share Posted July 28, 2021 1 hour ago, Nickz said: What happens when you comment: Perdon, que pasa cuando comentes #<IfModule !mod_authz_core.c> # Order deny,allow # Deny from all # </IfModule> y quitas el coment de #Domain: alvilasalo.com a Domain: alvilasalo.com ultimo deberia ser tu dominio. Gracias Nickz, acabo de probarlo pero sigo sin poder acceder al Backoffice: <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on Domain: alvilasalo.com RewriteRule . - [E=REWRITEBASE:/store/] RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] Link to comment Share on other sites More sharing options...
Nickz Posted July 28, 2021 Share Posted July 28, 2021 si quieres pasame la url y veo, pero hoy no. Ya terminamos el día. Link to comment Share on other sites More sharing options...
alvilasalo Posted July 29, 2021 Author Share Posted July 29, 2021 -alvilasalo.com/store -alvilasalo.com/store/admin672bv7ehn/index.php? Gracias Nickz Link to comment Share on other sites More sharing options...
alvilasalo Posted July 29, 2021 Author Share Posted July 29, 2021 9 hours ago, Nickz said: si quieres pasame la url y veo, pero hoy no. Ya terminamos el día. Necesitas acceso al hosting? Link to comment Share on other sites More sharing options...
Loadinges Posted July 29, 2021 Share Posted July 29, 2021 4 minutes ago, alvilasalo said: Necesitas acceso al hosting? Si nos pasas el acceso al hosting para revisar los ficheros y la base de datos (e incluso el log de errores) podemos intentar solucionarlo. Pásanoslo por privado. Link to comment Share on other sites More sharing options...
alvilasalo Posted July 29, 2021 Author Share Posted July 29, 2021 1 hour ago, Loadinges said: Si nos pasas el acceso al hosting para revisar los ficheros y la base de datos (e incluso el log de errores) podemos intentar solucionarlo. Pásanoslo por privado. 1 hour ago, Loadinges said: Si nos pasas el acceso al hosting para revisar los ficheros y la base de datos (e incluso el log de errores) podemos intentar solucionarlo. Pásanoslo por privado. Loadinges, veo que lo has arreglado!!! No tengo palabras. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now