By rogdawg on
I copied the contents of the Drupal directory from my local machine to the hosting service's "public_html" folder. I copied the .sql file, created the db, ran the script and it appears that I have a database that is full of information.
I have edited the $base_url and $db_url variables in the settting.php file, to what I believe are the correct values.
But, when I try to navigate to the site, I get an error stating "Directory has no index file".
Can anyone suggest what the problem might be?
I don't think it is a problem connecting to the database. I don't think the process is even getting that far along.
Any help will be greatly appreciated.
Thanks!
Comments
another question
Should I only be posting the contents of the htdocs folder? Or, should I include all the directories contained in the Drupal directory, as my book says to do?
I am asking because I see that the htdocs folder contains a file called index.php. So, should that be copied as the root folder?
Thanks again.
(no title)
Try to access your site using http://example.com/index.php. Does it work? If not, then there is a server configuration problem. If it does work, then try the following:
The "index file" is Drupal's index.php file and it should exist. Maybe your server configuration does not consider it an index file.
For this purpose, there is a line in Drupal's .htaccess file,
<DirectoryIndex index.php>which tells the server that this is the index file. Do you have Drupal's .htaccess file?Thank you for your response.
Thank you for your response.
trying this address: http://example.com/index.php does not work.
Since the index.php file is contained in the htdocs sub-directory, I tried this as well: http://example.com/htdocs/index.php. That did not work either. The .htaccess file is located in the htdocs sub-directory.
Here is the folder structure I have in the public_html directory:
directories:
conf
htdocs
licenses
scripts
in the htdocs directory, I have:
these directories:
files, includes, misc, modules, profiles, scripts and themes...and many files, including .htaccess, index.php, etc.,
thanks again for your help.
The htdocs directory is your
The htdocs directory is your "web root". Anything outside it is not accessible from the Web with a browser.
The htdocs directory is where http://example.com goes, and it is also where you have installed Drupal. Everything seems correct there.
Except, for some reason, "index.php" is not executed. Check its permissions, just in case it is unreadable, or ask your host's tech support to fix it.
thank you
thanks very much