Hello,
Im extremly new to drupal.
Can anyone guide me on how to make drupal work.
I have installed it according to the instructions provided in the install.txt.
Whats is www.example.com and example.com/node/

Thanks.

Comments

They are example urls using a 'fictitious' domain name.

Whenever you see them, just replace them in your mind with your own domain name eg http://www.hasindu.web.lk/node/

Does that help?

--
Anton

Thanks alot for the information. That part is solved now thanks to u.
Please can you tell me how to make a drupal site or how to access a demo site.
Is there an IDE.

It's hard to know what to tell you without knowing more about your site.

What steps have you taken so far? Where have you got up to? is the install finished? What can you do already? What things do you need help with? Have you looked through the handbook? Which bits of the documentation are confusing? etc etc

As for IDE? What do you mean by that? An IDE for writing PHP code? Or some sort of IDE for working on a Drupal site? There are IDEs for PHP, but I haven't used them.

--
Anton

Thanks alot for replying.
Well what i ment with a IDE is for working with drupal sites. Im using PHP expert editor as an IDE for writing PHP code.

These are some of the questions i have,

I have done the installation of drupal-4.6.4.. I havent yet created a site for drupal..
Must i create a site using PHP... But how do i create a site which will use drupal. Is there a special method in doing it. Can you help me to create a drupal site.

I'm pretty new myself, but I have at least got a site up and running, so I ought to be able to help you :-)

When you say you have installed Drupal, does that mean that you have completed step 1-4 (and perhaps part of 5) in the installation guide?
If that's correct, the next thing you do is open your browser, and type in the URL of the place your drupal installation is. For instance http://www.example.com/, or http://www.hasindu.web.lk/node/, or whatever is the path to your installation.
When you do that, you get a window which asks you to enter a username and password, like this. Enter a username and a password, and you're in.

If you're stuck at some other point, you might check out this tutorial for installation. It's very clear, going step by step with lots of screenshots, but it only shows creating the database with CPanel, so if you're using another method, it'll be somewhat less helpful.

By the way, it's a good idea to use that first user id only for major changes (more details), and create another user id for day-to-day-stuff.

I'm having problem wit da URL. I have unzipped da drupal-4.6.4.tar in to C:\drupal.

I've done steps 1-3, and problem is da $base_url.
Also in da browcer should i type http://localhost/xxx

Please be kind enough to help me a lil bit more.

I've gotten help from others here, and no doubt will have more questions to ask in the future, so I figure the least I can do is repay by helping others when I'm able.

Have you tried typing C:\drupal in your browser?
If that doesn't work, try to open some other file you have on your harddisk in your browser, see what the URL looks like, and copy that.

If neither of those work, I'd guess that there are some problems with your installation of web server, PHP or MySQL, but in that case, someone else will have to help you -- I don't have much experience there.

Well php works fine in my browser. I have tried running php files in it. So i guess php is ok, also MySQL is working too. Im using IIS as the web server.. Do you think that is a problem.

C:\drupal doesnt work in the browser either..
Please let me know anymore ideas..

There's your problem.

You unzip Drupal into your webservers root directory not into your filesystems root directory. eg on Linux it might be something like /var/www/, on Windows it might be something like c:\program files\apache\htdocs\ (for Apache) or c:\inetpub\ (for IIS) etc.

Drupal is just a PHP application, not an OS native application. You have to run it on your web server through your web browser which means you have to put it somewhere your webserver can serve it from.

--
Anton

Please can you tell me what i should have before installing drupal..
Should i have a website done on php..
This www.example.com Should i have hosted a wedsite before putting it to the $base_url...
Please be kind enough to reply once again...

I put the drupal directory in to c:\inetpub\wwwroot .

Please can you tell me what i should have before installing drupal..
Should i have a website done on php..

Yes, you need to have a webserver configured to run PHP working on your computer.

This www.example.com Should i have hosted a wedsite before putting it to the $base_url...

No you don't need a hosted website yet. You can run Drupal locally on your own PC while you learn it and develop your site. Later on, you can move it to a hosted website when you want other people to see it.

To run locally, you will need to use something like http://localhost/drupal as your base url. When it is hosted on the internet, you will need to register a domain and use something like http://www.hasindu.web.lk/drupal/ as your base url.

The /drupal part of the url is only needed if you unzip the drupal files into a subdirectory (in this example called "drupal"). You might prefer to have the drupal files directly in your web root - then the urls will look like http://localhost or http://www.hasindu.web.lk.

I put the drupal directory in to c:\inetpub\wwwroot

And? Does it work there? Can you open http://localhost/drupal/index.php ? or even just http://localhost/drupal ?

Judging by that path, are you using a Microsoft web server? Is the server running?

Do you have PHP working in your web server?

You might want to read these pages: http://drupal.org/node/263

--
Anton

Yes my webserver is configured to run in PHP.The phpinfo( ); command can be viewed in the browser.
Yes im using a Microsoft web server.(IIS 5.0)

When i go to "http://localhost/drupal" in the browser it say-

"You are not authorized to view this page

You might not have permission to view this directory or page using the credentials you supplied. "

And when i go to "http://localhost/drupal/index.php" it gives the following-

"Warning: main(sites/default/settings.php) [function.main]: failed to open stream: No such file or directory in c:\Inetpub\wwwroot\drupal\includes\bootstrap.inc on line 636

Warning: main() [function.include]: Failed opening 'sites/default/settings.php' for inclusion (include_path='C:\PHP\ext;C:\PHP\ext\SOAP;C:\PHP\ext\nusoap\lib;C:\PHP\pear;C:\PHP\ext\xmlrpc\lib;C:\drupal\include;C:\drupal\sites\default') in c:\Inetpub\wwwroot\drupal\includes\bootstrap.inc on line 636

Fatal error: Call to undefined function db_fetch_object() in c:\Inetpub\wwwroot\drupal\includes\bootstrap.inc on line 199 "

