• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Use subdomain for testing/staging area

D

DealOnline

Guest
Very new to Plesk 10.2 and have received some training from a knowledgeable source on setting up multiple domains.

Now what I am trying to do is create a testing/staging area on a subdomain (test.example.com) from my main domain/live site (example.com) so I can test and then update my live site.

I have pointed my DNS for subdomain to server hosting all sites. Went into power user mode and created subdomain which allowed my to place my files at var/www/vhosts/example.com/test (folder - css,img,index.html) and in subdomains area at var/www/vhosts/example.com/subdomains/test (folder - cgi-bin, conf, error docs) - typed my url into browser and saw VPS webfusion html page, so thinking this is going good so far.

Next step, I copied the files from my live site var/www/vhosts/example.com/httpdocs to my subdomain at var/www/vhosts/example.com/test

Next step, copied database of live site into new test database. Navigated into my var/www/vhosts/example.com/test where files are and found my local.xml file and updated database information to connect test database to subdomain test folder files. Also went into my test database and updated the core-config table my base-url and secure-url to my new subdomain, test.example.com

According to all instructions this should work. So I went to my browser and typed in my subdomain test.example.com and instead of viewing my subdomain I get pushed to my live site, also when I try to view my admin area for subdomain (am running magento stores) test.example.com/administrator I get pushed to live site url too.

Have I missed steps? Is there some preparation I needed to do with Plesk before creating subdomain and copying files?

Any help would be appreciated. Working with magento based stores and running them from Plesk Panel 10.2.
 
If you subdomain works without files from livesite, that it is not a plesk issue.
So, i think there is redirect, caused by you CMS.
May be there is another *-url records in db or lines in config file?
 
Back
Top