All right, I got the latest version of Drupal this time because it was said it was easier to install.

I`m finding it`s the same thing. Same confusing directions, same jumbled mess in the file.

I put in the info in settings.php & the page doesn`t load.

Comments

styro’s picture

djfox’s picture

The question is why isn`t it working?

calebgilbert’s picture

information so that we can help you diagnose the problem. Any error messages, symptoms, etc will be extremely helpful. You may also want to checkout the handy dandy podcast on how to install Drupal.

=====
Bloggyland.com - Custom install w/ 25 xtra modules, hosting, and support - live demo
Custom development - HigherVisibilityWebsites.com

djfox’s picture

http://drupal.org/node/82090

This was my past post on the installing issue.

Yes, I`ve read that manual on how to install it several times. 4 times to be exact.

calebgilbert’s picture

so don't worry about that.

Based on the message you are receiving (if there was any more to the message that will be helpful to know, btw) it sounds like either:

a) the settings you have in settings.php are not correct

and/or

b) you have not yet installed the database tables

=====
Bloggyland.com - Custom install w/ 25 xtra modules, hosting, and support - online demo
Custom development - HigherVisibilityWebsites.com

djfox’s picture

The database tables are in. I was able to do that fine.

I know the information I put in settings.php is correct because it`s the same info I had used in past php files in which had worked.

calebgilbert’s picture

past files it's probably not right.

