At moving from local to a server my prestashop web, appears all the text (I think it connects correctly to the database), but it doesn´t visualizing any images,CSS,etc... I´ve modified config/settings.inc.php file
and modified PS_SHOP_DOMAIN, PS_SHOP_DOMAIN_SSL and SHOP_URL from the database and also deleted the .htaccess file.
Thanks!
The same is with the backoffice:
you can do it by two ways:
navigate into backoffice to SEO&URL link, set correct values for Shop domain & SSL domain & Base URI fields. Save & update page.
or
in DB find tables:
ps_configuration, set correct values for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL
ps_shop_url set correct values for domain, domain_ssl, physical_uri
Some Prestashop installs, sometimes have SSL ON (don't know why).
If you are installing it on a server with no SSL certificate, all images and styles will not be loaded and the PHP scripts display barebones HTML pages.
To solve this:
In your Prestashop directory, delete all install directories and files to get the platform running.
Type your admin URL, example: http://yourstore.me/psadmin, log in with a registered valid admin user, and go to to PREFERENCES->CONFIGURATION and turn all SSL parameters to off.
Related
to give you some context with where I'm at, I have set up a subdomain to serve the images for my site on www.images.mysite.com
This "images" subdomain is intended to serve the images to primary domain www.mysite.com (being located on the server at "/public_html") and also the Woocommerce subdomain www.shop.mysite.com (being located on the server at "/public_html/shop").
I have uploaded the images from the old directory (which is currently still in use) on the server at "/public_html/wp-content/uploads" to the new directory connected to the www.images.mysite.com subdomain at "/public_html/images/wp-content/uploads"
The challenges I'm facing at this stage is that I can't seem to get the images to upload to the www.images.mysite.com location when sent from the www.mysite.com Wordpress installation or the www.shop.mysite.com Wordpress installation even after adding the path for this to 'options.php' for both the www.mysite.com Wordpress installation or www.shop.mysite.com Wordpress installations.
When I did set this path earlier though 'options.php' (through www.mysite.com/wp-admin/options.php pointing to www.images.mysite.com without the trailing slash) it caused conflicts with the www.mysite.com and www.shop.mysite.com sites and dropped all the images from both the www.mysite.com Wordpress installation and the www.shop.mysite.com Wordpress installations. When I removed the path from the ‘options.php’ file the installations both worked fine again.
I have had the process of setting this up explained to me as:
*Imagine you want the images for www.shop.mysite.com to be loaded from www.images.mysite.com The document root folder for www.shop.mysite.com is /public_html/shop - for the images it's /public_html/shop/wp-content (Note: I think this is supposed to be /public_html/images/wp-content but correct me if I'm wrong).
In such case, we need to change the document root for www.images.mysite.com to that one -> public_html/shop/wp-content. Once done, inside the wp-config.php for www.shop.mysite.com, you would need to add the following code: define("WP_CONTENT_URL", "http:// images.mysite.com"); define("COOKIE_DOMAIN", "shop.mysite.com"); Once done, from phpmyadmin, in the database for www.shop.mysite.com (XXXXXX21_wp451) -> there is a tool named SQL at the top where you can run queries. This would be the needed query -> UPDATE wp_posts SET post_content = REPLACE(post_content,'www. shop.mysite.com/wp-content/','images.mysite.com/')*
The explanation above seems a bit out to me with the note I added as bolded.
I'm running HTTPS - should the code above state that?
There are some spaces in what I have been provided here that I'm not sure if they will have an impact on the execution.
I have a dummy site that I can use which won't cause any major issues if I break it which i'll test this in. If anyone has any pointers they would be greatly appreciated :)
take a backup for your database and files and do as this article explains:
Login to your hosting account and launch “phpMyAdmin” section under cPanel. Open the database of your main domain. Select “wp-options” table and replace the following two parameters and save your settings.
upload_path ==> directory root for your subdomain
upload_url_path ==> actual URL path for your subdomain
Until this step there will be no impact on your live site since the existing media upload folder is not changed. Any new image you upload henceforth will be stored in a new subdomain path you have entered in the “wp-options” table. You can cross check this by uploading a test image and check the URL. Once you modified the upload path in “wp-options” table you can see the upload path options are enabled in WordPress admin frontend under “Settings > Media“. Henceforth you can update the uploads file path directly here.
then you will have to replace images links by running this SQL query:
UPDATE wp_posts SET post_content = REPLACE(post_content,'URL of current media folder','URL of new media folder')
I built a WordPress website in localhost MAMP. Upon completing the site, I wanted to upload it to the actual hosting site using FTP. I uploaded all the content but DB. I used a WordPress plugin called 'WP Migrate' to export the database. Then I uploaded exported file to phpMyAdmin.
But the site did not work after uploading onto my site using FTP. I then begin to work again locally, using my local host. There is a feature to find & replace DB values in 'WP Migrate'. I replaced existing local site name with actual web site name. This stopped working my local website also.
I am not trying to figure the live site, but figure the local host site right now, that way I can perform a transfer. I believe it has to do with the DB somehow but not sure where or how to edit it.
Basically it is the same issue that this person is having as well, but the question wasn't answered: https://wordpress.org/support/topic/undo-find-replace/
Nathan Rojas
If it's after you updated your site name, you can easily change it back by logging into the myPhpAdmin of your local site and choosing the MySQL database you are using. under the wp_options table, you'll see a field called siteurl and home. Update those fields to what you had prior and it'll come back. ;)
I have an installation of prestashop 1.6 on a domain www.mydomain.com and a virtualhost on a server for redirecting to the prestashop/public_html folder. This is my main website working perfect.
Now i would like to clone the installation in another folder prestashop/clone_html and i created an alias on the virtualhost from www.mydomain.com/clone to prestashop/clone_html
Now if i access the clone website the frontend is not working, i get a 404 error and all the links are pointing on the main domain
I tried to change settings.inc.php change the base URI on the database and delete both .htaccess and cache but the links are never changing.
I think maybe the problem is coming from multilanguage redirect?
Do you have any idea what i should try to change?
Thanks
That is a good one! If you want to change the URL of the store and you have already migrated the contents (so no access to the admin is possible or you don´t want to bother), you may do the change directly at the PS table where this information is kept. The name of the table is <prefix>shop_url. Once you access it, the content is self explanatory. You have to play with domain or domain_ssl and then with physical_uri.
Also, using a subdomain as has been suggested in a comment may be a good idea. Depending on your hosting, you may be able to define a subdomain and make it point to a subdirectory. This keeps the physical_uri to / and may avoid other potential problems.
I have a client who wants to move their hosting provider and we have successfully cloned exact copy of original server to the new hosting provider's server. We want to use different domain name staging.copiedsite.com to creating staging environment to check everything works fine, then we want to flicker it back to original DNS (www.actualsite.com). My question is, how do you configure the site to work with staging domain name? I am going to basically find all database record that says "www.actualsite.com" and replace it with "staging.copiedsite.com". Is that all it needs? Is there any configuration text file that I need to edit? Thanks.
You shall change the domain in BackOffice > Preferences > SEO & URLs. This will update configuration in database and your .htaccess file (For some obscure reason you might have to save this page two times so that the .htaccess file is overwritten).
Also some CMS pages and modules can use absolute URLs so changing all those values by querying the database is a good idea.
Basically that's all you need.
I've created a forum using phpBB3,
The address I got is : http://<FORUM NAME>.com/phpBB3
I would like to change it to http://<FORUM NAME>.com (without the phpBB3)
Is it possible to create another forum addressed to the second URL I mentioned, that uses the same SQL database as the first forum?
The /phpbb3 part of the URL refers to the directory on the server that your forum is installed in. If you move all of the folders and files out of the phpbb3 directory into your websites root directory (usually either htdocs or public_html) then the URL will then become http://<FORUM NAME>.com This is best done via FTP and not your hosts file manager to help prevent corruption of any files.
Only do this if you don't already have pages at http://<FORUM_NAME>.com otherwise you will overwrite anything already there that share any file names.
If you do move everything, once finished log into your phpBB admin control panel and under 'Server configuration -> Server settings' make sure 'Force server URL settings' is set to 'No' and all the internal links on your board will adapt themselves to the new URL.
IMPORTANT! Before you do ANYTHING make sure you download a backup of the files and the database, then if anything goes wrong you can easily put things back again.