I have a virtual host w/o a domain name. I'm testing a migration to the new host.

So the address I have to work with is http://ipaddress/~name

I can FTP and use the cpanel to access this site. I uploaded the drupal6.2tar file and upzipped.

When I went through the process after putting in the database information, I get a lot of errors similar to this:

/public_html/drupal/includes/install.inc on line 618
/public_html/drupal/includes/install.inc on line 619

I'm pretty sure this has to do with the ~name and that its not setup as a domain name.

Is there a way to install drupal on this site for testing?

Thanks
Tim

Comments

gadams’s picture

try removing the ~ from the folder path.

You can install Drupal on servers using the IP Address instead of a domain name.

In this instance you will only need a vhost file for the ip address and directories that your site is stored in.
<VirtualHost 12.34.56.78:80>

"Just as diamonds are forever, Google Cache is too"
"If all else fails pray and hope to Dries it works"
"What in Dries' name were you thinking?"

email68’s picture

The way I understand it is that there are several sites under the IP address. Then the virtual sites are isolated by the ~name of each user.

So I cannot remove the ~ since that would not get me access to my area of the server.

I could be wrong, but this is how I understand it.

bitradiator’s picture

The tilde (~) is an alias for the path to your home directory, usually something like /home/username. Instead of ~ use the complete path starting from the servers root.

woodp’s picture

I have a similar problem in that I'm trying to move a site from a domain to a numeric ip address.

www.domain.com -> 12.34.56.78/~domain

Moving the files and the database was the easy part. Then I edited the $db_url and $baseurl values in settings.php to:

$db_url = 'mysqli://domain_admin:password@localhost/domain_drupal';
$base_url = 'http://12.34.56.78/home/domain';

Now, when I go to 12.34.56.78/~domain, I receive the following error:

Fatal error: Call to undefined function db_query() in /home/domain/public_html/includes/session.inc on line 32

It looks like my $db_url string is wrong but it's configured identical to my other Drupal 6 sites. Any thoughts about what's going on?