I suggest pasting in your settings.php here (you'll need to use opening and closing "code" tags so it shows up right, btw) so that we can see what you've got going on. Feel free to change any private info before posting.

Also, all it says is 'that it can't connect'? There's no other text/messages with the error?

=====
Bloggyland.com - Custom install w/ 25 xtra modules, hosting, and support - online demo
Custom development - HigherVisibilityWebsites.com

djfox’s picture

I posted it below.

Yeah, that`s all it says for text, it didn`t show anything else.

djfox’s picture

This isn`t working no matter what I do. Why won`t it work?

vm’s picture

please post the line from the settings.php file.

you can do this without showing anyone your exact information (alter it). but if you inadvertantly remove a colon or the @ character it could explain your problem.

you also don't explain in either post what your hosts setup is.
version of php
version of mysql
version of linux (or whether its windows box)

djfox’s picture

It`s windows, the php is version is 4, it has MySQL, my host is Infinology & that`s all I know.

Here`s the settings.php file (or at least the best of how this forum will display it):

<?php
// $Id: settings.php,v 1.27 2006/04/24 19:25:37 dries Exp $

/**
 * @file
 * Drupal site-specific configuration file.
 *
 * The configuration file to be loaded is based upon the rules below.
 *
 * The configuration directory will be discovered by stripping the
 * website's hostname from left to right and pathname from right to
 * left. The first configuration file found will be used and any
 * others will be ignored. If no other configuration file is found
 * then the default configuration file at 'sites/default' will be used.
 *
 * For example, for a fictitious site installed at
 * http://www.drupal.org/mysite/test/, the 'settings.php'
 * is searched in the following directories:
 *
 *  1. sites/www.drupal.org.mysite.test
 *  2. sites/drupal.org.mysite.test
 *  3. sites/org.mysite.test
 *
 *  4. sites/www.drupal.org.mysite
 *  5. sites/drupal.org.mysite
 *  6. sites/org.mysite
 *
 *  7. sites/www.drupal.org
 *  8. sites/drupal.org
 *  9. sites/org
 *
 * 10. sites/default
 *
 * If you are installing on a non-standard port number, prefix the
 * hostname with that number.  For example,
 * http://www.drupal.org:8080/mysite/test/ could be loaded from
 * sites/8080.www.drupal.org.mysite.test/.
 */

/**
 * 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. If your username, password
 * or database name contain characters used to delineate
 * $db_url parts, you can escape them via URI hex encodings:
 *
 *   : = %3a   / = %2f   @ = %40
 *   + = %2b   ( = %28   ) = %29
 *   ? = %3f   = = %3d   & = %26
 *
 * To specify multiple connections to be used in your site (i.e. for
 * complex custom modules) you can also specify an associative array
 * of $db_url variables with the 'default' element used until otherwise
 * requested.
 *
 * You can optionally set prefixes for some or all database table names
 * by using the $db_prefix setting. If a prefix is specified, the table
 * name will be prepended with its value. Be sure to use valid database
 * characters only, usually alphanumeric and underscore. If no prefixes
 * are desired, leave it as an empty string ''.
 *
 * To have all database names prefixed, set $db_prefix as a string:
 *
 *   $db_prefix = 'main_';
 *
 * To provide prefixes for specific tables, set $db_prefix as an array.
 * The array's keys are the table names and the values are the prefixes.
 * The 'default' element holds the prefix for any tables not specified
 * elsewhere in the array. Example:
 *
 *   $db_prefix = array(
 *     'default'   => 'main_',
 *     'users'     => 'shared_',
 *     'sessions'  => 'shared_',
 *     'role'      => 'shared_',
 *     'authmap'   => 'shared_',
 *     'sequences' => 'shared_',
 *   );
 *
 * Database URL format:
 *   $db_url = 'mysql://username:password@localhost/databasename';
 *   $db_url = 'mysqli://username:password@localhost/databasename';
 *   $db_url = 'pgsql://username:password@localhost/databasename';
 */
$db_url = 'mysql://username:password@localhost/databasename';
$db_prefix = '';

/**
 * Base URL (optional).
 *
 * If you are experiencing issues with different site domains,
 * uncomment the Base URL statement below (remove the leading hash sign)
 * and fill in the URL to your Drupal installation.
 *
 * You might also want to force users to use a given domain.
 * See the .htaccess file for more information.
 *
 * Examples:
 *   $base_url = 'http://www.example.com';
 *   $base_url = 'http://www.example.com:8888';
 *   $base_url = 'http://www.example.com/drupal';
 *   $base_url = 'https://www.example.com:8888/drupal';
 *
 * It is not allowed to have a trailing slash; Drupal will add it
 * for you.
 */
# $base_url = 'http://www.example.com';  // NO trailing slash!

/**
 * PHP settings:
 *
 * To see what PHP settings are possible, including whether they can
 * be set at runtime (ie., when ini_set() occurs), read the PHP
 * documentation at http://www.php.net/manual/en/ini.php#ini.list
 * and take a look at the .htaccess file to see which non-runtime
 * settings are used there. Settings defined here should not be
 * duplicated there so as to avoid conflict issues.
 */
ini_set('arg_separator.output',     '&amp;');
ini_set('magic_quotes_runtime',     0);
ini_set('magic_quotes_sybase',      0);
ini_set('session.cache_expire',     200000);
ini_set('session.cache_limiter',    'none');
ini_set('session.cookie_lifetime',  2000000);
ini_set('session.gc_maxlifetime',   200000);
ini_set('session.save_handler',     'user');
ini_set('session.use_only_cookies', 1);
ini_set('session.use_trans_sid',    0);
ini_set('url_rewriter.tags',        '');

/**
 * Variable overrides:
 *
 * To override specific entries in the 'variable' table for this site,
 * set them here. You usually don't need to use this feature. This is
 * useful in a configuration file for a vhost or directory, rather than
 * the default settings.php. Any configuration setting from the 'variable'
 * table can be given a new value.
 *
 * Remove the leading hash signs to enable.
 */
# $conf = array(
#   'site_name' => 'My Drupal site',
#   'theme_default' => 'pushbutton',
#   'anonymous' => 'Visitor'
# );

calebgilbert’s picture

Change this line to reflect your actual info and you should be good to go:

$db_url = 'mysql://username:password@localhost/databasename';

You can get this info from cpanel>Mysql if you do not know it already. "localhost" should be the only thing that stays the same.

=====
Bloggyland.com - Custom install w/ 25 xtra modules, hosting, and support - online demo

djfox’s picture

I did. I just didn`t show it because I don`t want all my info spread across the net.

calebgilbert’s picture

...cpanel > mysql and/or phpmyadmin to make sure that what you think is your db username and db name is actually what it is.

Some people around here would probably hang me for telling you this, but if all else fails you might want to see if you have fantastico (I used fantastico for my very first Drupal install a long time ago and it worked well enough to get me hooked!).

=====
Bloggyland.com - Custom install w/ 25 xtra modules, hosting, and support - online demo

djfox’s picture

I have no idea what that is...

I know my info is correct. It`s the same info I used on php templates that I tried using (but dropped because I couldn`t merge them or change their layout). & those worked fine.

vm’s picture

verify that you DB is actually still there by loggin into phpmyadmin (on your host) and making sure the database is actually holding the Drupal tables.

if you didnt delete the orginal installation from the other program, you can use this opportunity to delete them by dropping the tables.

djfox’s picture

I got rid of the old ones & the new ones are there.

vm’s picture

you should ask your host which version of mySQL you are using. its a good nugget of information to know. without it ? how did you know which DB tables to import into your DB ? 4.0 or 4.1 ?

djfox’s picture

I can`t ask them because they never respond to my messages. x.x

vm’s picture

then how did you decide which script to populate your DB with ?
lastly, localhost ? you are replaceing with your hosts mysqlserver yes ? no ? does your host allow you to use localhost ?
much of this information should be readily available in your hosts knowledge base or support documents, or support forums.

there are two ways this line can read

$db_url = 'mysql://yourDBusername:yourDBpassword@localhost/databasename';

or

$db_url = 'mysql://yourDBusername:yourDBpassword@yourDBserver/databasename';

so lets say my host is powweb and my server is mysql15.powweb.com
my databaseusername: kenn (some hosts prefix this so it can look like : hostprefix_kenn)
my databasepassword :1234
my database name: drupalproject (some hosts prefix this so it can look like : hostprefix_drupalproject)

the information above would go into settings.php like so........

$db_url = 'mysql://kenn:1234@mysql15.powweb.com/drupalproject';
or
$db_url = 'mysql://hostprefix_kenn:1234@mysql15.powweb.com/hostprefix_drupalproject';

your host prefix will have to be gotten from the OPS area of yoru host, or from your host directly.

without any of us knowing which servers you are on, it is limited in the help we can offer.
a host that doesnt answer your questions however, is a host you should get rid of.

djfox’s picture

I was told to use 4.7 because I had 4.5, it wasn`t working with the same problems, someone said that it was easier to install (which I`m finding it`s not).

As for the database, I didn`t know which to use, I selected one, didn`t work, removed it, tried the other one, still didn`t work.

calebgilbert’s picture

You're not going to want to get this site up and running with someone like that behind you.

If you insist on using your host, for whatever reason, and you have cPanel - you may want to log in there and look and see if you see an item called fantastico. If so you can click on it and then locate Drupal and it will install it for you. Some folks around here think it's equal to the plague, but if it gets you up and running. I don't know.

=====
Bloggyland.com - Custom install w/ 25 xtra modules, hosting, and support - online demo

djfox’s picture

I`m stuck with them because I have no money to move on to a new one. I would like a new one, but there`s also that I don`t know where to move myself to.

I don`t have fantastico.

calebgilbert’s picture

then sort of - but it does sound like a weird situation if your host isn't even responding to you (am not sure how much time has gone by, but I'm assuming it's been a lot).

I am more than happy to credit you a month (preferably for the second month) if you wanted to sign up with me, and I will for the sake of propriety, leave it up to you whether or not to contact me via email at

info at bloggyland.com

Am sorry you're having so many troubles. Know it doesn't help you much now, but the next version of Drupal is going to have an installer...

=====
Bloggyland.com - Custom install w/ 25 xtra modules, hosting, and support - online demo

calebgilbert’s picture

...am going to be out for a few hours, but if you want to sign up your site will be automatically activated and I can help you with any issues when I get back. Otherwise, good luck on getting things going.

=====
Bloggyland.com - Custom install w/ 25 xtra modules, hosting, and support - online demo

djfox’s picture

It actually having an installer might make it better, I still can`t get it going. I know with the other stuff that had installers, I had no problem getting them to work.