Should i change the code in bootstrap.inc??

Please a lil more help and i think i can make it....

When i go to "http://localhost/drupal" in the browser it say-

"You are not authorized to view this page

You might not have permission to view this directory or page using the credentials you supplied. "

Thats because index.php is not a default page in your web server. You need to configure your web server to use index.php as the default. In Apache this setting is called DirectoryIndex - I don't know what its called in IIS.

And when i go to "http://localhost/drupal/index.php" it gives the following-

"Warning: main(sites/default/settings.php) [function.main]: failed to open stream: No such file or directory in c:\Inetpub\wwwroot\drupal\includes\bootstrap.inc on line 636

Warning: main() [function.include]: Failed opening 'sites/default/settings.php' for inclusion (include_path='C:\PHP\ext;C:\PHP\ext\SOAP;C:\PHP\ext\nusoap\lib;C:\PHP\pear;C:\PHP\ext\xmlrpc\lib;C:\drupal\include;C:\drupal\sites\default') in c:\Inetpub\wwwroot\drupal\includes\bootstrap.inc on line 636

Fatal error: Call to undefined function db_fetch_object() in c:\Inetpub\wwwroot\drupal\includes\bootstrap.inc on line 199 "

Should i change the code in bootstrap.inc??

No don't edit bootstrap.inc - that won't be the problem.

I think (I'm not sure - I don't use Windows) that the db_fetch_object problem might be because you haven't got the mysql module enabled in your php.ini file.

Check that first. Does your phpinfo() list a mysql module?

You also seem to have trouble including files eg the settings.php and the database.mysql.inc file (thats where db_fetch_object() should be defined). You should double check that all the files are present and that they can be read by the web servers user account.

--
Anton

When you say mysql module-is this what you meant.

"mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 4.1.7

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off

mysqli
MysqlI Support enabled
Client API version 4.1.7
MYSQLI_SOCKET /tmp/mysql.sock

Directive Local Value Master Value
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket no value no value
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.reconnect Off Off "

I have enabled mysql in php.ini file also-
"
extension=php_mysql.dll
extension=php_mysqli.dll
"

Sorry for been a pain styro but if you can advice me more.

so you seem to have the mysql module loaded.

Have you checked out why PHP can't load the include files? It's likely to be a permissions problem or a renamed directory or something.

You need to step back through the error messages you get. Whenever you get an error like:

Failed opening 'sites/default/settings.php'

That tells you that something in your operating system or web server configuration is stopping the app opening the file. First check that the file really is there on the path its looking for it in, and that the web server has the correct permissions to open it. Drupal can't run if the web server can't read Drupals files.

An error like:

Call to undefined function db_fetch_object()

indicates that the file that defines that function isn't being loaded. Looking up http://drupaldocs.org/api/4.6/function/db_fetch_object tells us that it is defined in includes/database.mysql.inc. You should check whether the webserver can open that file too, and that the file exists in the right place etc.

On IIS there is generally a user account named IUSR_your-hostname that will need to be able to access all the drupal files. You need to check these permissions.

I'm tempted to advise you to use something like XAMP (http://www.apachefriends.org/en/xampp-windows.html). There is much more Apache experience in here than IIS experience - and Drupal (as with most PHP apps) tends to run better on Apache. Is there any special reason why you have to use IIS?

--
Anton

Apache is a big hassel isnt it.Thats why i thought of using IIS. Anyway ill install apache and try drupal and see.If there's any problem with it, if you dont mind ill contact you.
Thanks for all the help so far..
Cheers mate.

Are you trying to install Drupal on a web server so other people can access your site, or are you installing it on your Windows machine for learning purposes?

If the latter, don't just go get Apache and PHP and MySQL and try to configure them all. Instead, get XAMPP and you will have a nice preconfigured Apache/PHP/MySQL setup that runs Drupal nicely. Search this site for XAMPP and you can find some tips on it.

styro i have installed apache in my computer. What do i do next can you tell me please.

Did you install MySQL and PHP and get them to work with Apache, testing it with phpMyAdmin?

If not, see my note above, and get XAMPP instead. It has all of those and more, all ready to run together.

But first, could you clue me in on what your goal is: Do you want to install Drupal on your personal Windows machine for your own testing? Or do you want to install it on a website that other people can access?

What you are doing now is installing a private copy of Drupal for your own use. Is that what you want?

Hey Geary,
Sorry for the delay in replying. Wasnt online for da past 2 days,
Im tring to run it on the local windows machine as a test..
I downloaded XAMPP and installed it.
Could you tell me how to get about it please.
Thanks for your replies.

Hey Styro,
ill go to thread you have suggested and check if i can get a solution.
I have installed apache, php, mySQL all through XAMPP.
What should i do next.
Please advice.
Thanks for your replies.

Hi Hasindu, no problem about the slow reply, you will probably find that I am even slower! ;-)

Just to double-check... Can you now go to http://localhost/ and see your XAMPP home page?

If you can, then look at xampp\htdocs. That is the folder that http://localhost/ points to. You can put a Drupal installation there or in a subdirectory.

It looks like a couple of the other folks had some tips for you. In addition to copying the Drupal files, you will need to create and populate your database, either using command line tools as described in Drupal's INSTALL.txt, or else you can do it using phpMyAdmin. phpMyAdmin is a nice tool for working on databases. You can find it from your XAMPP home page.

Thanks for the reply Geary.
I populated the database(mySQL) according to the install.txt.
The XAMPP home page isnt coming when i go to http://localhost/ but the IIS home page is displayed.

How do u get it to display the XAMPP home page.

Thanks.

Turn off the IIS World Wide Web service. You can't have Apache and IIS sharing port 80 on your system at the same time.

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

If you can't get XAMPP working, you should either ask the XAMPP community for help or just sign up with these guys for a preinstalled Drupal instance:

