Jump to content

Job Offer: help configuring dev site


eternalc

Recommended Posts

Hi all;

 

I'm trying to setup a dev site (prestashop 1.4.7) on the same (dedicated) server as my live site, and need help! The dev site will be used to test an update to 1.4.11, as well as ongoing tinkering.

 

My host has copied over the files and database from my live site to a separate directory, and I have the dev domain registered. But I have no experience with what to do next... and am very wary of experimenting as I don't want to affect the live site. I need to:

 

- redirect the site to the correct (dev) domain (Frontend still redirects to live site, and BO is just giving me a white screen)

 

- create database user (?) and ensure the dev site is using the dev rather than live database (very important!) This apparently involves an edit to the /config/settings.inc.php file of the new "Test" site to point to the new Database, otherwise it will be pointing to the same database as the live site, and mess up the tables. 

 

- Using phpMyAdmin), locate the "ps_configuration" table for the new store and then make sure the values for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL have been changed to the new URL. 

 

- fix permission issues for FTP (I can't FTP any files to the dev right now)

 

- any other steps needed so we can get up and running, with special care to ensure the dev site is not interfering with the live site in any way.

 

For someone who knows what they're doing I'm sure this is a fairly straightforward process. Please let me know if you're interested and how much you would charge.

 

Best regards,

 

Rory

Link to comment
Share on other sites

Also make sure you change the base url to the subdomain which you are testing for. In the settings.inc.php file. Also change in back office > seo and preferences otherwise it will overwrite over your live site during upgrade. Happened to me once, or maybe more than once :)

 

Also, i think you are missing an .htaccess file in the subdomain you are testing on, so make this file and give it write permissions.

Edited by indus (see edit history)
Link to comment
Share on other sites

Hi Indus, thanks for the tip! I'll add it to my to-do list for any developer who wants to take on the job. The .htaccess file should be there as it's not a subdomain but a separate domain on the same server. So I guess that changes things a bit.

Link to comment
Share on other sites

Ya i mean a separate folder in your web directory, not subdomain. That is how i do my upgrades. For example, if my site is at /var/www, i make a folder /var/www/testing and do my clone of live store in that folder. You are on the right track.

 

If you have  the .htaccess file, then empty the contents so that a new one can be written after you make changes to the base url etc. Else it will redirect to the live site again. Or you can just delete and let presta make a new one for you. That can be done from the back office > seo and urls

Edited by indus (see edit history)
Link to comment
Share on other sites

Hi,

 

You must to limit access to your dev site. Some search engine will penalize your site if will find another one with (almost) same content. Also limiting access is needed to not allow your customer to find your dev site by mistake and place order on this one.

 

I use to use this kind of solution. I can help you. PM me if you think so.

Thanks,

VV

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...