Jump to content

prestashop, server migration problem


Recommended Posts

Hello, 

 

I've a problem with migration my prestashop system from old server & domain to new.

 

I've copied the full folder tree from old server and have done dump of DB, then pasted that to the new server and import DB to the new one. After that my problem occurs,  after complete those steps, when i call new url, system automatically redirect me to the old domain.

So i've changed in DB inside the table `jr_shop_url`, parameters `domain` and  `domain_ssl` to new ones, it returns me message: "my.domain.com is currently unable to handle this request".

 

Because of that problem i can't access admin panel either.

 

Any ideas what else i can do to make it works correctly or what have i done wrong ? :)

 

P.S. I'm using PrestaShop version 1.5.6.2

Edited by sharminte (see edit history)
Link to comment
Share on other sites

This problem was solved, it was problem with permissions and folder owner, after changing folder's owner by CHOWN -R user folder_path and setting permissions to 775 it is working now. but occurs another problem. Now i can display homepage but after selecting any position from menu i recieve message, "Page not found". any ideas why ?

Link to comment
Share on other sites

I think you have created a bit of a mess creating your file space which is evident from having incorrect permissioins/owners.  If you need professional/fast server migration please review our server move status.  We automatically do things you didn't know you didn't know for a smooth move.

 

https://www.prestaheroes.com/en-us/services/marketing/prestashop-server-move

Link to comment
Share on other sites

I just can't afford for take a proffesional help with migration, so i'm trying to do it myself and find help at many forums wit issues which occurs  in the meantime :)

 

Let's just say that i was restored previous permissions,

i've followed this steps now:

 

- Coppied old site to my Hard Drive as zip file.

- Uploaded that .zip file and unpacked it with command unzip -a name_file.zip

 

- Done dump of old SQL into .sql file.

- uploaded .sql file into new database via Phpmyadmin

 

- I've checked file settings.inc.php. It was alright because DB was directing to localhost, same as at new host. Username and password are correct as well.

 

after that:

 

to move your prestashop to another hosting or even to a localhost, you have to change on the database, under the table

_configuration
PS_SHOP_DOMAIN
PS_SHOP_DOMAIN_SSL
UPDATE ``.`_configuration` SET `value` = 'localhost' WHERE `mi_configuration`.`id_configuration` =159 LIMIT 1 ;
UPDATE ``.`_configuration` SET `value` = 'localhost' WHERE `mi_configuration`.`id_configuration` =160 LIMIT 1 ;

 

 

and when i call my website in new server i get this message:

 

This page does not work

 
Server mydomain.pl can not handle this request now.

 

i assume that is problem with permissions but i might be wrong, because with previous try when i changed permisions to whole /var/www/html/ directory from default to 775 site was appearing correctly, but my main menu wasn't working as it should to.

 

So what should i do now? 

Edited by sharminte (see edit history)
Link to comment
Share on other sites

What hosting control panel do you have?  cpanel / plesk / ?

 

what is the hosting package?  can you provide link to hosting info on package you have?

 

I would first start by checking the apache error log to see if there is underlying error to the message: Server mydomain.pl can not handle this request now.

 

If you created domain space at command level this can create owership  issue, if so, I suggest deleting the hosting for this domain from your control panel, re-adding the domain normally from your control panel.

 

Before moving from old server download from PrestaShop your current version of  PrestaShop.  Create a test db on your hosting account.  Then run the PrestaShop installer which will check for server compatibility.  This will give you good feedback.  Note: you could also do this in a subdodmain on the new hosting.

 

note: it is not necessary to modify the domain/domain ssl in db, if your domain name resolves properly you can access your back office and from there modify the shop domain/ssl then.

Edited by El Patron (see edit history)
Link to comment
Share on other sites

previously, I was using usual hosting (from nazwa.pl offer), but to test migration, i've created subdomain and made it redirect to VPS which i bought, with ubuntu 14.04 installed, after that I've installed WAMP server and simply moved files there. So now i don;t use any control panel, or at least don't know about any because prestashop are placed in default /var/www/html/ directory.

 

I had to change shop domain/ssl in DB because before I will move system there permanently it has to work correctly, so for now it still is under old domain and on old server, but at the new one i've lab enviroment where i can check if migration went sucessyfully.

 

I have also tried install clean version of PS in that specific version and it went well (at this mentioned VPS) so i guess it works correctly and nothing is missing.

Edited by sharminte (see edit history)
  • Like 1
Link to comment
Share on other sites

anyway, i found out that website was working on the first try, but problem with menu was caused by friendly-urls. To disable it i need to enter to admin panel, but it is not possible for me, at first i thought somehow it may be cased by web browser, but i've checked every browser which i have installed  (Opera, Safari, Chrome, Firefox, IE) and in everyone is same effect.

 

After login i can see something like that on my screen:

 

 

EgrB*! az 9Gl7{w R[CiV3 @i8\qp!A RضnGrȶe$Y>Mm`'S>.zP6dճJED{Nu`B8llE;(/QSC {v.XG#>"O2OL9.L)n,42ܠiV' wGܥREUs ϛ{XEZwt%|ΒdfN _4ӎ6&%`l4"Y$=]88!ZU7M5^9%Ia6&[kIe~CʝQש8\̳CޕB7]Ckʈw-Q7,:" sFI1K\4@wf8Wv!|[i͓ᔐd nT!`KrNDQf#DP7U/.IH*τy)})Q1~r\Z+?QhsI@MVgC=g3gDvY Z=9(ew>=Ŧa1 ^+1>7 QcxM\-?ܯ1%t$͒~O*tNuKCiTǥzȘgvf!e2u (ybQRtf gN M07 u_D2ZlL2s-{>(Ԓ6e,\Yz ),f*&o_pS;"A,`tR=/ ÷z JRiÆT2 l D|0ЙfayZdHXv[P7ܑ%r;`;.?ZfpQ# k[spam-filter]ԧTD_N1(szT.uFV˸A:".C]04MaP .tFqݐٔz9Ɛv4F1Y#5l!j KSvMTEj9Ze匕WPGe$~l}'xi՝~tcAY5V%]*2,i$NAs]lLP"ef"+p)Qۜˏ*d6`>]ShBk} QmxOWQ0_zN*zǰ`?i6U f׆y2޻ƿ?vzVAP%> 1RmpY`-ivdh]`Z#԰$%h\aCXv YwԗKonE((`Ѝء\"Eއ&IG{`4[P0XR!p8|5݌QS-wa$9WFܳ>g.ѿBn.r9NaWHO_Z({ ޠ]1ۋulk.as:U¡Wa]zzԥ19-&G Bscp6"WR+ʇ4ݷ=Aw7?Wcw u87NcP?VM.ꂋ"r[j ZŘo˚8^k Dg)lZ(g+߶3hޔaA\?8,~y+6\$ax툢՞"{EtU~ 48`:6v*t/ܓS7l!HHmx갨~ЉW]RE嗈-u_p^E2~h$}I5J;}z!7!ygs+Ģ'aflp\a游Xnmʦv "b:@&^SEL7.)angVIcGw7ĪM4v8[3G&hCC:ɏd|U1& +?1) _l|eoX3Z: iÔ$Lug-DԶYKhK+B:}'͟ [spam-filter]Fㄍd?

 

there was much more of that but pasting it fully in here is pointless, any idea what could cause that?

is there any way to disable friendly-urls without admin panel ? maybe via phpmyadmin (if it is possible which table / value)? 

Edited by sharminte (see edit history)
Link to comment
Share on other sites

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...