prestashop move to new server drops back to localhost - mysql

When I try to move my site prestashop site to new server and when I trying to enter it, it drops me to localhost. What else needs to be done? I did these steps:
Upload all files to new hosting via FTP
Import the database using the phpMyAdmin utility
On database we need to open ps_configuration table and edit the following lines: PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL and we replace the current domain www.olddomain.com, with the new one www.newdomain.com
For last we have to edit the settings.inc.php file inside the config folder and change the values for database name _DB_NAME_, user _DB_USER_ and password: _DB_PASSWD_
That’s it, you only need to check .htaccess file permissions (777) and all should work correctly!
But it does not work correctly :|

You also need to change the ps_shop url, the value of the domain by www.yournewdomain.com
and change too the domain ssl by your new domaine www.yournewdomain.com.
If you put your site in a subdomain then write the physical uri too
www.yournewdomain.com/name-of-your-suddomain-prestashop.
It will work perfectly!

Login to your PrestaShop admin panel on domain you are moving from (olddomain.com)
Navigate to Preferences -> Maintenance and put your shop in maintenance mode to avoid loosing new customers or orders while moving the data.
Navigate to Preferences -> SEO & URLs and scroll down to Set shop URL section.
There please change Shop domain and SSL domain to your new domain (newdomain.com).
Update Base URI if it is different on your new domain.
Download all PrestaShop files and folders to your computer.
Login to your phpMyAdmin and create a backup/dump of the database you are using for your PrestaShop.
Create database on your new domain (newdomain.com) and import database backup/dump from your (olddomain.com)
Edit /config/settings.inc.php file which you have downloaded to your computer.
There you should update the settings for the new database server (with your own settings instead of the examples here):
define('_DB_SERVER_', 'your.sqlhost.name.com');
define('_DB_NAME_', 'database_name');
define('_DB_USER_', 'database_user');
define('_DB_PASSWD_', 'database_pswd');
Upload all the PrestaShop files and folders to your new domain (newdomain.com) via FTP.
Remove all the files except index.php in /cache/smarty/compile and /cache/smarty/cache folders on your new domain (newdomain.com)
Login to your PrestaShop admin panel on new domain (newdomain.com) and check if it is working properly.
In your PrestaShop admin panel navigate to Preferences -> Maintenance and put your site online.
Check that all the links are functioning, that all your products, images, modules and themes are still there, and try to create a new account and place an order to make sure your shop is working as expected.

I had the same issue a few days ago and just spent 2 minutes trying to remember...
Anyway, if you're using 1.5, you also need to change the url in the shop_url table. Hope this helps!

Related

PhpStorm mutualized deployment conflicting server root URL

How to set an absolute project URL, different from the root server URL ?
I look for solutions other than:
Settings: seems out of date (I run PS-181)
leaving server root url empty, tip from Jason Lotito.
The second works for me but the GUI keeps yelling that the server root URL is not specified.
But no longer works if the
Did anyone came with a proper, better solution?
EDIT: How to set the project URL
File
Settings
Build, Execution, Deployment
Deployment
tab Connection: set "web server root URL"
tab Mappings: set "web path on server"
EDIT 2:
So you are sharing the same deployment entry between multiple projects... Why not just make it visible to current project only ... so it become project specific and you enter any data you want without any hacks (as it will have no influence on another project). P.S. The ticket you have mentioned was created long time ago when there were shared entries only. project-specific entries are available for quite few years now... –
I precisely use the same deployment between multiple projects: I have multiple mutualized servers. The only difference between projects of the same server belongs to the "mappings" tab.
Moreover, if I set the Web server root URL to my project domain, I have to hack again the Web path on server ... but putting something (like a /), which is a crappy solution.
Clicking Visible only for this project means that I have to create new deployment for each project (which becomes tedious after 30 copy/paste).
As said in the old ticket, if the Project URL of the mappings tab were an editable text field, all would be much simpler.

Magento URLs not working after moving to new domain

Actually I moved magento 1.9 site from a domain to an other. I moved all the files and database and now site is working fine but admin url and some other urls like product, category, other pages etc.. are not working and giving 404 error. Any suggestions please ?
Look at core_config_data for base url and admin url. Probably you will need to modify that field

In AWS amazon, How can I keep my files updated in route53 to my bucket in S3?

I have a basic account in AWS amazon to host my personal site.
But I am always confusing, with the versions.
My domain name is www.ladimela.com.
After I upload something to my bucket, everything works fine, for example:
If I upload a html file, to my bucket,
I can see it though my domain without problem.
But if I update it, or even delete it, my domain won't change.
It seems that only create new files will update my domain.
to show you examples, I uploaded a html file named questionforstackoverflow.html, with very simple content:
Hello, this is the old version
then I delete it, and uploaded a new html file to replace it, with the same name, and very simple content as well:
This is the new version
Now, my domain is still the old version, which doesn't exist in my S3 bucket.
here is it:
www.ladimela.com/questionforstackoverflow.html
But I can view my new version with https://s3.amazonaws.com/...
here is it:
s3.amazonaws.com/ladimela/questionforstackoverflow.html
This is my first question in Stackoverflow, I hope someone can help me, thanks!
Both the urls give html which says, new version.
Try clearing the browser cache before reloading the hosted site.

Wordpress - ftp'd site/exported database to localhost, localhost images still point to .com, why?

I FTP'd over the entire wordpress site and exported the Database and got it running on my localhost throught WAMP, but for some reason the links and folder are still pointing towards it's .com, and a 404 error comes up as well.
I suspect it has something to do with .htaccess but I'm not sure.. Can someone steer me in the right direction?
Did you update WordPress Address (URL) and Site Address (URL) under General > Settings?
They might still point to old domain.
Transferring the site over FTP to your local machine is the same as "moving" it to a new domain. Wordpress provides specific instructions for such a move which you can find #
http://codex.wordpress.org/Moving_WordPress
When Your Domain Name or URLs Change
When your domain name or URLs change - i.e. from http://example.com/blog to http://example.com, or http://example.com to http://newexample.com - there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display.
If you do a search and replace on your entire database to change the URLs, you can cause issues with data serialization, due to the fact that some themes and widgets store values with the length of your URL marked. When this changes, things break. To avoid that serialization issue, you have two options:
Only perform a search and replace on the wp_posts table.
Use the Search and Replace for WordPress Databases Script to safely change all instances. ( If you are a developer, use this option. It is a one step process as opposed to the 15-step procedure below )

Repair links after updating my URL

I need to repair all the URLs in a Wordpress site. The problem is that the site domain was bought after the hosting plan. The hosting assigned a static IP and the site was mounted using that IP. Now I need to update over 700 links in the database from http://xxx.xxx.xx.xx/~blah/ to http://www.example.com. Is there an easy way to do it? I already checked and most of those links are in the guid column in the wp_posts table. I have access both to the wp-admin and phpmyadmin in c-panel so, any solution would be nice.
That known problem has a pretty easy bypass.
Just download that great tool right here https://launchpad.net/mysql-search-replace, put the extracted folder in you serverץ
Go in your browser to the mysql-replace.php file that inside the tool's folder.
Then, write your old ip address in the search field and your new domain in the replace field.
Fill in your hostname, database name, username and password, click on the replace button, and that's it! All the places that your IP is written in your DB will be replaced with the new domain!
I suggest to do a search before the replacing, to ensure that you'll replace the right query and not ruin your DB by mistake.