Hi;
I have tried to install durpal, but so far no luck, and stuck in the first step.
I already have a database driven site ( php, mysql) and works fine, I can access my host using Cpanel, and also using PHP My admin, so no problem of db access.
so here is what I have done, using php my admin I have made a DB, "blogdb" ( no table inside),
DB name: blogdb
username: myblog
password: myblog2003

I also made a subdomain of my site with the name of blog
http://blog.mysite.com

and on the conf.php file I have changed some lines as:

--------------------------------------------

// $Id: conf.php,v 1.26 2003/03/16 07:02:16 dries Exp $

#
# Database settings:
#
# Note that the $db_url variable gets parsed using PHP's built-in
# URL parser (i.e. using the "parse_url()" function) so make sure
# not to confuse the parser. In practice, you should avoid using
# special characters that are not used in "normal" URLs either.
# That is, the use of ':', '/', '@', '?', '=' and '#', ''', '"',
# and so on is likely to confuse the parser; use alpha-numerical
# characters instead.

$db_url = "mysql://myblog:myblog2003@localhost/blogdb";
# $db_url = "pgsql://user:password@hostname/database";
# $db_url = "mssql://user:password@hostname/database";

$db_url = "mysql://myblog:myblog2003@localhost/blogdb";

#
# Base URL:
#
# The URL of your website's main page. It is not allowed to have
# a trailing slash; Drupal will add it for you.
#
$base_url = "http://blog.mysite.com";

#
# PHP settings:
#
# To see what PHP settings are known to work well, take a look at
# the .htaccesss file in Drupal's root directory. If you get
# unexcepted warnings or errors, double-check your PHP settings.

# If required, update PHP's include path to include your PEAR directory:
// ini_set("include_path", ".:/path/to/pear");

#
# Languages / translation / internationalization:
#
# The first language listed in this associative array will
# automatically become the default language. You can add a language
# but make sure your SQL table, called locales is updated
# appropriately.
$languages = array("en" => "english");

#
# Custom navigation links:
#
# Custom navigation links override the standard page links offered
# by most Drupal modules. Administrators may add/remove/reorder all
# links here. These links are typically displayed in a row near the
# top of every page.
// $custom_links = array(
// "home",
// "journal",
// "articles");

------------------------------------------------------
this is the exacxt file change except my website name, I also took off the php code from beginning and end. ( eitherwise the code does not show up)

so when I run install, nothing shows up, empty space.

another thing which I did not do anything with,
in the manual it saya something about change some value or adding the following to
.htaccess file,

" magic_quotes_gpc 0
session.save_handler user
session.cache_limiter none
"

but I am not sure which .htaccess
I run a webpage driven page, and there is a file there, with this name, there is also such a file comes with the durpal package. I don't know which one I should mess with.

anyone can help Please?

thanks.

Comments

Kobus’s picture

Hi, manou,

Just looking at your conf.php file, I see two problems already:

1) You have two lines like these:
$db_url = "mysql://myblog:myblog2003@localhost/blogdb";

While I don't think it would cause any problems, you should change that.

Furthermore:

2) You mention two different locations as your site's address:
$db_url = "mysql://myblog:myblog2003@localhost/blogdb";
$base_url = "http://blog.mysite.com";

Make sure they are synchronized.

If your site is currently on your localhost machine, then make sure both addresses in the $base_url as well as $db_url point to localhost, if you're talking about a live site, make sure both point to blog.mysite.com.

As for the correct .htaccess file, they are referring to the local .htaccess file supplied with Drupal, or, if you have access to a higher-level .htaccess, then you may do it there as well in addition to the local file.

Hope this helps.

Regards,

Kobus

ax’s picture

2) You mention two different locations as your site's address:
$db_url = "mysql://myblog:myblog2003@localhost/blogdb";
$base_url = "http://blog.mysite.com";

Make sure they are synchronized.

If your site is currently on your localhost machine, then make sure both addresses in the $base_url as well as $db_url point to localhost, if you're talking about a live site, make sure both point to blog.mysite.com.

thats wrong. $db_url points from your web server to your mysql server. in 99% of the cases, both servers are on the same machine, so having "localhost" here is perfectly valid. moreover, your mysql server almost certainly won't be accessible from anything else than "localhost".

Kobus’s picture

My MySQL server and the server where my files are hosted is not the same server - my web host has separate servers for the MySQL databases. They are different servers in my case, and might also be different servers in his case.

If that's not the solution to the problem - then how about you trying? You know more than me :)

Regards,

Kobus

Anonymous’s picture

Thank you all for your replies,

well, I did change the word LOCALHOST to the name of the site,
( both mysql server and the site are in the same server)

$db_url = "mysql://myblog:myblog2003@blog.mysite.com/blogdb";
$base_url = "http://blog.mysite.com";

I removed the extra line which I had, these are the only change i did.

but I now get error:

Access denied for user: 'mysite@server16.totalchoicehosting.com' (Using password: YES)

this error could be for wrong id and password, but everything is correct. I have no idea why this happend.

and when I added following lines to the .htaccess file of Durpal :

magic_quotes_gpc 0
session.save_handler user

I get this: Internal Server Error;

I don't know if these two lines should be written in between a php tag or what.

Appreciate you reply;
Thanks

varunrohin’s picture

hi,am new to use drupal.i have installed it successfully.my doubt is while creating admin account it asking for email.but in localhost mail services is not possible !..anyone help me to overcome this problem.