Jump to content

[solved] How to make test copy of site in a sub domain?


Recommended Posts

Im trying to create a test site

My site is hosted at Blue host which uses C-panel

  1. I created a sub domain
  2. Copied all files into new directory for sub domain
  3. Using phpMyAdmin created database and exported from existing database and imported into new database. Database seems fine from what I can see in phpMyAdmin
  4. I edited config.inc.php in Prestashop and made sure I had correct database name and password.

 

When I go to my sub domain I just get a blank page. It does at least see the page, page is completely blank.

Did I overlook something? Any suggestions

Link to comment
Share on other sites

please post (also in the future) your ps version, as there are differences

 

if you run your prod shop in a folder ie. /store/ then you will need to change the uri

 

also there have been loads of good posts on this subject, use google search 'prestashop create copy subdomain'

 

to help debug blank page see here

http://www.prestashop.com/forums/topic/224525-how-to-get-debug-information-for-500-error-or-blank-page/

Link to comment
Share on other sites

I have version 1.4.9

 

I want to make copy from mydomain/shop to test.mydomain/shop

I don't need to change this... do I?

define('__PS_BASE_URI__', '/shop/');

 

Also debug on doesn't seem to make any difference

Link to comment
Share on other sites

its installed in public_html/test/shop the subdomain is set to public_html/test

So to access the shop would be test.mydomain.com/shop right?

I wasn't sure if I should include test in the URL define('__PS_BASE_URI__', '/test/shop/');

 

I also have SSL enabled in my working site mydomain.com/shop, not sure if that effects my copy

I'm trying hard, I've read several related threads and doubled checked my settings, but I'm still getting blank page in shop or admin.

My gut feeling is it can't access the database, but I've checked database name, user_name and password many times, even redid it.

Link to comment
Share on other sites

its installed in public_html/test/shop the subdomain is set to public_html/test

So to access the shop would be test.mydomain.com/shop right?

that's right

 

I wasn't sure if I should include test in the URL define('__PS_BASE_URI__', '/test/shop/');

in this case you don't have to include the /test/ in the base uri definiton

Link to comment
Share on other sites

I got it solved!!

I added php5 to the .htaccess file in the dubdomain directory public_html/test

That's why it wasn't giving any errors, it couldn't even run PHP code.

The whole site works now.

I'm not a web developer so I wasted 6 hours on this.

  • Like 1
Link to comment
Share on other sites

Just wanted to add more details....

My .htacces in my subdomain directory looks like this now

# .htaccess file in root

# Use PHP5 Single php.ini as default

AddHandler application/x-httpd-php5s .php

Everything works!!

  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...