http://www.bryght.com/

--
Anton

All,

when typing hppt://localhost8080/drupal on my browser, I received the following message:

Access denied for user 'ODBC'@'localhost' (using password: NO)

What do I need to do to fix this problem? Here is my configuration on drupal/sites/default/settings.php:

/*db_url='mysql://username:password@localhost/database'; */
$db_url = 'mysql://drupal:drupal@localhost/drupal';
$db_prefix = '';

$base_url = 'http://localhost:8080/drupal';

I dont have any problem to connect to the above drupal database on my sample php page but have a lot of problem when trying to launch drupal (http://localhost8080/drupal) from my local machine. Please help. I'm new to all of this (drupal, mysql, apache, and php) and I've no idea how to go about fixing this problem

Also, here is httpd.conf:

DocumentRoot "E:/PhPDevl"
ServerName localhost:8080

DocumentRoot "E:/PhPDevl/drupal"
ServerName localhost:8080

Thank you for all of your help.

You seem to be leaving the colon out of your browser URL.

The username in the mysql error message (ie ODBC) and the username in settings.php (ie drupal) differ

The mysql error message claims that you aren't using a password.

You are repeating DocumentRoot and ServerName in your httpd.conf. As far as I can tell the second bit is redundant.

Is this a hosted server, your own server, or your PC? What platform are you using? What versions of Apache, PHP, MySQL etc are you using?

How did you set it up? If it's hosted, what tools do they provide for this?

--
Anton

Anton,

here is my machine info:

windows xp
apache 2.0.55 (localhost:8080): ran the install exe
drupal 4.6.3 (downloaded from drupal website, unzipped and dropped it in the php document folder)
mysql 5.0.1.6 (i created a drupal user and drupal database, i also imported the drupal database to my local drupal database)
php 5.1.1: download it and dropped it in local drive
my php http document folder was set to E:\PhPDevl, and my drupal was loaded under E:\PhPDevl\drupal

I loaded everythings manually (I didn't use any tool)
I wrote a test page and it was successfully connected to drupal db:

$link = mysql_connect('localhost', 'drupal', 'drupal');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);

Anyway, to fix the ODBC@localhost message, what do I need to do? I'm searching on my drupal local folder and ODBC user was no where to be found... I thought settings.php is the place where I need to provide an user id, password, and the dabase name.

Once again, thank you for all of your help.

Tung

The first google hit on your error message was this thread:

http://forums.mysql.com/read.php?10,6834,6834#msg-6834

There were a bunch of different solutions in there - but as I don't use Windows I can't judge them.

--
Anton

Anton,

First of all, thank you very much for all of your help. Your link was very usedfull:
1. uninstad mysql 5 and install mysql odbc drive and install mysql 5 again: this didn't do it for me
2. Then I granted all privileges to ODBC user: this didn't do it neither
3. Then uninstalled mysql 5, installed mysql 4.1: still failed
4. uninstalled mysql 4 and installed mysql 5 back and uninstalled it and installed it several more times and certainly it started to work...

This is very weird Anton but finally I was able to pass the first stage...

Anyway, based on your experience, what is the fast way to learn drupal? How can I go about hooking a web page to drupal? I'm trying to help out several non-profit organizations and I need to learn this thing fast...

once again, thanks for your help

and start playing with the features, and modules available. Don't fixate just yet on the exact way of how you will build your sites, keep an open mind and explore all the available features. Just like Python has Pythonic ways of doing things, Drupal has 'Drupalish' ways of doing things. Try to work with Drupal rather than against it.

Start by figuring out how you will use taxonomies (if at all) and a list of modules you want to use (after try the interesting ones).

Install the PHPTemplate theme engine. Find a straight forward clean(ish) PHPTemplate theme to customise. At first CSS will probably take care of most of what you want to do theme wise, but you add bits of PHP here and there to create extra effects.

When you do start working on real sites, keep them simple to begin with. Add more features later as needed.

Keep test versions for everything.

--
Anton

Anton,

There are not that much information on the drupal's index.php (http://localhost:8080/drupal/index.php), am i missing anything? Here is what I'm receiving:

Welcome to your new Drupal-powered website. ...
The first thing you will need to do is create the first account. This account will have full administration rights and will allow you to configure your website. Once logged in, you can visit the administration section and set up your site's configuration.

Drupal comes with various modules, each of which contains a specific piece of functionality. You should visit the module list and enable those modules which suit your website's needs.

Themes handle the presentation of your website. You can use one of the existing themes, modify them or create your own from scratch.

We suggest you look around the administration section and explore the various options Drupal offers you. For more information, you can refer to the Drupal handbooks online.

...have you done what it said? :)

ie created the first user and logged in.

Once logged in this should help out: http://drupal.org/node/6261

There's heaps of good info in the handbook.
--
Anton

I've Anton... I clicked on the 'create the first account link', and then provided a preferred user name and email accress... The problem was... it failed to send an email to my registered email address (I don't have smtp server loaded in my machine). Is the main reason I couldn't go any further?

Can you please tell me step by step how you got drupal to work in your local machine.
Its a great help.

I downloaded drupal 4.6.3.tar.gz to my local machine,
unzipped it to the php document folder
modified settings.php

then I ran http://localhost:8080:/drupal ==> create first user/ administration section/set up your site's configuration./module list page came up

then i cliced on the create first user....
beside the module list page, I've no control or access to any other pages. When clicked on the administration link, it indicated that I don't have privilege to view this page....

btw, I received the following message when registered the first user:

warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:\PhPDevl\drupal\modules\user.module on line 374.
{head} {styles} {_BLOCK_.header.logo} {_BLOCK_.header.site_name} {secondary_links}
{primary_links}
{_BLOCK_.header.search_box}
{_BLOCK_.header.title} Your password and further instructions have been sent to your e-mail address.

