I have cloned a whole online website built with prestashop by FTP and hosted it on a XAMPP. I have downloaded the SQL dump and imported it locally with phpMyAdmin. I have changed the conf files to use the local database.
When I go to localhost/myProject it redirects me to the website url. Why is that ? is there another configuration setting to edit? I have already looked in the conf table in database and domain URL was already set to "localhost", even on the online version.
I found a reference to the website in table "ps_shop_url". I changed its values to localhost, now when I go to localhost it tells me "this page has an infinite redirection loop"
change the you site url to localhost in database.sql file as below:
Change www.yourdomain.com to localhost & make sure you have putted your site htdocs directory...
Can you show entry that you have made in ps_shop_url table.
Physical url should be /prestashop1606/ for localhost/prestashop1606/
Related
I have cloned a live Wordpress website into local environment (using xampp server), the main page of website is working http://localhost/foldername, but when I try to go any other link, it returns me to the http://localhost/dashboard url.
I already changed:
wp_config.php
set the new domain in database
set new username and password of database.
Thanks in advance for your nice directions.
In your wp-config.php file add the following two line
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
In the place example.com put your path then run your url/wp-login
I am new to deploying websites to a remote server. I have been searching for the steps that I should follow to do that for a long time but have not found any results.
here is what I have done 'til now:
1- I used a free web hosting called 0fees.us.
2- Got sub-domain name from the web host.
3- Upload my files as .zip in htdocs directory using the online file manger in cPanel.
4- Upload my database using mysql in cPanel.
5- Change the database configuration in the my website.
After that I typed the sub-domain in the URL field but it get a browser error says:
the connection to the server was reset while the page was loading
What else should I do, so I can type the domain name I see my website on the browser?
Change/configure nameserver settings that points domain to your server ip address.Delete the default index page. And rename the main page you want to display initially to index.html or index.php
I currently have the following problem and was hoping that you could help me. I am busy building a website with a login system in Dreamweaver cs5. My login is created and I set up my testing server as the domain I am creating the website for.
This testing server does connect successfully. After this I am trying to establish a MySql connection. I insert my connection name which is dbConfig as well as the information of the MySql database that I set up on cpanel for this domain. I then get the following error:
HTTP Error code 404 file not found.
I don't know where to go from here as I have never worked with php or MySql before and am unsure of where to go from here.
If it is parent domain then you need to upload your files to "WWW" folder from FTP. There might be a case where you may not see "WWW" folder. Some hosting cpanel have different default folder to upload files. For Example: Godaddy hosting cpanel has "html" folder where you can upload your files. But almost all other hosting has "WWW" folder. If you are uploaded to subfolder For Example: www/test then to access your files you need to check like "http://example.com/test/" . OR if it in root folder then you just need to go to your domain url "http://example.com"
What i have done:
I have installed acquia dev. I created new subdomain named abc
I could access the site url as http://abc.localhost:8082 in my local server.
I could see the folders within folder sites as
sites/all
sites/default
sites/abc.localhost
I have uploaded the files to my server and exported local database to import to live database.
My questions:
How to access abc.localhost site from the live server now and how to change configurations?
Anyone out there to help me in this. I could explain further for any comments. Thanks in advance.
Typically, your Drupal multi site structure should be as follow
sites/all
sites/default
sites/example.com
sites/sub.example.com
sites/example2.com etc...
the URL abc.localhost is a local URL only, so for the live server, you would need to change the directory title to your live server's domain name as seen above.
You could also do the following if you need to regularly update code between your live and local versions
sites/all
sites/default
sites/example.com -> abc.localhost // You can use a symlink here
sites/abc.localhost
I have cloned a whole online website built with prestashop by FTP and hosted it on a XAMPP.
I have downloaded the SQL dump and imported it locally with phpMyAdmin.
I have changed the conf files to use the local database.
When I go to localhost/myProject it redirects me to the website url. Why is that ? is there another configuration setting to edit? I have already looked in the conf table in database and domain URL was already set to "localhost", even on the online version.
Update : I found a reference to the website in table "ps_shop_url". I changed its values to localhost, now when I go to localhost it tells me "this page has an infinite redirection loop"
In ps_shop_url table you must set domain=localhost, domain_ssl=localhost & physical_uri=/myProject/
In ps_configuration set PS_SHOP_DOMAIN_SSL & PS_SHOP_DOMAIN to localhost
Also go at BackOffice -> Preferences -> SEO & URLs and click [Save] - this will regenerate your .htaccess file and will add the /myProject/ where needed.
That should be all.
A small addition to the answer provided by prestashop-developer-com
For Prestashop 1.6, you just need to change the table ps_shop_url following the recommendation from prestashop-developer-com