Server Support Forum
Anzeige:


Zurück   Server Support Forum > Server > Virtuelle Server


Antwort
 
LinkBack Themen-Optionen Thema bewerten
  #1  
Alt 09.05.2012, 14:42
Registered User
 
Registriert seit: 02.2007
Beiträge: 11
.htaccess von Wordpress blockiert cgi-bin

Hallo zusammen,

habe einen neuen Virtual Server von host europe und betreibe dort mehrere Blogs und Seiten. Bisher lief alles gut, doch jetzt habe ich ein Problem. Die .htaccess mit der ReWrite Rule von Wordpress blockt meinen cgi-bin das ich immer einen Error 403 erhalte.

Server ist dieses Paket:
Virtual Server Linux XL 5.0 mit Ubuntu und Plesk Admin Software.

Wordpress ist direkt im Stammverzeichnis des jeweiligen Webspace eingerichtet, weshalb die .htaccess leider auch direkt im Stammverzeichnis steht.

Die ReWrite Rule ist diese hier:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


Ich könnte natürlich die Blogs in Unterverzeichnise packen, aber das wäre nur meine letzte Notlösung die ich anwenden würde.

Error_log sieht so aus:
[Tue May 08 22:36:29 2012] [notice] caught SIGTERM, shutting down
[Tue May 08 22:36:31 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:36:31 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:36:31 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:36:31 2012] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue May 08 22:36:31 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Tue May 08 22:36:31 2012] [notice] Digest: generating secret for digest authentication ...
[Tue May 08 22:36:31 2012] [notice] Digest: done
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
[Tue May 08 22:36:31 2012] [notice] mod_python: Creating 8 session mutexes based on 40 max processes and 0 max threads.
[Tue May 08 22:36:31 2012] [notice] mod_python: using mutex_directory /tmp
[Tue May 08 22:36:31 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:36:31 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:36:31 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:36:31 2012] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue May 08 22:36:31 2012] [notice] Apache/2.2.14 (Ubuntu) DAV/2 mod_fcgid/2.3.6 mod_python/3.3.1 Python/2.6.5 mod_ssl/2.2.14 OpenSSL/0.9.8k mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue May 08 22:37:33 2012] [notice] caught SIGTERM, shutting down
[Tue May 08 22:37:40 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:37:40 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:37:40 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:37:40 2012] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue May 08 22:37:40 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Tue May 08 22:37:40 2012] [notice] Digest: generating secret for digest authentication ...
[Tue May 08 22:37:40 2012] [notice] Digest: done
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
[Tue May 08 22:37:41 2012] [notice] mod_python: Creating 8 session mutexes based on 40 max processes and 0 max threads.
[Tue May 08 22:37:41 2012] [notice] mod_python: using mutex_directory /tmp
[Tue May 08 22:37:41 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:37:41 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:37:41 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 22:37:41 2012] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue May 08 22:37:41 2012] [notice] Apache/2.2.14 (Ubuntu) DAV/2 mod_fcgid/2.3.6 mod_python/3.3.1 Python/2.6.5 mod_ssl/2.2.14 OpenSSL/0.9.8k mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue May 08 23:40:34 2012] [notice] caught SIGTERM, shutting down
[Tue May 08 23:40:36 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 23:40:36 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 23:40:36 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Tue May 08 23:40:36 2012] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue May 08 23:40:36 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Tue May 08 23:40:36 2012] [notice] Digest: generating secret for digest authentication ...
[Tue May 08 23:40:36 2012] [notice] Digest: done


