In the directions in step 4 say :
$db_url = "mysql://username:password@localhost/database";
where 'username', 'password', 'localhost' and 'database' are the
username, password, host and database name for your set up.
Set $base_url to match the address to your Drupal site:
$base_url = "http://www.example.com";
My question is, I am trying to run this on my home machine locally, I do not have a static IP address, my host name on my linux box is "linux" I dont have it dns'd to any address, also Im going through a router with a 192.168.xxx.xxx scheme, I just want to set this up locally, Im not sure what I enter for local host in this command
$db_url = "mysql://username:password@localhost/database";
And what do I enter here for :
$base_url = "http://www.example.com";
Comments
IP address
Just put the IP address of the machine that you installed drupal on, like so:
$base_url = "http://192.168.x.x";
If you will be accessing Drupal from the same machine only, you can set that to
$base_url = "http://localhost";
--
Drupal development and customization: 2bits.com
Personal: Baheyeldin.com
--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba
If your webserver and database server
are on the same machine, just use localhost in the db connection string.
The only potential wrinkle with MySQL is that username@localhost and username@realhostname (or username@ipaddress for that matter) are different user accounts in the database.
But unless you are accessing or admining your MySQL server from another machine, you are probably already using the username@localhost account. So just stick with localhost in the connection string.
--
Anton
If I use the IP address like
If I use the IP address like 192.168.1.103 , and I created the database called drupal would i have to set the address to
http://192.168.1.103/drupal ?
The webserver is a seperate machine, from where I want to access the drupal site, and configure once I can get it installed correctly . .lol
No
Just try it as I said, and it will work.
You only need to have a subdirectory if you have drupal installed in a subdirectory under the DocumentRoot of the webserver.
The /drupal at the end of the $db_url is the database name, and has nothing to do with directories.
--
Drupal development and customization: 2bits.com
Personal: Baheyeldin.com
--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba
The 2 settings are unrelated
The db connection string is for getting the webserver to connect to the database - it bears no real resemblance to your web site address or file layout or anything. It is just a way of setting 4 or 5 database connection parameters in one go.
If the db and webserver are on the same server - localhost will work best for the db setting and be the most secure.
---
The base url setting relates to how your browsers connect to the webserver. This directly relates to the URL you use in your browser. The only reason to use a subdirectory here is if your Drupal installation is actually installed in a subdirectory of your web root.
If you have to use IP addresses in your browser to reach your webserver (ie no DNS or hosts file entries), you will need to use an IP address in the base url setting. If you can reach it through a hostname, put the hostname in the base url.
Make sense?
--
Anton
hosts file in /etc
# /etc/hosts: This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
127.0.0.1 localhost linux
192.168.x.x linux
Have fun and check my Drupal Profile: http://drupal.org/user/519