this is a big confused to me, I've no idea what I'm doing wrong

Thanks

Tung

Can you please tell me the modifications you did to the settings.php (the one in sites/defaults/)

Thanks

$db_url = 'mysql://drupal:drupal@localhost/drupal';
$base_url = 'http://localhost:8080/drupal';

since my local IIS is the default/original localhost, apache was automatically assigned to localhost:8080

drupal:drupal@localhost/drupal equals to username:password@localhost/database name...

Hasindu, have you got this far?

Im still trying to config my machine. The page asking about the username and password is not coming still.
Did you have to edit the bootscap.php file and whats the php directory you have unzipped the drupal files.
Is it a directory which has been put as web sharing in properties.

I edited the settings.php files as you have specified.And i ran it in Internet explorer as http://localhost:8080/drupal
.Is that the way it's suppose to be?

Thanks.

I'm going to start from the beginning with this thread ina top level reply...
--
Anton

Hasindu,

I did the following:

1. Load Apache on my machine (if you are using windows, apache's local host will be http://localhost:8080 (example: http://localhost:8080/test.php

2. download php and drop it on one of your local folder (on this example, just said you created php on your c:\program files\Php51 folder, of course, it can be anything...)

config apache and php:
1. copy you php.ini.dist from your local php folder and name it as php.ini
2. edit your php.ini and search for extension=php_mysql.dll and remove the leading semicolon
3. search for extension_dir and enter your php extension folder, from the exaple above, you should enter:
extension_dir = "C:\Program Files\Php51\ext" --> please don't forget to remove the leading semicolon

apache configuration: edit your apache's httpd.conf:
1. search for NameVirtualHost and enter
NameVirtualHost localhost:8080 (please remove the leading # side)

2. search for DirectoryIndex and remove the leading # and enter:
DirectoryIndex index.shtml index.php index.php5 index.html index.html.var

copy and paste the followings on the bottom of your httpd.conf:

DocumentRoot "E:/PhPDevl"
ServerName localhost:8080

note: e:/phpDevl is my document root, this folder is the place where i'm storing my php pages. (Under this folder, I've drupal,and other php project folders)

Once you have done the above steps, you should be able to run php on your machine. I created a test.php page and dropped it on my php document folder (e:\PhpDevl) : on my browser, I typed in http://localhost:8080/test.php --> this should run...

Hpe this help Hasindu. I'll talk to you tomorrow...

Tung

The problem was... it failed to send an email to my registered email address (I don't have smtp server loaded in my machine). Is the main reason I couldn't go any further?

Most probably. It's been a while since I've followed that process, but I think the first account is the only one that absolutely requires emailing the password. Once created, passwords can be changed without requiring emails though.

Some options that might or might not work:

1) Edit the database. Change the password field of user 1 to be blank or to be a known MD5 hash.

2) Install a free SMTP server. Possibly a good idea - some other modules you install might require sending out emails later on.

3) Configure php.ini to somehow pipe SMTP stuff to a file instead of sendmail. I suspect this will only work on unix like systems and not on Windows though.

--
Anton

This whole thread has become very confused. You will need to supply specific answers for questions you get asked about your configuration - we can't help you otherwise.

As far as I can tell you aren't having a problem with Drupal yet. All your problems have so far been getting your machine set up - ie getting your web server, PHP (and MySQL - not sure if we've got up to that yet) install and configured correctly.

You were using a combination of platform software that I don't use (or many other Drupal users for that matter), so my ability to help you configure it is limited. You will need to learn more about how the infrastructure is set up - you will need to use Google to find tutorials, research problems etc. If you get stuck with this basic web server stuff, asking for help in the relevant Apache/IIS/PHP/MySQL?XAMPP etc forums will get you better answers faster.

How far did you get with XAMPP? Is that working yet?

Once you have you 'platform' ready - eg serving up PHP pages that can sucessfully make connections to MySQL databases, then you can worry about installing and configuring Drupal. At the moment you are asking about editing Drupal files - when it's not clear yet whether PHP is configured correctly.

For the record, once your server is properly configured settings.php is the only Drupal file you have to edit to get Drupal working.

--
Anton

I have apache2, XAMPP, php, mySQL installed,
I can connect to mySQL through php, i have tried that and it works.
When i go to http://localhost/ its displays the IIT home page not the XAMPP home page.
I have put the drupal folder to c://drupal and made it web shared in its properties.
I have edited the settings.php file as follows.,

$db_url = 'mysql://root:xxx@localhost/drupal';

(where xxx is the password to roots)

$base_url = 'http://localhost/drupal';

When i go to http://localhost/drupal in the browser it gives an error saying

"HTTP 403(Forbidden)
You are not authorized to view this page"

This is where i stand..

Any help from here Styro, Geary,anyone ??

Thanks

Hasindu,

i'm assuming u ring using a windows operating system:

http://localhost is you IIS server
http://localhost:8080 is your apache server

from your config ($base_url = 'http://localhost/drupal';), you are tring to point drupal lto your IIS server. if you wanted to run drupal from the apache server, you will need to change it to http://localhost:8080/drupal

are you trying to run drupal from your IIS server? if so, you will need to create a virtual server for your drupal website.
: right click on my computer and select manage
double click on services and Application
doubleck on Internet Information...
doublick on Web sites
right click on default web, new virtual directory...

when it comes to IIS and .net, I know my stuff but I don't know much about apache and php

Hey thanks for that info about the local host. Apache is working now. When i go to http://localhost:8080/drupal it shows the directory contents.
But when i go to http://localhost:8080/drupal/index.php it gives the following errors.

----
Warning: main(sites/default/settings.php) [function.main]: failed to open stream: No such file or directory in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 636

