seiktel
25. Februar 2011 um 15:21
1
Wollte heute mal RavensNuke(PHP-CMS) ausprobieren. Doch bekomme den Fehler: Interner Server Error: 500.
Denke es liegt an der htaccess-Datei:
[code]#####################################################
READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
THESE INSTRUCTIONS APPLY TO ALL Options DIRECTIVES
The lines below this section that begin with Options may cause problems
with some server configurations. They are required for certain functions
of Apache and RavenNuke™, but may already be set by your server administrator in a way
that dissallows changing them in your .htaccess file. If using any of them causes your server
to error out, comment them out (add # to beginning of line), reload your site in your browser
and test the functionality that is affected. If it works, then it has been set by your server
administrator and you do not need it set here.
#####################################################
‘Options +FollowSymLinks’ is required for use of mod_rewrite.
Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
‘Options +Includes’ is required for use of Server Side Includes (SSI), such as custom error pages (like 403.shtml).
Can be commented out if causes errors, see notes above.
Options +Includes
‘Options -Indexes’ is used for controlling directory listings if there is not an index file in a directory (and said directory is readable by the web server).
A directory index will be automatically generated and this can prove to be a dangerous security issue.
To disable this feature, use: ‘Options -Indexes’
To enable this feature (not advised), use: ‘Options +Indexes’
Can be commented out if causes errors, see notes above.
Options -Indexes
-------------------------------------------
Set search order for index files
-------------------------------------------
DirectoryIndex index.php index.htm index.html
-------------------------------------------
For better performance set FileETag to NONE base on recommendations from
-------------------------------------------
FileETag none
-------------------------------------------
Only process if mod_expires is installed
For faster load times cache certain types of files for specific amount of time
You should adjust these settings based upon your caching requirements
-------------------------------------------
ExpiresActive On
# ExpiresDefault A86400
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType text/css "access plus 5 minutes"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType text/plain "access plus 15 minutes"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType video/x-flv "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
# ExpiresByType text/html "access plus 5 minutes"
ExpiresByType text/javascript "access plus 5 minutes"
ExpiresByType application/x-javascript "access plus 5 minutes"
-------------------------------------------
Start of NukeSentinel™ admin.php Auth
-------------------------------------------
<Files .ftaccess>
deny from all
<Files .staccess>
deny from all
-----------------------------------------------------------------------------------------------------
Leave this block commented out unless HTTPAuth is NOT available in your NukeSentinel™ Admin Panel.
This code is mainly for use with CGI Authentication when PHP is compiled as CGI and NOT an Apache module.
-----------------------------------------------------------------------------------------------------
require valid-user
AuthName “Restricted”
AuthType Basic
AuthUserFile /path/to/your/.staccess
-----------------------------------------------------------------------------------------------------
-------------------------------------------
If you use TegoNuke™ ShortLinks with RavenNuke™ then copy your ShortLinks.htaccess file/rules below inbetween
the and tags.
Only process if mod_rewrite is installed
-------------------------------------------
# TegoNuke(tm) ShortLinks - ShortLinks.htaccess file/rules should go after this line
-------------------------------------------
Error Document Redirects
TegoNuke™ ShortLinks - ShortLinks.htaccess file MUST be before these directives (See above).
If you add a new error redirect then you need to add the corresponding xxx.php file to modules/ErrorDocuments/
Format:
ErrorDocument xxx /PATH_TO_ERROR_DOCUMENT_RELATIVE_TO_WEB_SERVER_DOCUMENT_ROOT
-------------------------------------------
-------------------------------------------
To prevent a looping redirect anomaly we use this 3 line routine for 404 Page Not Found errors
-------------------------------------------
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) /modules.php?name=ErrorDocuments&file=404&rs=$1 [NC,L,R]
ErrorDocument 400 /modules.php?name=ErrorDocuments
ErrorDocument 401 /modules.php?name=ErrorDocuments
ErrorDocument 403 /modules.php?name=ErrorDocuments
ErrorDocument 406 /modules.php?name=ErrorDocuments
ErrorDocument 500 /modules.php?name=ErrorDocuments
-------------------------------------------
Start of NukeSentinel™ DENY FROM area
-------------------------------------------
[/code]
Wenn sich wer auskennt, bitte ich um Hilfe.
MfG
Seiktel
Chris
25. Februar 2011 um 15:27
2
Kommentiere diese Zeile aus, indem du einfach ein Raute-Zeichen davorsetzt.
Dann sollte es klappen.
FollowSymLinks ist hier ohnehin aktiv, wenn man versucht es erneut aktiv zu setzen gibt es o.g. Fehlermeldung.
seiktel
25. Februar 2011 um 15:29
3
Danke Dir, für die schnelle Antwort ^^
seiktel
25. Februar 2011 um 15:31
4
Habe es geändert:
[code]#####################################################
READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
THESE INSTRUCTIONS APPLY TO ALL Options DIRECTIVES
The lines below this section that begin with Options may cause problems
with some server configurations. They are required for certain functions
of Apache and RavenNuke™, but may already be set by your server administrator in a way
that dissallows changing them in your .htaccess file. If using any of them causes your server
to error out, comment them out (add # to beginning of line), reload your site in your browser
and test the functionality that is affected. If it works, then it has been set by your server
administrator and you do not need it set here.
#####################################################
‘Options +FollowSymLinks’ is required for use of mod_rewrite.
Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
‘Options +Includes’ is required for use of Server Side Includes (SSI), such as custom error pages (like 403.shtml).
Can be commented out if causes errors, see notes above.
Options +Includes
‘Options -Indexes’ is used for controlling directory listings if there is not an index file in a directory (and said directory is readable by the web
server).
A directory index will be automatically generated and this can prove to be a dangerous security issue.
To disable this feature, use: ‘Options -Indexes’
To enable this feature (not advised), use: ‘Options +Indexes’
Can be commented out if causes errors, see notes above.
Options -Indexes
-------------------------------------------
Set search order for index files
-------------------------------------------
DirectoryIndex index.php index.htm index.html
-------------------------------------------
For better performance set FileETag to NONE base on recommendations from
-------------------------------------------
FileETag none
-------------------------------------------
Only process if mod_expires is installed
For faster load times cache certain types of files for specific amount of time
You should adjust these settings based upon your caching requirements
-------------------------------------------
ExpiresActive On
# ExpiresDefault A86400
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType text/css "access plus 5 minutes"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType text/plain "access plus 15 minutes"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType video/x-flv "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
# ExpiresByType text/html "access plus 5 minutes"
ExpiresByType text/javascript "access plus 5 minutes"
ExpiresByType application/x-javascript "access plus 5 minutes"
-------------------------------------------
Start of NukeSentinel™ admin.php Auth
-------------------------------------------
<Files .ftaccess>
deny from all
<Files .staccess>
deny from all
-----------------------------------------------------------------------------------------------------
Leave this block commented out unless HTTPAuth is NOT available in your NukeSentinel™ Admin Panel.
This code is mainly for use with CGI Authentication when PHP is compiled as CGI and NOT an Apache module.
-----------------------------------------------------------------------------------------------------
require valid-user
AuthName “Restricted”
AuthType Basic
AuthUserFile /path/to/your/.staccess
-----------------------------------------------------------------------------------------------------
-------------------------------------------
If you use TegoNuke™ ShortLinks with RavenNuke™ then copy your ShortLinks.htaccess file/rules below inbetween
the and tags.
Only process if mod_rewrite is installed
-------------------------------------------
# TegoNuke(tm) ShortLinks - ShortLinks.htaccess file/rules should go after this line
-------------------------------------------
Error Document Redirects
TegoNuke™ ShortLinks - ShortLinks.htaccess file MUST be before these directives (See above).
If you add a new error redirect then you need to add the corresponding xxx.php file to modules/ErrorDocuments/
Format:
ErrorDocument xxx /PATH_TO_ERROR_DOCUMENT_RELATIVE_TO_WEB_SERVER_DOCUMENT_ROOT
-------------------------------------------
-------------------------------------------
To prevent a looping redirect anomaly we use this 3 line routine for 404 Page Not Found errors
-------------------------------------------
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) /modules.php?name=ErrorDocuments&file=404&rs=$1 [NC,L,R]
ErrorDocument 400 /modules.php?name=ErrorDocuments
ErrorDocument 401 /modules.php?name=ErrorDocuments
ErrorDocument 403 /modules.php?name=ErrorDocuments
ErrorDocument 406 /modules.php?name=ErrorDocuments
ErrorDocument 500 /modules.php?name=ErrorDocuments
-------------------------------------------
Start of NukeSentinel™ DENY FROM area
-------------------------------------------[/code]
… Doch es geht immer noch nicht.
MfG
Seiktel
Options +Includes funktioniert vermutlich auch nicht, da es hier keine SSI gibt.
Außerdem darfst du nur für 404 eine eigene Fehlersite schalten. Alle anderen ErrorDocument-Zeilen kannst du löschen.
Na so ein Zufall. Ich habe gerade auf bplacedPro geupdated und bekomme nun ebenfalls einen Internal Server Error 500. So dass ich keinen Zugriff auf Wordpress habe.
blog.aschnabel.bplaced.net/
tobsp
25. Februar 2011 um 17:59
8
[quote=“Astrofan”]Na so ein Zufall. Ich habe gerade auf bplacedPro geupdated und bekomme nun ebenfalls einen Internal Server Error 500. So dass ich keinen Zugriff auf Wordpress habe.
blog.aschnabel.bplaced.net/ [/quote]
Hallo,
freut mich, dass du nun bplaced pro Nutzer bist.
Wie schaut dein .htaccess Inhalt aus?
Piwik, und MySQLDumper funzen ebenfalls nicht. Meine stinknormale HTML funktioniert aber noch.
aschnabel.bplaced.net/
Wordpress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
MySQLDumper
AuthName "MySQLDumper"
AuthType Basic
AuthUserFile "/users/aschnabel/www/mysqldumper/.htpasswd"
require valid-user
Im Stammverzeichnis gab es noch diese .htaccess
[code]
Order deny,allow
deny from all
BEGIN WordPress
END WordPress[/code]
Habe # BEGIN WordPress an den Anfang gesetzt. Nun funktionierts wieder.
Habe mich wohl geirrt. Problem besteht weiter.