I've recently taken control of a server with Plesk 9.2.2 installed. There are no domains registered yet, but i've "created" a domain within Plesk and successfully uploaded my Drupal site via FTP and PHPMYADMIN.

However, I've got problems. I can't give you the proper urls or paths for commercial reasons, but the site is available for preview at a location like this:

https://abc-v12np.pl.myhosting.co.uk:8000/sitepreview/http/myproductionsite.co.uk/

I made sure I edited the SQL to change any paths from my staging server to the paths on the new server, but Drupal is completely unable to log in - it breaks out of the preview area on the login redirect to something like this:

https://abc-v12np.pl.myhosting.co.uk:8000/?q=user/login

1) Is there any way of making apache or drupal more bulletproof when using plesk domains like this? Is there something I forgot to set up? 2) Is there another way of accessing my site? Could I do something like http://ip-of-my-server/index.php

I've edited all the drupal files i can think of - adding $base_url in the sites/default/settings.php and even editing the SQL on the database to have full server paths, but it's not really fixed the problem.

All help REALLY appreciated :)

link|improve this question

46% accept rate
feedback

migrated from stackoverflow.com Sep 30 '09 at 18:47

This question came from our site for professional and enthusiast programmers.

3 Answers

In your drupal .htaccess file make sure you set your RewriteBase:

RewriteBase /sitepreview/http/myproductionsite.co.uk
link|improve this answer
Hiya, i've just added that, but it's not made the difference I'm afraid. – hfidgen Sep 30 '09 at 19:00
feedback

OK htaccess has: /sitepreview/http/mysite.co.uk

And the Drupal settings.php has: $base_url = '/sitepreview/http/mysite.co.uk'; // NO trailing slash!

But no joy, I think it's something to do with Apache or Plesk itself?

link|improve this answer
feedback
up vote 0 down vote accepted

The answer was that Plesk does not support this in any way.

You either have to edit your hosts file to spoof it, or you can simply point any spare domain you have at the right IP address and then password it all.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.