Mein suexec log sieht aus:
[2012-05-09 00:31:10]: uid: (10000/rel_admin) gid: (1005/1005) cmd: test.cgi
[2012-05-09 00:31:10]: target uid/gid (10000/1005 or 1004) mismatch with directory (0/0) or program (0/0)
[2012-05-09 00:31:10]: uid: (10000/rel_admin) gid: (1005/1005) cmd: test.cgi
[2012-05-09 00:31:10]: target uid/gid (10000/1005 or 1004) mismatch with directory (0/0) or program (0/0)
[2012-05-09 00:31:10]: uid: (10000/rel_admin) gid: (1005/1005) cmd: test.cgi
[2012-05-09 00:31:10]: target uid/gid (10000/1005 or 1004) mismatch with directory (0/0) or program (0/0)
[2012-05-09 00:41:32]: uid: (10000/rel_admin) gid: (1005/1005) cmd: test.cgi
[2012-05-09 00:41:33]: uid: (10000/rel_admin) gid: (1005/1005) cmd: test.cgi
[2012-05-09 08:29:33]: uid: (10000/rel_admin) gid: (1005/1005) cmd: test.cgi
[2012-05-09 15:17:38]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:17:38]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)
[2012-05-09 15:17:39]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:17:39]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)
[2012-05-09 15:17:39]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:17:39]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)
[2012-05-09 15:18:10]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:18:10]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)
[2012-05-09 15:18:12]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:18:12]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)
[2012-05-09 15:18:13]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:18:13]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)
[2012-05-09 15:18:16]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:18:16]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)
[2012-05-09 15:19:31]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:19:31]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)
[2012-05-09 15:19:32]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:19:32]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)
[2012-05-09 15:19:32]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:19:32]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)
[2012-05-09 15:19:32]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:19:32]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)
[2012-05-09 15:19:52]: uid: (10000/rel_admin) gid: (1005/1005) cmd: pfad.pl
[2012-05-09 15:19:52]: target uid/gid (10000/1005 or 1004) mismatch with directory (10000/0) or program (10000/1004)

Kann mir jemand helfen? Ich nehme an das es etwas mit diesem mismatch zu tun hat oder?
Mit Zitat antworten

  #2  
Alt 09.05.2012, 15:58
Registered User
 
Registriert seit: 02.2007
Beiträge: 11

Ich habe die .htaccess nun mal zum Test umbenannt. Ein Skript funktioniert jetzt ganz gut, aber ein anderes leider nicht. Es sagt immer Error 500. Die Rechte habe ich alle angepasst. Ich verstehe es einfach nicht mehr
Mit Zitat antworten
  #3  
Alt 09.05.2012, 16:21
Benutzerbild von Joe User
R​o​o​t​F​o​r​u​m Team
 
Registriert seit: 11.2008
Ort: Hamburg
Alter: 36
Beiträge: 2.874

Die .htaccess ist unschuldig und kannst Du dort lassen. Das Problem ist Deine Apache-Config, insbesondere Dein ScriptAlias fürs cgi-bin

Zudem solltest Du die Ursachen für die Warnungen in Deinem Log beseitigen.
__________________
Ist ein dedizierter Server das Richtige für mich? ¤ Vorgehensweise bei gehacktem Server ¤ FreeBSD Remote Installation ¤ RootForum Community ¤ RootWiki
„If there’s more than one possible outcome of a job or task, and one of those outcomes will result in disaster or an undesirable consequence, then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Mit Zitat antworten
  #4  
Alt 09.05.2012, 16:37
Registered User
 
Registriert seit: 02.2007
Beiträge: 11

Du meinst das hier:

<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>
Mit Zitat antworten
Antwort

Lesezeichen


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist aus.
HTML-Code ist aus.
Trackbacks sind aus
Pingbacks sind aus
Refbacks sind aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
ufw blockiert apt trotz allow 127.0.0.1 to anywhere kpetersen Security 1 21.07.2009 22:59
Horde blockiert Zugriff racer Mail 4 19.06.2009 14:13
MySQL blockiert earlgrey SQL 4 04.07.2007 20:00
Postfix blockiert ? ServerSeppel Mail 2 11.08.2006 10:37
Rootzugriff blockiert :s Xam Linux 4 01.03.2006 15:58





Powered by vBulletin® Version 3.8.8 (Deutsch)
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO ©2011, Crawlability, Inc.