neoelectrex Posted September 23, 2010 Posted September 23, 2010 How could I completely duplicate my oscommerce store onto another server?
Guest Posted September 23, 2010 Posted September 23, 2010 John, Download all files maintaining the directory structure and also copy the database using phpmyadmin The upload the files to the new server maintaining the directory structure, import the database into the new database server and then alter the two configure.php files to match the new server path. Chris
neoelectrex Posted September 23, 2010 Author Posted September 23, 2010 John, Download all files maintaining the directory structure and also copy the database using phpmyadmin The upload the files to the new server maintaining the directory structure, import the database into the new database server and then alter the two configure.php files to match the new server path. Chris Ok giving that a shot. Problem is GoDaddy doesn't let you use PHPMyAdmin for the SQL Restore, they want you to use their "solution" which is giving me trouble >.< I'll get it to work. Thanks.
Guest Posted September 23, 2010 Posted September 23, 2010 John, Godaddy DOES allow the use of phpmyadmin to import the SQL. If the SQL is too large to import then you can run the SQL queries in sections to import all data. Chris
neoelectrex Posted September 23, 2010 Author Posted September 23, 2010 John, Godaddy DOES allow the use of phpmyadmin to import the SQL. If the SQL is too large to import then you can run the SQL queries in sections to import all data. Chris Yeah I got it imported. Now before I overwrite the files, which two config files need protecting/adjusting?
Guest Posted September 24, 2010 Posted September 24, 2010 John, Ofcourse your new server and database are different from your old one. SO update the actual path and the database information so the new store connects to the new installation. Chris
ggrant3 Posted October 25, 2010 Posted October 25, 2010 This problem pertains to the second store/site, the original store/site is working fine no issues (especially not like this) I just did this and at first everything appears to be fine. By that I mean the main page comes up as I would expect. But every time I click on a link (category, product, About Us, etc.) I get an error saying "No input file specified." That's it no other information. Now I tried something else. On the home page I tried to do a search under a specific product and the search results displayed properly showing the correct number of matches, but when I click on one of the matches I get that No Input File Selected error again. Also, I can't access my admin area either Any ideas?
ggrant3 Posted October 26, 2010 Posted October 26, 2010 This problem pertains to the second store/site, the original store/site is working fine no issues (especially not like this) I just did this and at first everything appears to be fine. By that I mean the main page comes up as I would expect. But every time I click on a link (category, product, About Us, etc.) I get an error saying "No input file specified." That's it no other information. Now I tried something else. On the home page I tried to do a search under a specific product and the search results displayed properly showing the correct number of matches, but when I click on one of the matches I get that No Input File Selected error again. Also, I can't access my admin area either Any ideas? Does anyone have an idea what might be happening here? I erased all the files and tried uploading again and I am getting the same exact result.
Collines Posted October 26, 2010 Posted October 26, 2010 Is admin / configuration / use search engine safe URL's set to FALSE?
ggrant3 Posted October 26, 2010 Posted October 26, 2010 Is admin / configuration / use search engine safe URL's set to FALSE? I can't get into my admin on the second site. It just says "Internal Server Error" But I looked on my first site and "use search engine safe URL's" is set to false. So I would assume that the second site is also set to false since I just copied the files from my first site to the second one.
Collines Posted October 26, 2010 Posted October 26, 2010 Have you made any changes to your .htaccess file on your old site? Try using a generic .htaccess file.
ggrant3 Posted October 26, 2010 Posted October 26, 2010 Yeah actually I have made changes to the .htaccess file. I just tried the .htaccess file from the standard OCS download and still nothing. But there is something else that is confusing me here too. On the first site I have changed all the permissions on my files/folders as it is recommended in the security thread. But on this second site I get the warning across the top same that my catalog/includes/configure.php file can be written and that I need to change the file permissions for it. But it is an exact copy of what is running on my first site and I don't get this error on my first site. The permission for my catalog/includes/configure.php file is 604 on both sites (I just verified that the second site has the same permission setting and it does), but like I said I don't get the error on the first site just the second. I don't know if that is related or not but I figured I would mention it in case it is.
ggrant3 Posted October 26, 2010 Posted October 26, 2010 BTW, this is all with the same hosting company and on a Linux server.
bkellum Posted October 31, 2010 Posted October 31, 2010 BTW, this is all with the same hosting company and on a Linux server. It appears you have not configured your two configure.php files correctly for the second site. Look at your path names and make sure it is pointing to the correct database, catalog root, etc. Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
ggrant3 Posted November 1, 2010 Posted November 1, 2010 It appears you have not configured your two configure.php files correctly for the second site. Look at your path names and make sure it is pointing to the correct database, catalog root, etc. I don't see how I could be doing it wrong. All I would change are the absolute paths and the database info, right? I have done this over a dozen times using different methods (going line by line, find and replace, I even used the stock config files that were created by installing a fresh install for the second site), but it just is not working. Question: If the configure files were setup wrong would I be able to view the site at all? Because I can type in the sites address and get the home page, the problem only arises when I click on a link. The product categories and amount of products is correct also. Also, as I mentioned the first site works fine (no errors), but when the home page loads on the second site I get an error along the top highlighted in pink that says "Warning: I am able to write to the configuration file: This is a potential security risk - please set the right user permissions on this file." How is it possible that I have no errors on the first site, but the second site is saying it can write to the config file?
bkellum Posted November 1, 2010 Posted November 1, 2010 I don't see how I could be doing it wrong. How is it possible that I have no errors on the first site, but the second site is saying it can write to the config file? This is a permission error. You need to find out what the correct permission setting is for your host. You will also need to change the permission setting withing the control panel of your host site as doing it any other way may not change it at all. Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
ggrant3 Posted November 2, 2010 Posted November 2, 2010 This is a permission error. You need to find out what the correct permission setting is for your host. You will also need to change the permission setting withing the control panel of your host site as doing it any other way may not change it at all. I understand that. But what I am trying to figure out is why Site A can have a permission of 404 on catalog/includes/configure.php and have no errors but Site B can't. I had to make Site B's permission for that same file 400. Same Hosting company and everything. I think there is something wrong somewhere because I can't just copy a site and change the info in the two config files and I think this has something to do with it. Something is screwed up.
ggrant3 Posted November 2, 2010 Posted November 2, 2010 Since nobody seems to know why I am getting this error (No Input File Selected) what are my other options? If I were to do a fresh install and upload a copy of Site A's database, what would need to be changed? Would it just be erasing customer info, order info, and updating the company profile information in the admin section? Or would there be much more work than that?
ggrant3 Posted November 8, 2010 Posted November 8, 2010 Update After spending some more time researching what could be going wrong between the two stores. I narrowed the only difference down to the hosting setup from GoDaddy. They have the standard Shared Hosting Linux option that is what the original store was using and the second store (the one that I could not get to work) was on a "Grid Hosting" Linux setup. So after talking with GoDaddy on Friday I had them switch my second store hosting to the Shared version and this morning I uploaded all files and went through the standard changes to both configure.php files and everything works. So.....If anyone in the future reads this because they are having a similar problem and you are using GoDaddy, make sure you have a "Shared Hosting" Linux setup and not a "Grid Hosting" Linux setup. Grid Hosting (at least at this point) does not work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.