Warning: main() [function.include]: Failed opening 'sites/default/settings.php' for inclusion (include_path='C:\PHP\ext;C:\PHP\ext\dlls;C:\PHP\ext\SOAP;C:\PHP\ext\nusoap\lib;C:\PHP\pear;C:\PHP\ext\xmlrpc\lib;C:\Inetpub\wwwroot\drupal\includes') in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 636

Warning: main(includes/database.inc) [function.main]: failed to open stream: No such file or directory in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 637

Warning: main() [function.include]: Failed opening 'includes/database.inc' for inclusion (include_path='C:\PHP\ext;C:\PHP\ext\dlls;C:\PHP\ext\SOAP;C:\PHP\ext\nusoap\lib;C:\PHP\pear;C:\PHP\ext\xmlrpc\lib;C:\Inetpub\wwwroot\drupal\includes') in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 637

Warning: main(includes/session.inc) [function.main]: failed to open stream: No such file or directory in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 638

Warning: main() [function.include]: Failed opening 'includes/session.inc' for inclusion (include_path='C:\PHP\ext;C:\PHP\ext\dlls;C:\PHP\ext\SOAP;C:\PHP\ext\nusoap\lib;C:\PHP\pear;C:\PHP\ext\xmlrpc\lib;C:\Inetpub\wwwroot\drupal\includes') in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 638

Warning: main(includes/module.inc) [function.main]: failed to open stream: No such file or directory in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 639

Warning: main() [function.include]: Failed opening 'includes/module.inc' for inclusion (include_path='C:\PHP\ext;C:\PHP\ext\dlls;C:\PHP\ext\SOAP;C:\PHP\ext\nusoap\lib;C:\PHP\pear;C:\PHP\ext\xmlrpc\lib;C:\Inetpub\wwwroot\drupal\includes') in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 639

Fatal error: Call to undefined function db_fetch_object() in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 199
----

Oh and sorry styro for making the thread confusing. Thanks for all your help.

I have apache2, XAMPP, php, mySQL installed,
I can connect to mySQL through php, i have tried that and it works.

How exactly did you test this and what were the results?

When i go to http://localhost/ its displays the IIT home page not the XAMPP home page.

That means IIS is listening on port 80 of localhost. What port did Apache install on?

If it was 8080, then you would need to point your browser at http://localhost:8080 to see if Apache is working.

I have put the drupal folder to c://drupal and made it web shared in its properties.

That is an IIS thing that has no effect on Apache.

What you need to do is unzip Drupal into Apache's web root. I have no idea where that directory is on your machine but it is probably called htdocs. But don't worry about that yet - first you need to make sure you can browse to your Apache site.

You may want to stop IIS altogether to avoid any confusion.

I have edited the settings.php file as follows.,

$db_url = 'mysql://root:xxx@localhost/drupal';

(where xxx is the password to roots)

$base_url = 'http://localhost/drupal';

When i go to http://localhost/drupal in the browser it gives an error saying

"HTTP 403(Forbidden)
You are not authorized to view this page"

Is that an IIS error page or an Apache error page? I'm pretty sure that will be an IIS one.

Don't bother with anything else (don't fiddle with Drupal - you're not up to that stage yet) until you can get to your XAMPP web page in your browser

--
Anton

Hey styro thanks for replying.(Thought you were mad at me)

Anyway i did a database in mySQL set up and wrote a php code to insert, select, update and delete the data in the mySQL database i created.

I put the drupal directory into htdocs.
This is what i get when i go to http://localhost:8080

----
If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.

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

Seeing this instead of the website you expected?
This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues.

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

The Apache documentation has been included with this distribution.

You are free to use the image below on an Apache-powered web server. Thanks for using Apache!

----

When i go to http://localhost:8080/drupal it shows the drupal directory contents.
When i go to http://localhost:8080/drupal/index.php the following warning and errors come
-----
Warning: main(sites/default/settings.php) [function.main]: failed to open stream: No such file or directory in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 636

Warning: main() [function.include]: Failed opening 'sites/default/settings.php' for inclusion (include_path='C:\PHP\ext;C:\PHP\ext\dlls;C:\PHP\ext\SOAP;C:\PHP\ext\nusoap\lib;C:\PHP\pear;C:\PHP\ext\xmlrpc\lib;C:\Inetpub\wwwroot\drupal\includes') in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 636

Warning: main(includes/database.inc) [function.main]: failed to open stream: No such file or directory in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 637

Warning: main() [function.include]: Failed opening 'includes/database.inc' for inclusion (include_path='C:\PHP\ext;C:\PHP\ext\dlls;C:\PHP\ext\SOAP;C:\PHP\ext\nusoap\lib;C:\PHP\pear;C:\PHP\ext\xmlrpc\lib;C:\Inetpub\wwwroot\drupal\includes') in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 637

Warning: main(includes/session.inc) [function.main]: failed to open stream: No such file or directory in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 638

Warning: main() [function.include]: Failed opening 'includes/session.inc' for inclusion (include_path='C:\PHP\ext;C:\PHP\ext\dlls;C:\PHP\ext\SOAP;C:\PHP\ext\nusoap\lib;C:\PHP\pear;C:\PHP\ext\xmlrpc\lib;C:\Inetpub\wwwroot\drupal\includes') in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 638

Warning: main(includes/module.inc) [function.main]: failed to open stream: No such file or directory in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 639

Warning: main() [function.include]: Failed opening 'includes/module.inc' for inclusion (include_path='C:\PHP\ext;C:\PHP\ext\dlls;C:\PHP\ext\SOAP;C:\PHP\ext\nusoap\lib;C:\PHP\pear;C:\PHP\ext\xmlrpc\lib;C:\Inetpub\wwwroot\drupal\includes') in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 639

Fatal error: Call to undefined function db_fetch_object() in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 199

----

Thanks styro.

Based on your posts, I think you loaded the followings software to the following folder:

