tank Posted August 11, 2013 Share Posted August 11, 2013 Im trying to create a test site My site is hosted at Blue host which uses C-panel I created a sub domain Copied all files into new directory for sub domain Using phpMyAdmin created database and exported from existing database and imported into new database. Database seems fine from what I can see in phpMyAdmin 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 More sharing options...
Jiten rash (away) Posted August 11, 2013 Share Posted August 11, 2013 database shop url..check ps configuration Link to comment Share on other sites More sharing options...
El Patron Posted August 11, 2013 Share Posted August 11, 2013 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 More sharing options...
tank Posted August 13, 2013 Author Share Posted August 13, 2013 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 More sharing options...
tank Posted August 13, 2013 Author Share Posted August 13, 2013 v1.4.9 If I made a subdomain test and installed files in a subfolder shop Would this be correct: define('__PS_BASE_URI__', '/test/shop/'); Link to comment Share on other sites More sharing options...
vekia Posted August 13, 2013 Share Posted August 13, 2013 let's clarify a bit your subdomain looks like: test.domain.com ? in the domain settings you can define the directory, where the domain points, in this case - what is the domain folder? Link to comment Share on other sites More sharing options...
tank Posted August 13, 2013 Author Share Posted August 13, 2013 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 More sharing options...
vekia Posted August 13, 2013 Share Posted August 13, 2013 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 More sharing options...
tank Posted August 14, 2013 Author Share Posted August 14, 2013 My page still comes up blank, No errors show up, even though I turned debug on. Link to comment Share on other sites More sharing options...
El Patron Posted August 14, 2013 Share Posted August 14, 2013 My page still comes up blank, No errors show up, even though I turned debug on. what page comes up blank? front office back office...please detail what you did and it's results so the community can better help you Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 maybe you have an access to the php error log file? maybe there you will find information about erorrs Link to comment Share on other sites More sharing options...
tank Posted August 14, 2013 Author Share Posted August 14, 2013 Both Front and back office come up completely blank. Link to comment Share on other sites More sharing options...
tank Posted August 15, 2013 Author Share Posted August 15, 2013 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. 1 Link to comment Share on other sites More sharing options...
tank Posted August 15, 2013 Author Share Posted August 15, 2013 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!! 2 Link to comment Share on other sites More sharing options...
Recommended Posts