Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th January 2008, 21:09
smilem smilem is offline
Member
 
Join Date: Jan 2008
Posts: 52
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation got 500 internal server error tried to enable chmod from FTP

I tried to enable chmod from FTP program and commented these lines in
/etc/proftpd.conf

# Bar use of SITE CHMOD by default
#<Limit SITE_CHMOD>
# DenyAll
#</Limit>

I restarted the server and
Now I get 500 internal server error

Tried to make like berofe

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>

Server still shows 500 internal server error need a FIX asap

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 15th January 2008, 21:27
smilem smilem is offline
Member
 
Join Date: Jan 2008
Posts: 52
Thanks: 1
Thanked 0 Times in 0 Posts
Default

It seems that 500 error is cause by .htaccess file in joomla instalaltions that I enabled.

here is the code, can someone tell me what causes this?

Code:
##
# @version $Id: htaccess.txt 9795 2008-01-02 11:33:07Z rmuilwijk $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
# Only use one of the two SEF sections that follow.  Lines that can be uncommented
# (and thus used) have only one #.  Lines with two #'s should not be uncommented
# In the section that you don't use, all lines should start with #
#
#####################################################

##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On


#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section


########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
Also I found on google about thisproblem:
http://209.85.135.104/search?q=cache...lnk&cd=1&gl=lt

Is this a FIX? I need to be able to use FTP to chmod files and to use .htaccess files
Reply With Quote
  #3  
Old 15th January 2008, 21:47
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,034
Thanks: 265
Thanked 151 Times in 131 Posts
Default

did you try this?

Code:
##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
You can also try to comment out line by line, and see what is causing the "500" error
__________________
Never execute code written on a Friday or a Monday.

Last edited by edge; 15th January 2008 at 21:51.
Reply With Quote
The Following User Says Thank You to edge For This Useful Post:
FXT (27th January 2008)
  #4  
Old 15th January 2008, 22:03
smilem smilem is offline
Member
 
Join Date: Jan 2008
Posts: 52
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by edge
did you try this?

Code:
##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
You can also try to comment out line by line, and see what is causing the "500" error
Thanks, this solved the error
Reply With Quote
  #5  
Old 15th January 2008, 22:29
smilem smilem is offline
Member
 
Join Date: Jan 2008
Posts: 52
Thanks: 1
Thanked 0 Times in 0 Posts
Default

BTW could you explain why it caused an error?

Do I need to do like the site said:

Then, edit httpd.conf .. Find out the foll lines and mod -

<Directory “/www/vhosts/localhost”> #replace this with your dir name
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All #Added
</Directory>

<Directory />
Options FollowSymLinks
# AllowOverride Limit #Old Value
AllowOverride All #Added
Order deny,allow
Deny from all
Satisfy all
</Directory>

I understand that this is ISPconfig security feature that only server admin and reseller can add additional Apache directives into the site's virtual host container manually so that is why .htaccess is disabled?

Last edited by smilem; 15th January 2008 at 22:36.
Reply With Quote
  #6  
Old 15th January 2008, 22:55
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

If you have added AllowOverride All within your apache2.conf or httpd.conf, .htaccess files are allowed on your server in any website.
I think that the internal 500 error occured because you did not have AllowOverride All within your Apache configuration yet.

Personally, i think it is more safe to set AllowOverride None instead of AllowOverride All. AllowOverride None means that .htaccess files are not allowed, but if you use ISPConfig, you can add the following to the Apache directive field for your Joomla site within ISPConfig:

<Directory "/var/www/webX/web">
Options FollowSymLinks
AllowOverride All
</Directory>

Note:
webX is the number of your web as defined ny ISPConfig.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Public and private network + High Availability Apache Cluster teleted HOWTO-Related Questions 11 28th January 2008 14:29
I cant conect to ftp if i use a client ftp chua_jose Installation/Configuration 7 3rd December 2007 15:45
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 10:07
Routing multiple FTP servers koroshiya1 Server Operation 5 1st August 2006 12:28
FTP 101 the basics koegies Installation/Configuration 7 17th November 2005 15:55


All times are GMT +2. The time now is 11:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.