
16th May 2006, 19:30
|
|
Junior Member
|
|
Join Date: May 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Have you restarted apache ?
Your web pages are locatd under /home/www/virtual/*/web and not under /home/www/*/web ?
|

1st August 2006, 22:52
|
|
Member
|
|
Join Date: Jun 2006
Location: Vienna, Austria
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
same problems with drupal on Ubuntu 6.06
hello -
i was reading these entries and tried to fix my problems.
since i've put drupal into my /home/web6/web/cms - directory, i have the
"500 Internal Server Error".
my httpd.conf looks like this:
Code:
<Directory /home/*/user/*/web>
Options +Includes -Indexes
AllowOverride All
# AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
and the .htaccess-file looks like this:
Code:
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
<FilesMatch "(\.(engine|inc|install|module|sh|.*sql|theme|tpl(\.php)?|xtmpl)|code-style\.pl|Entries.*|Repository|Root)$">
Order deny,allow
Deny from all
</FilesMatch>
# Set some options.
Options -Indexes
Options +FollowSymLinks
# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.
# PHP 4, Apache 1
<IfModule mod_php4.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>
# PHP 4, Apache 2
this is in the LOG-file (/home/web6/log):
Code:
[Wed Aug 02 10:23:16 2006] [alert] [client 85.125.230.181] /home/web6/web/.htaccess: Options not allowed here
so, i really don't know how to make it work properly.
Please folks, help me!
__________________
___________________
pinz0 - working on ubuntu 6.06 + ispconfig
Last edited by pinz0; 2nd August 2006 at 10:28.
|

2nd August 2006, 03:19
|
|
Member
|
|
Join Date: Feb 2006
Posts: 65
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Quote:
Code:
<Directory /home/*/user/*/web>
Options +Includes -Indexes
AllowOverride All
# AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
|
change to
Code:
<Directory /home/*/user/*/web>
Options +Includes -Indexes
AllowOverride All
# AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
# <Files ~ "^\.ht">
# Deny from all
# </Files>
</Directory>
Try this. I'm not sure if that will work, but I think
Code:
<Files ~ "^\.ht">
Deny from all
</Files>
prevents .htaccess to be loaded. "^\.ht" is a regular expression matching files beginning with ".ht", so .ht*.
I could be mistaken though. Have a look at the docs on the apache website.
__________________
Always mention at least your distribution/version! You can add it in your signature if you don't want to always type it. ;-)
Distributions:
Ubuntu 5.10 with custom kernel (2.6.16-suspend2),
Debian Sarge 3.1 and Etch
Please submit your ISP or Webhost to (free)
http://www.ihostnz.com
|

2nd August 2006, 14:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
Code:
<Directory /home/*/user/*/web>
Options +Includes -Indexes
AllowOverride All
# AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
is the wrong stanza.
It's this stanza:
Code:
<Directory /home/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
that you must change.
|

2nd August 2006, 14:32
|
|
Member
|
|
Join Date: Jun 2006
Location: Vienna, Austria
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
THANKS!
it works now! many thanks for the quick help.
bests!
__________________
___________________
pinz0 - working on ubuntu 6.06 + ispconfig
|

3rd August 2006, 18:03
|
|
Member
|
|
Join Date: Jun 2006
Location: Vienna, Austria
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
another problem!
hello again,
another problem showed up with isp-config and drupal  .
for some reason it is not possible to view uploaded files.
if i click on the link of the uploaded file the server again posts the "500 error".
is there someone who can help me with that problem?
bests!
__________________
___________________
pinz0 - working on ubuntu 6.06 + ispconfig
Last edited by pinz0; 4th August 2006 at 16:54.
|

4th August 2006, 13:21
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
The problem is the .htaccess file in your files directory. If you remove it, it should work, but as far as I know this opens a security hole so this is not recommended...
|

4th August 2006, 16:53
|
|
Member
|
|
Join Date: Jun 2006
Location: Vienna, Austria
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by falko
The problem is the .htaccess file in your files directory. If you remove it, it should work, but as far as I know this opens a security hole so this is not recommended...
|
thanks for your response.
yes, if i rename or remove the .htaccess-file in /files, than it works fine, but as you mention, this can't be the way..
any recommendations for the .htaccess - file or for another back door-solution?
__________________
___________________
pinz0 - working on ubuntu 6.06 + ispconfig
|

4th August 2006, 18:03
|
|
Member
|
|
Join Date: Jun 2006
Location: Vienna, Austria
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok!
ok, i think i have a solution for the problem.
i pasted this into /etc/apache2/apache2.conf:
Code:
<Directory /home/*/web/drupal/files>
AllowOverride All
Order allow,deny
Allow from all
</Directory>
i think, that this works for all drupal-installs on the server.
bests!
__________________
___________________
pinz0 - working on ubuntu 6.06 + ispconfig
|

17th June 2007, 03:18
|
|
Member
|
|
Join Date: May 2007
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Puzzling.
I have tried several recipes to allow .htaccess overrides and still get the error 500.
my apache2.conf looks like:
Code:
<Directory /var/www/*/web>
Options +Includes -Indexes
AllowOverride All
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
The error log reports:
Sat Jun 16 20:49:50 2007] [alert] [client 83.165.10.237] /var/www/web2/web/.htaccess: Options not allowed here, referer: http://www.familythrive.com/administ...ask=showconfig
I have this actual web located at /var/www/web2/web/
Do i need to tweak anything at /etc/apache2/vhosts/Vhosts_ispconfig.con?
Thanks,
Nuno.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 12:47.
|
Recent comments
1 day 3 hours ago
1 day 12 hours ago
1 day 15 hours ago
1 day 16 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 21 hours ago
1 day 22 hours ago
2 days 14 hours ago
2 days 15 hours ago