Hello,

I'm moving a Drupal site from Dreamhost shared to LayeredTechnologies dedicated server on Debian + DirectAdmin panel.

The problem is that in the new server, with DirectAdmin panel the URL to the html files is as follows:
http://XX.XX.XX.XX/~admin/ (Until I'll transfer the domain).
I read that this is how a site is defined in directAdmin by default until the URL is registered.

My site is multisite so under sites directory I have
mydomain.com
mydomain.com/subsite1
mydomain.com/subsite2

So If I want it to work on the new server I should change the directories to

XX.XX.XX.XX/~admin/
XX.XX.XX.XX/~admin/subsite1
XX.XX.XX.XX/~admin/subsite2

But linux does not allow to create such directories. I get " mkdir: cannot create directory `xx.xx.xx.xx/~admin': No such file or directory" ( I changed the IP to xx.xx.xx.xx)

How can I run drupal on this server without transferring the domain ?

Comments

anner’s picture

It's unclear whether you are trying to create these under your drupal sites/ directory or not. But if that is the goal (as I think it sould be)

try:

mkdir -p xx.xx.xx.xx/~admin
mkdir xx.xx.xx.xx/~admin/subsite1
mkdir xx.xx.xx.xx/~admin/subsite1

While I'm not sure about debian, this worked fine on my fedora box. It appears that one of your parent directories was missing

If you are trying to create these directories under your main directory when you login, you'll want to login then do:
mkdir subsite1
mkdir subsite2

Without the rest of the path, because that is very probably not the server file path for your home directory (even if it is the URL).

nbd’s picture

Thanks ! that's what I needed