1. PHP was loaded on your c:\Php
2. Your apache was loaded on your D:\Program Files\Apache Group\Apache2
3. Your default document folder was set to D:\Program Files\Apache Group\Apache2\htdocs (this is the default)
4. Your drupal was loaded under c:\drupal --> this is a no no, it needs to be under the web document folder (in your case, it needs to be under D:\Program Files\Apache Group\Apache2\htdocs

If I was you, I would do the followings:

1. Move web document folder where else: D:\Program Files\Apache Group\Apache2\htdocs is OK but there are too many junk stuffs in it. I would move it to C:\PhPWebDevl folder

2. Move you drupal folder to the new PHP document folder (let's say C:\PhPWebDevl

3. Follow my previous post "config php, apache, and drupal" but use your c:\Php, D:\Program Files\Apache Group\Apache2, C:\PhPWebDevl, C:\PhPWebDevl\Drupal folders instead of mine.

All of your answers were already there. If you do it correctly, you shouldn't have any problem running php and apache on your machine.

Tung

Based on your posts, I think you loaded the followings software to the following folder:

1. PHP was loaded on your c:\Php
2. Your apache was loaded on your D:\Program Files\Apache Group\Apache2
3. Your default document folder was set to D:\Program Files\Apache Group\Apache2\htdocs (this is the default)
4. Your drupal was loaded under c:\drupal --> this is a no no, it needs to be under the web document folder (in your case, it needs to be under D:\Program Files\Apache Group\Apache2\htdocs

If I was you, I would do the followings:

1. Move web document folder where else: D:\Program Files\Apache Group\Apache2\htdocs is OK but there are too many junk stuffs in it. I would move it to C:\PhPWebDevl folder

2. Move you drupal folder to the new PHP document folder (let's say C:\PhPWebDevl\drupal)

3. Follow my previous post "config php, apache, and drupal" but use your c:\Php, D:\Program Files\Apache Group\Apache2, C:\PhPWebDevl, C:\PhPWebDevl\Drupal folders instead of mine.

All of your answers were already there. If you do it correctly, you shouldn't have any problem running php and apache on your machine.

Tung

Hey styro thanks for replying.(Thought you were mad at me)

No worries, I wasn't mad at you :)

Anyway i did a database in mySQL set up and wrote a php code to insert, select, update and delete the data in the mySQL database i created.

I assume that worked OK?

I put the drupal directory into htdocs.
This is what i get when i go to http://localhost:8080

----
If you can see this, it means that the installation of the Apache web server software on this system was successful.
...

OK good - Apache is working, and you know where it serves files from. You now also know what port its running on.

When i go to http://localhost:8080/drupal it shows the drupal directory contents.

OK. What that means is that index.php isn't yet configured as the default page. This is controlled by Apache's DirectoryIndex directive. If you search the httpd.conf file for DirectoryIndex, you will probably see that it is set to something like index.html. You need to add index.php to this setting.

See:
http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex

When i go to http://localhost:8080/drupal/index.php the following warning and errors come
...

OK - I don't know how XAMPP does things, so there might be a better solution (maybe ask on the XAMPP site too).

But it looks like PHP is having trouble including files.

Can you check that the files do actually exist? And that they don't have any security restrictions on them?

Looking through what happened, index.php was able to include includes/bootstrap.php successfully. But when includes/bootstrap.php tried to include sites/default/settings.php , includes/database.php , includes/session.php and includes/module.php - it didn't work. So it can include files relative to itself ok, but not relative to the main directory.

This works properly for 99.99% of Drupal users. There is something strange about your PHP configuration.

I notice the include_path mentioned in your error messages seemed a little strange:

include_path='C:\PHP\ext;
C:\PHP\ext\dlls;
C:\PHP\ext\SOAP;
C:\PHP\ext\nusoap\lib;
C:\PHP\pear;
C:\PHP\ext\xmlrpc\lib;
C:\Inetpub\wwwroot\drupal\includes'

It talks about c:\php and c:\inetpub\wwwroot\drupal\includes (an IIS path). Is this the PHP you installed earlier? or the XAMPP one? It looks pretty much like the same include path in your error messages back when you were using IIS.

I would make sure you only have one PHP install on your machine to save confusion. Now that you're using XAMPP it should probably look different. I wonder if XAMPP either ignored installing PHP because you already had it, or used your current settings.

I also notice there is no current working directory in there.

eg my servers include_path is:

include_path='.:/usr/share/php:/usr/share/pear'

Apart from Windows PHP using ';' as a directory separator, and Unix PHP using a ':' you'll notice that my first directory is '.' which is the current directory.

From the PHP include docs below...

Files for including are first looked in include_path relative to the current working directory and then in include_path relative to the directory of current script. E.g. if your include_path is ., current working directory is /www/, you included include/a.php and there is include "b.php" in that file, b.php is first looked in /www/ and then in /www/include/. If filename begins with ./ or ../, it is looked only in include_path relative to the current working directory.

...it sounds like it isn't explicitly needed, but it might be worthwhile adding '.' to your path anyway. Look for include_path in your php.ini file.

If adding '.' doesn't work you might have to add your Apache htdocs directory to that setting.

Any changes to php.ini require you to restart Apache to take effect.

Just to be sure though. I would uninstall everything to do with web servers, PHP and MySQL then start with a clean XAMPP install with no old configurations hanging around. If you don't need IIS, you can then run Apache on port 80 and not have to worry about port numbers in your URLs.

Hopefully that has given you some clues to track down and hopefully fix the problem. In my opinion the original problem was a misconfigured PHP (for IIS) that kept getting used even after installing a new version of XAMPP.

If you really want to make sure, you should probably ask some details about this stuff (eg include_paths etc etc) on the XAMPP forums if they have any.

--
Anton

How are you doing styro.
Well the mySQL with php works ok..But i have done it through IIS. Results come perfectly.

If you search the httpd.conf file for DirectoryIndex, you will probably see that it is set to something like index.html. You need to add index.php to this setting.

I set the path in DirectoryIndex as you have mentioned and it works. Now when i go to http://localhost:8080/drupal
it points to http://localhost:8080/drupal/index.php

I uninstalled php,mySQL,apache and XAMPP, and installed XAMMP and apache again.

http://localhost:8080/ is giving the same page, which mean apache is working.
But there's a problem with mySQL, cause now it says

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in D:\Program Files\Apache Group\Apache2\htdocs\drupal\includes\database.mysql.inc on line 31
Access denied for user 'root'@'localhost' (using password: YES)

I think i'll have to install mySQL again, cause even through mySQLAdmin i cant go in.

Thanks.

Styro the MySQL problem i fixed.
Now a new problem, it doesnt show up the page.
It goes to www.instafinder.com site when i go http://localhost:8080/drupal.
Do you think the database drupal doesnt exist?

It probably doesn't matter on your own PC, but you shouldn't be using the root user for Drupal.

Look up resetting the root password in the MySQL docs - there must be some way of doing it.

It sounds like you're nearly there.

--
Anton

Styro the MySQL problem i fixed.
Now a new problem, it doesnt show up the page.
It goes to www.instafinder.com site when i go http://localhost:8080/drupal.

I checked in MySQL the database called drupal exists.

$db_url = 'mysql://root:xxx@localhost/drupal';

$base_url = 'http://localhost:8080/drupal';

Those are the settings in the settings.php file

I havent changed any other file.

Thanks

All your settings look fine - the redirection is a browser thing. Probably because it can't find anything listening on port 8080. It should just give you a site not found error - but the redirection almost sounds like spyware or at least something you or your ISP has installed (http://www.instafinder.com/pp.html).

If it was a Drupal problem you'd still get some sort of PHP/Drupal stuff served up with error messages in it.

Is Apache still running?

Does http://localhost:8080 still bring up your default Apache pages?

If not, does adding a slash to the end help?

--
Anton

Yes styro apache is working.
http://localhost:8080 and http://localhost:8080/ brings up the apache page.

Wow styro it works...I had some instafinder software installed...I uninstalled it..
Now i get

Page not found with a drupal header and two links saying edit secondary links and edit primary links....

Now what do i do...Please tell styro..
Thanks for all your help...

You shouldn't be getting a page like that - it should be an introduction page asking you to create your first account.

You could try installing a fresh copy of the Drupal database script (database.mysql or whatever its called) again. Maybe something got a little trashed during all the reconfiguration.

Well at least you've finally graduated to having Drupal problems now. No more Apache, PHP, MySQL ones anymore :)

--
Anton

Thank you thank you soooo much styro..
It's working, when i go to http://localhost:8080/drupal/ this comes

Welcome to your new Drupal-powered website. This message will guide you through your first steps with Drupal, and will disappear once you have posted your first piece of content.

The first thing you will need to do is create the first account. This account will have full administration rights and will allow you to configure your website. Once logged in, you can visit the administration section and set up your site's configuration.

Drupal comes with various modules, each of which contains a specific piece of functionality. You should visit the module list and enable those modules which suit your website's needs.

Themes handle the presentation of your website. You can use one of the existing themes, modify them or create your own from scratch.

We suggest you look around the administration section and explore the various options Drupal offers you. For more information, you can refer to the Drupal handbooks online.

Guess its working...
What i did was i dropped the drupal database and manually entered the sql statements one by one...
Thank you styro for all your help...
Sorry for all the trouble..

You are right Anton, configuring drupal on a windows environment is a big confused to me. If this was a .net application, probably I wouldn't have that much of the problems (only because I know windows and .net environment much better than I know apache, php environments...) Anyway, since php host server is much cheaper than .net host server, this is the only way that I can save a few dollars for those non-profit organizations. Here is what I'm confused about:

1. even though drupal:drupal@localhost was provided in the drupal's setting.php, why in the world I received the access denied on the ODBC@local host message?

2. since I'm running drupal from my local host machine, why do I need a smtp server for? I read the drupal's install file and it didn't mention anything about smtp server. To over come this problem, I guess I'll need to look for a free smtp server...

Anyway, I don't want to give it up now. I'll give it another try tomorrow.... Once again Anton, thanks for your help

btw, I removed the password from user 1 and it still doesn't work.

Sorry, I was referring to Hasindu when I mentioned the thread getting confused.

A lot of these issues stem from the hoops software like Apache, PHP and MySQL jumps through to make themselves work on Windows. It is always much easier for single platform software to behave consistently than multi platform software.

Also IMO, MySQL and PHP aren't exactly shining examples of quality software themselves.

1. even though drupal:drupal@localhost was provided in the drupal's setting.php, why in the world I received the access denied on the ODBC@local host message?

It sounds like that was some sort of MySQL bug involving their ODBC connector - I don't know really. Not really much Drupal can do about that - and it would go unnoticed by most Drupal users that don't run their servers on Windows.

2. since I'm running drupal from my local host machine, why do I need a smtp server for? I read the drupal's install file and it didn't mention anything about smtp server. To over come this problem, I guess I'll need to look for a free smtp server...

This is another Unix vs Windows thing, and PHPs Unix roots are showing. It doesn't strictly need an SMTP server, just a way of sending email. Every single Unix machine has this built in (eg the sendmail command) and PHP needs no extra configuration. On Windows, PHP needs SMTP to send mail and most Windows machines have no SMTP.

As for why it doesn't seem to be mentioned in the docs - I dunno, maybe the issue just never crops up for most people.

You will probably find the going much simpler when it comes to getting it running on most webhosts as they already have email stuff set up. Setting up my own Drupal servers on Debian Linux was a piece of cake compared to what it seems to take on XP machines.

You can configure PHP to use something other than localhost as its SMTP relay though - look in php.ini and phpinfo() for more.

--
Anton

I am trying to test Drupal on Localhost. I installed XAMPP, loaded the database on phpmyadmin and edited the settings.php.

I get this when I try to access the site

'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://root:mike11@localhost/drupal'; $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://localhost'; // 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', '&'); 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' # ); 戼⁲㸯㰊㹢慗湲湩㱧戯㨾†慃湮瑯洠摯晩⁹敨摡牥椠普牯慭楴湯ⴠ栠慥敤獲愠牬慥祤猠湥⁴祢⠠畯灴瑵猠慴瑲摥愠⁴㩃杜捨敷屢慸灭屰慸灭屰瑨潤獣獜瑩獥摜晥畡瑬獜瑥楴杮⹳桰㩰㔱
湩㰠㹢㩃杜捨敷屢慸灭屰慸灭屰瑨潤獣楜据畬敤屳潣浭湯椮据⼼㹢漠楬敮㰠㹢㌱㰹戯㰾牢⼠ਾℼ佄呃偙⁅瑨汭倠䉕䥌⁃ⴢ⼯㍗⽃䐯䑔堠呈䱍ㄠ〮吠慲獮瑩潩慮⽬䔯≎∠瑨灴⼺眯睷眮⸳牯⽧剔砯瑨汭⼱呄⽄桸浴ㅬ琭慲獮瑩潩慮⹬瑤≤ਾ格浴浸湬㵳栢瑴㩰⼯睷⹷㍷漮杲ㄯ㤹⼹桸浴≬㰾敨摡‾琼瑩敬唾獮灵潰瑲摥搠瑡扡獡⁥祴数⼼楴汴㹥洼瑥⁡瑨灴攭畱癩∽潃瑮湥⵴祔数•潣瑮湥㵴琢硥⽴瑨汭※档牡敳㵴瑵ⵦ∸⼠ਾ猼祴敬琠灹㵥琢硥⽴獣≳洠摥慩∽污≬䀾浩潰瑲∠洯獩⽣牤灵污挮獳㬢⼼瑳汹㹥氼湩敲㵬猢潨瑲畣⁴捩湯•牨晥∽洯獩⽣慦楶潣⹮捩≯琠灹㵥椢慭敧砯椭潣≮⼠ਾ猼祴敬琠灹㵥琢硥⽴獣≳洠摥慩∽污≬䀾浩潰瑲∠洯獩⽣慭湩整慮据⹥獣≳㰻猯祴敬㰾栯慥㹤戼摯㹹格㸱湕畳灰牯整⁤慤慴慢敳琠灹㱥栯㸱㰊ⴡ‭敢楧潣瑮湥⁴ⴭਾ瀼吾敨搠瑡扡獡⁥祴数㰠浥㰾支㹭椠⁳湵畳灰牯整⹤ 倠敬獡⁥獵⁥楥桴牥㰠慶㹲祭煳㱬瘯牡‾潦⁲祍兓⁌⸳⁸愦灭※⸴⸰⁸慤慴慢敳ⱳ㰠慶㹲祭煳楬⼼慶㹲映牯䴠卹䱑㐠ㄮ砮‫慤慴慢敳ⱳ漠⁲瘼牡瀾獧汱⼼慶㹲映牯倠獯杴敲兓⁌慤慴慢敳⹳吠敨搠瑡扡獡⁥湩潦浲瑡潩獩椠潹牵㰠潣敤猾瑥楴杮⹳桰㱰振摯㹥映汩⹥⼼㹰㰊㹰潆⁲潭敲栠汥Ɒ猠敥琠敨㰠⁡牨晥∽瑨灴⼺搯畲慰⹬牯⽧潮敤㈯㠵㸢湉瑳污慬楴湯愠摮甠杰慲楤杮栠湡扤潯㱫愯⸾䤠⁦潹⁵牡⁥湵畳敲眠慨⁴桴獥⁥整浲⁳敭湡礠畯猠潨汵⁤牰扯扡祬挠湯慴瑣礠畯⁲潨瑳湩⁧牰癯摩牥㰮瀯ਾℼⴭ攠摮挠湯整瑮ⴠ㸭㰊戯摯㹹⼼瑨汭

I have just set up Drupal 5.5 on a WinXP machine for local testing, with Apache 2./PHP 4. /Mysql 3. all set up ( I know they work correctly because I have done php work for a few years on this PC ). Drupal is set up in my Apache "htdocs" folder.

I have gone through the installation process with no problems, and get to "http://localhost/drupal/index.php", with the following message ....

"Welcome to your new Drupal website!
Please follow these steps to set up and start using your website:"

... so I know this gone OK so far. Now the problem is that all of the links appear like this ....

http://localhost/drupal/?q=admin
http://localhost/drupal/?q=admin/settings
http://localhost/drupal/?q=admin/build/modules

.... etc; there is no actual page/file showing up in the url. When clicking on any of them, it just displays the list of files in the Drupal directory.

If I insert a filename, like this ....

http://localhost/drupal/index.php?q=admin/settings/site-maintenance

.... the page displays fine.

The base url in "settings.php is ....

$base_url = 'http://localhost/drupal'

So ... what am I missing?

This looks more like an apache configuration issue than a drupal issue... are you sure you have specified index.php in the DirectoryIndex setting of your httpd.conf file? i.e.

DirectoryIndex index.php index.html

That was it .... thanks.

hi all!
i read all the but what i have to ask is..
whenever i write //localhost/drupal or //localhost/drupal/index.php it redirects me to

"Database configuration" page.... it asks for

Database type: *
Database name: *
Database username: *
Database password:

and when i click finally on 'save configuration' button..it does nothing.. ia m still o the same page which asks for database configuration thing.
not getting the page which asks username n password for my drupal site..

Please looking for help urgently..
thanks in advance..

hi all,
Its done.. thanks a lot everyone..