Ok, I'm trying to install drupal on a webserver for the 1st time, and I keep getting that error when going to my site. Let me tell you what I did. 1st I unzipped the lastest release (4.5.1) to a folder on my desktop, then i uploaded the contents of that folder to my httpdocs folder on my webserver. After that I created my databases and database users (user: example pass: example123 and the DB name was drupal). Lastly I went into the conf.php file and edited the following lines to say the respected info: $db_url = "mysql://example:example123@localhost/drupal"; I also went down to the $base_url = "http://www.maxhyatt.com"; Now, I've also got apache, mySQL and php running on a local machine, and the installation on that web server went quickly (10 mins @ most) and it worked just fine. I've been reading around, and it seems like its a php setting that i can't alter. that .htaccess also causes all the other files on my server to display that 500 internal server error, even if the file is in another directory. I need some help, any would be appreciated! thanks in advance guys. I know you probably heard this a thousand times, and I do apologize if thats the case.
By MystaMax on
Comments
.htaccess
Did you make any changes to the .htaccess file at all?
If not, have you tried adjusting the RewriteBase?
.htaccess
I have not made any changes to that file. It is the same file that i received when downloading the 4.5.1 release
I have not tried adjusting the RewriteBase. What should I change and where? I'm assuming its in the .htaccess file. A reference to the code would be helpful. thanks for the quick response!
yep
yes, there is a line for RewriteBase in the .htaccess file which is commented out. Simply uncomment it and change it to "RewriteBase /" since you copied Drupal into the root of your web server -- I say this mostly because we know that this error is affecting real directories and files you had before, and .htaccess as is will pass any request through the rewrite rules...
If that does not work, try changing RewriteEngine to off (or even removing everything between
<IfModule mod_rewrite.c></IfModule>) to test. They're not required, but you won't be able to enable clean URLs in the Drupal settings if you don't have it.Additionally, you might be able to glean some more information from the server's error log, typically located at /var/log/httpd/error_log in the file system, where the details of the 500 server error should be logged.
Possible answer...
You say that you set
$base_urltohttp://www.maxhyatt.com, but you mention that there are inacessible files "in another directory." Is Drupal not at your site root? If not, then your$base_urlshould point tohttp://www.maxhyatt.com/drupalsubdir/instead.:: C. Lee Davis
:: Fantasy Geographic Society
miscommunication
hmm. drupal is in my root directory. After installing drupal in my ROOT, other pages on my site have become inaccessible as well
Drupal changes some php
Drupal changes some php variables in it's .htaccess file. Try removing the file temporarily.
--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.
--
Drupal services
My Drupal services
modify .htaccess
Are there any modifications that I can apply to this file so that it'll work? I want to play around with drupal! I really appreciate everyone taking the time to help me out!
htaccess
Pre-existing subdirectories etc. would have to be enabled for direct access via htaccess. The basic file prevents direct access except through Drupal as a security measure.
--
mediagirl.org
enabling
so... what am I suppose to do? I'm not sure I totally understand what you are trying to say:(
.htaccess
am I altering something in that .htaccess file or do I need to contact my web host?
Admission of ignorance
Drupal's security is keeping your subdirectory from being reached. This can be enabled via .htaccess, but I don't know enough to tell you how to do it without screwing up Drpual. I suspect it's in this part:
same problem here after
same problem here after upgrading to 4.7 beta. Any help is appreciated!
How do i do that?
Can you describe or give me an example of how to do that? I see the part of the .htaccess file that seems to deal with allow/deny for directories but I don't know the syntax or have a working example to fix it.
Sean
Cambridge Community Television
http://www.cctvcambridge.org
4.6.4 too
hey got same problem here.
i delete .htaccess and then i can access the files, but surely that's not the right way to fix it.
already tried diff solutions from replies but nothing works.
so anyone can help please?
This was a solution that
This was a solution that might be specific to my web host, but it solved the problem that I experienced. Take a look at this thread and maybe it can help you too:
http://drupal.org/node/29135
Sean
Cambridge Community Television
http://www.cctvcambridge.org
I've got the same problem
I've got the same problem with this very simple .htaccess: