Can I develop site offline using drupal.. i.e without internet connection??

I have apache server, php and drupal all installed. Drupal installation file..install.txt says to add your site name..eg: "www.example.com" in settings.php file of sites folder in drupal.

$base_url = 'http://localhost';

I pointed this to $base_url = 'http://localhost/drupal/testing/testing.php'

where testing is my site i want to develop offline and then upload it to the internet.

going to http://localhost/drupal/testing/testing.php using IE takes me to the login page where it asks for user id and password and on entering the same, it just launches my testing.php page.

It DOES NOT show the administration panel etc.. of drupal.

How do i do start developing the site using drupal offline?

where can i get complete info?

is it mandatory to have internet access and access to the website on the internet.??

pls reply asap

Comments

bonobo’s picture

From what you have posted, it looks like your $base_url is wrong --

You want your $base_url to be point to the directory that contains the index.php file for the drupal install.

Also, you don't want to include any file names in the $base_url -- so, if the index.php file is located at http://localhost/drupal/testing/index.php, you would set $base_url = 'http://localhost/drupal/testing, without any trailing backslash.

To develop a test site, you do not need a live internet connection.

I hope this helps.

Cheers,

bonobo

-------
http://www.funnymonkey.com
Tools for Teachers

modijs’s picture

index.php file i am using here is nothing but simple php file that shows me version of php. i actually used this just for testing. i dont need this for my test site. So removed this index.php file.

Now the testing folder is blank.. i.e. have no files in it.

Also changed the $base_url = http://localhost/drupal/testing

Now this takes me to login page where it asks for user and password. i entered user and password but then nothing happens. It does not show me anything like admistration panel, navigation etc.. as specified in documents as well as on the login page.

How do I proceed with building the test site from scratch? How do i create new or resuse existing themes?

thanx.

heine’s picture

If the testing folder is blank, where's drupals index.php? This folder should be where base_url is pointing to (via the webserver). If you installed drupal in a subdirectory of /drupal/testing your base_url is still incorrect.

If you installed drupal in /drupal and you can indeed find drupal's index.php there, the base_url should be http://localhost/drupal

--
Tips for posting to the forums

modijs’s picture

Following is the brief setup and configs done:
*I am having PHP, APACHE, MYSQL and Drupal installed.

*Drupal is installed in C:/apache/htdocs/Drupal-4.6.3

*Database for drupal is called "drupal". Have all rights properly assigned. (Grant privileges)

*In file sites/default/settings.php have edited the $db_url line to match the database defined

$db_url = "mysql://test:test@localhost/drupal";

Also Set $base_url to match the address of site:

$base_url = "http://testsite1";

*In Apache config file 'http.conf'

At the end of the file, have added following

NameVirtualHost 127.0.0.1:80

DocumentRoot "C:/apache/htdocs"
ServerName localhost


DocumentRoot "C:/apache/htdocs/Drupal-4.6.3"
ServerName testsite1

*In windows edited the end of the "hosts" file to read:

127.0.0.1 localhost
127.0.0.1 testsite1

*Also able to ping testsite1

*Also created a "files" subdirectory in your Drupal
installation directory. i.e in "C:/apache/htdocs/Drupal-4.6.3"

Problem is:
*Using IE when i go to http://testsite1 it shows the directory structure (i.e. all files and folders) within the "Drupal-4.6.3" folder.

I guess it should show some login page, etc isnt it?

How do I proceed ahead with the making of the test site? Is there something wrong i m doing above?

thanx

bonobo’s picture

You need edit the line that begins DirectoryIndex

Add index.php to that line.

This is the DirectoryIndex line from the my test site:
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.html.var index.phtml

From what you have described, this should do it.

Cheers,

bonobo

-------
http://www.funnymonkey.com
Tools for Teachers

heine’s picture

You may set allowoverride to all instead. Then such settings will be picked up from the .htaccess file that comes with drupal. This will make setting up clean urls easier as well.

--
Tips for posting to the forums