Secret Cloud Posted May 3, 2017 Share Posted May 3, 2017 Long story short, I am moving from my old host to a new host, however, when I asked my old host a year ago to help me install a prestashop store, they created a wordpress install for some bizarre reason. The folder was called wordpress2, but as you can see on my website www.secretcloud.com (which is still hosted at my old host until I can migrate everything properly) - that website is literally just a prestashop, and has nothing to do with wordpress. Unfortunately I am pretty amateur, and so when looking to migrate all of the files and databases I found that the Secret Cloud folder (named Wordpress2) has a bunch of Wordpress files in it, and two databases also seem to mention this store. One filled with prestashop database tables, and one filled with wordpress database tables.I tried at first for the last 48 hours just migrating all of the prestashop databases/files to my new host, but have been unsuccessful. Is this somehow tied to the wordpress files due to how they installed it? I never did anything with the wordpress files, but I am unsure if how it was installed forces this prestashop to function using some of these files. It's a big headache, and ultimately what I would like to do is migrate strictly the prestashop databases/files and rename the wordpress2 folder. As a last ditch effort I tried moving all of the current files/databases as is, so now they are on my new host containing both the wordpress and prestashop databases, and the full wordpress2 folder. Unfortunately on local machine even this is not working. When trying to view the website from local host it is just going to a page that looks like the following, can I get some assistance with sorting out this mess: Index of /Name Last modified Size Description cgi-bin 29-Apr-2017 13:26 - Link to comment Share on other sites More sharing options...
Secret Cloud Posted May 3, 2017 Author Share Posted May 3, 2017 (edited) I should also mention, my old host uses a proprietary control panel, not the standard cPanel, thus migrating everything has been a pain in the neck. Nothing can be done automatically, and so I have been moving over all of my websites manually. Being that this install was such a mess with the wordpress2 folder and two seemingly related databases that may or may not actually be relevant to my website (the wordpress and prestashop databases), I have been lost in trying to get this website migrated properly. I guess what I am asking is, will this prestashop directly rely on these wordpress files due to how it was installed by old host? If not, I will post a full list of the folders and files contained in the wordpress2 folder and remove anything not pertinent to the functionality of the actual prestashop. Edited May 3, 2017 by Secret Cloud (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2017 Share Posted May 3, 2017 If all is messed up than: 1) First you should find out which files are wordpress and which are Prestashop, if they were installed in one folder together. Second thing is identify which of the 2 databases is Prsstashop and which is Wordpress. This is quite simple to find out. For Prestashop you can read the detail on FTP file: /config/settings.inc.php. For Wordpress you can find detail on FTP file: wp-config.php For Wordpress all files and folders shoud have wp- as prefix (except xmlrpc.php, index.html, readme.html, license.txt and .htaccess). All other files and folders should be Prestashop, with exception of the named before, which could be on both ! In this case open the file and check top. Prestashop has all files with an short description on first lines. 2) After you identified which is which, you can separate them into folders. 3) If database is also messed up, than WordPress has also an prefix wp_ on all tables. Prestashop are ps_ (natively!) Link to comment Share on other sites More sharing options...
Secret Cloud Posted May 3, 2017 Author Share Posted May 3, 2017 (edited) Thanks, this much I definitely have sorted out regarding the databases. I now know which database pertains to wordpress and which pertains to prestashop. So are you saying that based on looking at my website, these wordpress files are not somehow tied into my website and will not effect the functionality if I separate them all properly? The problem is the wordpress2 folder, as some of the files are in the main directory, both wordpress and prestashop files, so I am unsure which is which.Attached is a screenshot showing the folder, which I am having an issue with deciphering what is safe to remove as it is wordpress, and what is relevant and required to keep for my prestashop: Removed for privacy. Edited May 3, 2017 by Secret Cloud (see edit history) Link to comment Share on other sites More sharing options...
jetway Posted May 3, 2017 Share Posted May 3, 2017 (edited) Hi, prestashop will read from the prestashop tables whenever they are named correctly so you can extract all tables with ps. If you did not do a lot of customization you might want to install a fresh copy of prestashop on the new server and import data from the old. a second thought: i would not name my admin folder psadmin. If you have not secured your backend in .htaccess or with captcha or such, a bad person could easily find that folder an attack your backend trying to gain access to the shop. This comes due to the lack of built in second step verification in the core installation of prestashop. Like i said this is just a thought. Edited May 3, 2017 by jetway (see edit history) Link to comment Share on other sites More sharing options...
Secret Cloud Posted May 3, 2017 Author Share Posted May 3, 2017 I didn't name it that, this was just what was installed by my old host, and if I change the title of that folder, will it affect my install? Also, there was a lot of customization and a lot of work done on that store, so I need to just migrate the appropriate files.As for database, I am done with that. Everything is extracted. Back to where I am at now, which files can I delete from this folder wordpress2? Can I rename this folder? As you can see, it has a bunch of wp files in there, and I do not have anything to do with wordpress on this website. Link to comment Share on other sites More sharing options...
Secret Cloud Posted May 3, 2017 Author Share Posted May 3, 2017 (edited) Also, to kill two birds with one stone, which files do I need to change to reflect the new host? For example, when I switch hosts for a wordpress site, I need to upgate the config file with the appropriate database changes, etc. How do I do this for prestashop? Where/what do I edit? - Read about this, and learned I needed to change the details in settings.inc.phpHowever, I just noticed that even the folders inside wordpress2 contain files for both wordpress and prestashop. What a mess. For example, in the config folder where I read I needed to change the settings.inc.php file, but inside this folder I noticed that the config.inc.php makes mention of the default bootstrap wordpress theme.I am so lost in this mess. Edited May 3, 2017 by Secret Cloud (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2017 Share Posted May 3, 2017 You have also a folder named prestashop there. What is the content of that folder ? The screen you attached have both mixed-up. BTW .htaccess, index.php, are files which are included in both, so difficult to say which is there. As I said: open the files you are not sure with notepad and control, if there are description lines on top, or any else in code you can identify it is from. gitattributefile, wpclifile, architecture and some others are not part of WP nor Prestashop. How to move, i.e. change new location: http://doc.prestashop.com/display/PS16/System+Administrator+Guide#SystemAdministratorGuide-MovingPrestaShop Link to comment Share on other sites More sharing options...
Secret Cloud Posted May 3, 2017 Author Share Posted May 3, 2017 That folder "prestashop" is by chance empty. Go figure.When I open the files, many mention prestashop, but then reference wordpress files inside of them. I never touched the files after my old host installed this mess, so what you see is just what was there. I have no clue what the gitattributefile, etc. is.Very confusing. I have installed all of them though, and later can try eliminating certain files one by one, but unfortunately the website does not load locally even after making the appropriate databse name change, etc. to the settings.inc.php file for prestashop. Right now it is just loading this, which seems that the index file is not working, but I double checked and it points to the settings.inc.php file, so I have no clue why it is only loading this locally?: Index of /Name Last modified Size Description cgi-bin 29-Apr-2017 13:26 - Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2017 Share Posted May 3, 2017 Folders from a native Presashop are: Adapter admin (this folder should be renamed by something else) cacheclassesconfigcontrollersCore cssdocsdownloadimg (install - this folder should be deleted !!!)jslocalizationlogmailsmodulesoverridepdfthemestoolstranslationsuploadwebservice FILES of a native Prestashop install are: .htaccess CONTRIBUTING CONTRIBUTORSerror500.htmlfooter.phpheader.phpimages.inc.phpindex.phpinit.phpLICENSES README robots.txt All others you are having are manually added, needed for your Server envoirnment, WordPress or coming from somewhere else. The folder /stores I'm not sure, but it could be coming form Prestashop, too. You are running multistore ? If not, check the content of that folder and open files. If there is any hint to Prestashop, than it could be a part of a module you are using, or multistore. Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2017 Share Posted May 3, 2017 cgi-bin is a server envoirnment folder. This folder should be not in the root of a shop, but it could be, if you are running on a not root server (shared webspace). On a shared server you have only access to your /httpdocs or /html, but not all folders before. So in this case providers add there folders and files specially for your bought package (differed server configuration). Link to comment Share on other sites More sharing options...
razaro Posted May 3, 2017 Share Posted May 3, 2017 From your image I think files from README.md down are all Wordpress, and GiTHUB and WPCLI also. Rest of files and folders should be Prestashop. You can try to delete content of .htaccess file, backup it. And then try to access Back office. Link to comment Share on other sites More sharing options...
Secret Cloud Posted May 3, 2017 Author Share Posted May 3, 2017 Thanks, will have a look over these. Any idea why the index file seems to be pointing incorrectly? I believe that is why it is opening an incorrect index as seen above when I view the wesbite locally. Perhaps if I remove the wordpress files this will fix this. Will try going through and removing anything unnecessary that is not native and see if I make any progress. Thanks for the list! I'll post back with an update. Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2017 Share Posted May 3, 2017 index.php file for Prestashop is a placeholder file with redirection code. If your file has another content besides the one below, so you should rename this file or delete and add one with the code I named. A wrong index.php file can cause wrong redirection. <?php /* * 2007-2016 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2016 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ require(dirname(__FILE__).'/config/config.inc.php'); Dispatcher::getInstance()->dispatch(); Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2017 Share Posted May 3, 2017 Content of a WordPress Installation: wp-adminwp-contentwp-includes.htaccessindex.phplicense.txtreadme.htmlwp-activate.php wp-blog-header.php wp-comments-post.php wp-config-sample.phpwp-config.phpwp-cron.phpwp-links-opml.phpwp-load.phpwp-login.phpwp-mail.phpwp-settings.phpwp-signup.phpwp-trackback.phpxmlrpc.php Link to comment Share on other sites More sharing options...
Secret Cloud Posted May 3, 2017 Author Share Posted May 3, 2017 Ok, sorted out the files not needed that were installed for wordpress, and kept only the files shown above. Two questions and an update. 1/ would installbak be the same as the install file you refer to above? I only have one called installbak, can this be deleted? Secondly, can I change the name of the psadmin folder to anything I want? or is the website relying on this folder being this name and would require me to change multiple lines that pull from this directory?As for where I am at now, unfortunately with the index.php file being identical as above, I am still having the same issue with the website only loading through localhost in system32 as an index page (which is how I tested other websites and was successful eventually before changing nameservers). The website literally only loads the following which doesn't even list the files: Index of /Name Last modified Size Description cgi-bin 29-Apr-2017 13:26 - Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2017 Share Posted May 3, 2017 I presume your hoster simply renamed the folder install instead to follow the suggestions of Prestashop to delete it. Why your site is loading indwx of: and this btw is not secure way server should act, is simply due a wrong re-direction. Your DNS is pointing to the new IP, i.e. you changed the IP on your domain to the IP of your new host ? Link to comment Share on other sites More sharing options...
Secret Cloud Posted May 3, 2017 Author Share Posted May 3, 2017 (edited) Ok, I've just received a message from my host that root path for this website is different than where I have placed it. Will post an update after I have moved the files or changed the default root path. Sometimes it is the simplest, stupidest things. I really do hope it is this. Regarding how the server is acting, could this be because I am pulling from the ip directly to test the website on local machine before I do anything like changing name servers? I figure it's acting this way because of how I am pulling up the website from the hosts file with the exception to this website. Anyway, will update if the root path issue solves this. Thanks again. Edited May 3, 2017 by Secret Cloud (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2017 Share Posted May 3, 2017 Yes, already said before. Depending on server configuration it could be differente (normally your root is: /httpdocs or /html, or other). 1 Link to comment Share on other sites More sharing options...
Secret Cloud Posted May 3, 2017 Author Share Posted May 3, 2017 Ok, this was it, thanks for the help everyone!I just had the root path set incorrectly!!! The store is now loading properly locally, and the mess of wordpress files are gone thanks to you guys.Last question, can I safely rename that psadmin folder to something less easy to locate? Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2017 Share Posted May 3, 2017 Natively this folder is name /admin. When you install Prestashop on last step there is a warning for to rename this folder to whatever you want. If you change the name again, than you will access your back-office by "yourdomain.com/newnameadmin". So yes, you can rename it. Link to comment Share on other sites More sharing options...
Secret Cloud Posted May 3, 2017 Author Share Posted May 3, 2017 Awesome, thanks a bunch for all of the help. Consider this solved!! 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