Startseite
  • » Home
  • » Handbuch & FAQ
  • » Forum
  • » Übersetzungsserver
  • » Suche
Startseite › Forum › Drupalcenter.de › Allgemeines zu Drupal ›

Startseite lässt sich aufrufen - sonst 404

Eingetragen von bolshii (148)
am 11.07.2013 - 12:32 Uhr in
  • Allgemeines zu Drupal
  • Drupal 7.x oder neuer

Hallo,
arbeite mich grad in Views ein. Nutze hierzu das Foto-Agentur-Beispiel von video2brain. Im Browser wird die Startseite fehlerfrei angezeigt. Beim Aufrufen weiterer Pages kommen ausnahmslos 404er. Ich richtete drush ein, sodass ich als erstes "drush up" und im Anschluss "drush cc -> 1" ausführte.

'RewriteBase' ist aktiv.

Folgende Module wurden aktualisiert:

Do you wish to run all pending updates? (y/n): y
Performed update: system_update_7072                                                       [ok]
Performed update: system_update_7073                                                       [ok]
Performed update: menu_update_7000                                                         [ok]
Performed update: system_update_7074                                                       [ok]
Performed update: backup_migrate_update_7202                                         [ok]
Performed update: menu_update_7001                                                         [ok]
Performed update: views_update_7001                                                         [ok]
Performed update: image_update_7002                                                        [ok]
Performed update: image_update_7002                                                        [ok]
Performed update: system_update_7076                                                       [ok]
Performed update: system_update_7077                                                       [ok]
Performed update: menu_update_7002                                                         [ok]
Performed update: backup_migrate_update_7203                                         [ok]
Performed update: node_update_7012                                                         [ok]
Performed update: field_update_7002                                                          [ok]
Performed update: user_update_7017                                                          [ok]
Performed update: image_update_7003                                                       [ok]
Performed update: views_update_7300                                                        [ok]
Performed update: locale_update_7004                                                       [ok]
Performed update: link_update_7000                                                         [ok]
Performed update: devel_update_7004                                                        [ok]
Performed update: node_reference_update_7000                                               [ok]
Performed update: views_update_7301                                                        [ok]
Performed update: ctools_update_6008                                                       [ok]
Performed update: pathauto_update_7005                                                     [ok]
Performed update: link_update_7001                                                         [ok]
Performed update: menu_update_7003                                                         [ok]
Performed update: field_update_7003                                                        [ok]
Performed update: dblog_update_7002                                                        [ok]
Performed update: comment_update_7009                                                      [ok]
Performed update: system_update_7078                                                       [ok]
Performed update: image_update_7004                                                        [ok]
Performed update: locale_update_7005                                                       [ok]
Performed update: admin_menu_update_7304                                                   [ok]
Performed update: user_update_7018                                                         [ok]
Performed update: node_update_7013                                                         [ok]
Performed update: backup_migrate_update_7204                                               [ok]
Finished performing updates.                                                               [ok]

Fehlt da evtl. was wichtiges?

Gruß, Ingo

‹ drush: No database to operate on. Startseite lässt sich aufrufen - sonst 404 ›
  • Anmelden oder Registrieren um Kommentare zu schreiben

Was ist mit der Datei

Eingetragen von wla (9461)
am 11.07.2013 - 13:09 Uhr

Was ist mit der Datei .htaccess auf dem Server im Drupal Root-Verzeichnis? Ist die vorhanden? Du hast scheinbar nicht mehr die Bedingungen erfüllt, die für CleanURLs notwendig sind. Versuche mal über Deine.Domain.de/?q=admin/config/search/clean-urls die CleanURLs auszuschalten. Dann sollte Deine Seite erst mal wieder laufen und Du kannst den Grund suchen.

Beste Grüße
Werner

  • Anmelden oder Registrieren um Kommentare zu schreiben

Die default .htaccess liegt

Eingetragen von bolshii (148)
am 11.07.2013 - 13:42 Uhr

Die default .htaccess liegt im Webroot ( 644 ). Ich bin mir daher sicher, da ich 'RewriteBase' aktiviert habe.

#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(|~|\.sw[op]|\.bak|\.orig|\.save$
  Order allow,deny
</FilesMatch>

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php index.html index.htm

# Override PHP settings that cannot be changed at runtime. See
# sites/default/default.settings.php and drupal_environment_initialize() in
# includes/bootstrap.inc for settings that can be changed at runtime.
 
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
  php_flag magic_quotes_gpc                 off
  php_flag magic_quotes_sybase              off
  php_flag register_globals                 off
  php_flag session.auto_start               off
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_flag mbstring.encoding_translation    off
</IfModule>
 
# Requires mod_expires to be enabled.
<IfModule mod_expires.c>
  # Enable expirations.
  ExpiresActive On
 
  # Cache all files for 2 weeks after access (A).
  ExpiresDefault A1209600
 
  <FilesMatch \.php$>
    # Do not allow PHP scripts to be cached unless they explicitly send cache
    # headers themselves. Otherwise all scripts would have to overwrite the
    # headers set by mod_expires if they want another caching behavior. This may
  <FilesMatch \.php$>
    # Do not allow PHP scripts to be cached unless they explicitly send cache
    # headers themselves. Otherwise all scripts would have to overwrite the
    # headers set by mod_expires if they want another caching behavior. This may
    # fail if an error occurs early in the bootstrap process, and it may cause
    # problems if a non-Drupal PHP file is installed in a subdirectory.
    ExpiresActive Off
  </FilesMatch>
</IfModule>
 
# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on

  # Set "protossl" to "s" if we were accessed via https://.  This is used later
  # if you enable "www." stripping or enforcement, in order to ensure that
  # you don't bounce between http and https.
  RewriteRule ^ - [E=protossl]
  RewriteCond %{HTTPS} on
  RewriteRule ^ - [E=protossl:s]
 
  # Block access to "hidden" directories whose names begin with a period. This
  # includes directories used by version control systems such as Subversion or
  # Git to store control files. Files whose names begin with a period, as well
  # as the control files used by CVS, are protected by the FilesMatch directive
  # above.
  #
# NOTE: This only works when mod_rewrite is loaded. Without mod_rewrite, it is
  # not possible to block access to entire directories from .htaccess, because 
  # <DirectoryMatch> is not allowed here.
    # fail if an error occurs early in the bootstrap process, and it may cause
    # problems if a non-Drupal PHP file is installed in a subdirectory.
    ExpiresActive Off
  </FilesMatch>
</IfModule>
 
# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
 
  # Set "protossl" to "s" if we were accessed via https://.  This is used later
  # if you enable "www." stripping or enforcement, in order to ensure that
  # you don't bounce between http and https.
  RewriteRule ^ - [E=protossl]
  RewriteCond %{HTTPS} on
  RewriteRule ^ - [E=protossl:s]
 
  # Block access to "hidden" directories whose names begin with a period. This
  # includes directories used by version control systems such as Subversion or
  # Git to store control files. Files whose names begin with a period, as well
  # as the control files used by CVS, are protected by the FilesMatch directive
  # above.
  #
# NOTE: This only works when mod_rewrite is loaded. Without mod_rewrite, it is
  # not possible to block access to entire directories from .htaccess, because
  # <DirectoryMatch> is not allowed here.
  #
  # If you do not have mod_rewrite installed, you should remove these
  # directories from your webroot or otherwise protect them from being
  # downloaded.
  RewriteRule "(^|/)\." - [F]

  # If your site can be accessed both with and without the 'www.' prefix, you
  # can use one of the following settings to redirect users to your preferred
  # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
  #
  # To redirect all users to access the site WITH the 'www.' prefix,
  # (http://example.com/... will be redirected to http://www.example.com/...)
  # uncomment the following: 
  # RewriteCond %{HTTP_HOST} .
  # RewriteCond %{HTTP_HOST} !^www\. [NC]
  # RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  #
  # To redirect all users to access the site WITHOUT the 'www.' prefix,
  # (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  # RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
RewriteBase /

  # Pass all requests not referring directly to files in the filesystem to
  # index.php. Clean URLs are handled in drupal_environment_initialize().
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^ index.php [L]

  # Rules to correctly serve gzip compressed CSS and JS files.
  # Requires both mod_rewrite and mod_headers to be enabled.
  <IfModule mod_headers.c>
    # Serve gzip compressed CSS files if they exist and the client accepts gzip.
    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}\.gz -s
    RewriteRule ^(.*)\.css $1\.css\.gz [QSA]

    # Serve gzip compressed JS files if they exist and the client accepts gzip.
    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}\.gz -s
    RewriteRule ^(.*)\.js $1\.js\.gz [QSA]

    # Serve correct content types, and prevent mod_deflate double gzip.
    RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
    RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]

    <FilesMatch "(\.js\.gz|\.css\.gz)$">
      # Serve correct encoding type.
      Header set Content-Encoding gzip
      # Force proxies to cache gzipped & non-gzipped css/js files separately.
      Header append Vary Accept-Encoding
    </FilesMatch>
  </IfModule>
</IfModule>

Die config in der vhost.conf für v2bviews.local lautet:

<VirtualHost *>
    ServerName v2bviews.local
    ServerAlias www.v2bviews.local
    DocumentRoot /Applications/MAMP/HTDOCS/v2bviews
</VirtualHost>

  • Anmelden oder Registrieren um Kommentare zu schreiben

Wie sieht Deine hosts Datei

Eingetragen von wla (9461)
am 11.07.2013 - 13:50 Uhr

Wie sieht Deine hosts Datei in /etc auf dem Mac aus? Da sollte unter anderem
127.0.0.1 v2bviews.local
127.0.0.1 www.v2bviews.local
zu finden sein. Wenn Du es in Zukunft einfacher haben willst, solltest Du über den Erwerb von MAMP Pro nachdenken. Dort lassen sich Virtuelle Server simpel konfigurieren.

Beste Grüße
Werner
P.S. Entwickle auch auf einem Mac

  • Anmelden oder Registrieren um Kommentare zu schreiben

P.S. Entwickle auch auf einem

Eingetragen von bolshii (148)
am 11.07.2013 - 14:11 Uhr
wla schrieb

P.S. Entwickle auch auf einem Mac

Hab zehn Jahre an Windows-Kisten verbracht. Während des Studiums an Mac und PC gearbeitet und vor fünf Jahren endgültig umgestiegen. Bereue keine Sekunde.

Die '/etc/hosts' sieht so aus, wie von dir beschrieben.

Die Startseite lässt sich ja via v2bviews.local aufrufen.

  • Anmelden oder Registrieren um Kommentare zu schreiben

vhost auf linux

Eingetragen von Patrick Schanen (515)
am 11.07.2013 - 15:31 Uhr

Meine vhosts sehen so aus

<VirtualHost *:80>
ServerAdmin patrick.schanen@business-solutions.lu
ServerName "www.local.drupal-7-reader-letters.proj-00"
DocumentRoot /home/patrick/www/drupal/development/project/reader-letters/core/version/00
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>

<Directory /home/patrick/www/drupal/development/project/reader-letters/core/version/00>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

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

RewriteEngine On
        RewriteOptions inherit

ErrorLog ${APACHE_LOG_DIR}/error.log

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

CustomLog ${APACHE_LOG_DIR}/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>

und host so

127.0.0.1   localhost
127.0.1.1   kubuntu

# DOMAINS Schanen Patrick

# #################################
# Business Solutions
# #################################
127.0.1.1   www.local.drupal-7-business-solutions.lu-01


# #################################
# Patrick Schanen
# #################################
#
127.0.1.1   www.local.drupal-7-patrick-schanen.com
127.0.1.1   www.local.drupal-7-patrick-schanen.fr





# DEVELOPMENT DRUPAL 7


# #################################
# Reader letters
# #################################

127.0.1.1   www.local.drupal-7-reader-letters.proj-00
127.0.1.1   www.local.dev-drupal-7-druplett-01.com


# #################################
# Immobilier
# #################################

127.0.1.1   www.local.dev-drupal-7-drupimmo-01.fr

# #################################
# Auto
# #################################

127.0.1.1   www.local.dev-drupal-7-drupauto-01.com

# #################################
# Company
# #################################

127.0.1.1   www.local.dev-drupal-7-drupany-01.com

# #################################
# Communique de press
# #################################

127.0.1.1   www.local.dev-drupal-7-drucom-01.com




# PROJECT DRUPAL 7

# #################################
# Dalpa
# #################################

127.0.1.1   www.local.drupal-7-dalpa.lu-00
127.0.1.1   www.local.drupal-7-dalpa.lu-01

# BASE DRUPAL 7

# #################################
# Drupal for new install
# #################################
127.0.1.1   www.local.drupal-7-core.base
127.0.1.1   www.local.drupal-7-module.base





# DEMO

# #################################
# Drupal 7
# #################################
127.0.1.1   www.local.drupal-7.demo
127.0.1.1   www.local.drupal-7-commons.demo
127.0.1.1   www.local.drupal-7-openpublish.demo
127.0.1.1   www.local.drupal-7-themen.demo
127.0.1.1   www.local.drupal-7-module.demo
127.0.1.1   www.local.drupal-7-agov.demo
127.0.1.1   www.local.drupal-7-atrium.demo
127.0.1.1   www.local.drupal-7-bear.demo
127.0.1.1   www.local.drupal-7-cforge.demo
127.0.1.1   www.local.drupal-7-cm.demo
127.0.1.1   www.local.drupal-7-cod.demo
127.0.1.1   www.local.drupal-7-commerce.demo
127.0.1.1   www.local.drupal-7-commerce-kickstart.demo
127.0.1.1   www.local.drupal-7-drobjobs.demo
127.0.1.1   www.local.drupal-7-factura-suite.demo
127.0.1.1   www.local.drupal-7-groupdeals.demo
127.0.1.1   www.local.drupal-7-idea.demo
127.0.1.1   www.local.drupal-7-julio.demo
127.0.1.1   www.local.drupal-7-nodestream.demo
127.0.1.1   www.local.drupal-7-openatrium.demo
127.0.1.1   www.local.drupal-7-openhotel.demo
127.0.1.1   www.local.drupal-7-openpublic.demo
127.0.1.1   www.local.drupal-7-panapoly.demo
127.0.1.1   www.local.drupal-7-petitions.demo
127.0.1.1   www.local.drupal-7-plato-tipico.demo
127.0.1.1   www.local.drupal-7-realesteate-premium.demo
127.0.1.1   www.local.drupal-7-recruiter.demo
127.0.1.1   www.local.drupal-7-training.demo
127.0.1.1   www.local.drupal-7-restaurant-01.demo

# #################################
# DEMO DRUPAL 8
# #################################

127.0.1.1   www.local.drupal-8.demo

# #################################
# DEMO OXID
# #################################

127.0.1.1   www.local.oxid.demo

# #################################
# DEMO MAGENTO
# #################################

127.0.1.1   www.local.magento.demo

# #################################
# DEMO JOOMLA 3
# #################################

127.0.1.1   www.local.joomla-2.demo
127.0.1.1   www.local.joomla-3.demo

# #################################
# DEMO WORDPRESS
# #################################

127.0.1.1   www.local.wordpress.demo

# #################################
# DEMO LIMESURVEY
# #################################

127.0.1.1   www.local.limesurvey.demo

# #################################
# DEMO PHPLIST
# #################################

127.0.1.1   www.local.phplist.demo

# #################################
# DEMO YOUURLS
# #################################

127.0.1.1   www.local.youurls.demo

# #################################
# DEMO VTIGER
# #################################

127.0.1.1   www.local.vtiger.demo

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.0.11 kubuntu

  • Anmelden oder Registrieren um Kommentare zu schreiben

Semantisch sieht's ähnlich

Eingetragen von bolshii (148)
am 12.07.2013 - 10:06 Uhr

Semantisch sieht's ähnlich bei mir aus. Sehe mir grad ein Beispiel an, wie die URL lautet, wenn mod_rewrite in- bzw. aktiv ist:

"user" (mit mod_rewrite) oder "?q=user" (ohne mod_rewrite)

Im Grunde liegt hier ja das Problem. Da phpinfo() sagt, dass mod_rewrite läuft, kann es ja eigentlich nur an der 'RewriteRule' liegen:

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

  • Anmelden oder Registrieren um Kommentare zu schreiben

Benutzeranmeldung

  • Registrieren
  • Neues Passwort anfordern

Aktive Forenthemen

  • für drupal11 ein Slider Modul
  • [gelöst] W3CSS Paragraphs Views
  • Drupal 11 neu aufsetzen und Bereiche aus 10 importieren
  • Wie erlaubt man neuen Benutzern auf die Resetseite zugreifen zu dürfen.
  • [gelöst] Anzeigeformat Text mit Bild in einem Artikel, Drupal 11
  • Social Media Buttons um Insteragram erweitern
  • Nach Installation der neuesten D10-Version kein Zugriff auf Website
  • Composer nach Umzug
  • [gelöst] Taxonomie Begriffe zeigt nicht alle Nodes an
  • Drupal 11 + Experience Builder (Canvas) + Layout Builder
  • Welche KI verwendet ihr?
  • Update Manger läst sich nicht Installieren
Weiter

Neue Kommentare

  • melde mich mal wieder, da ich
    vor 2 Wochen 1 Tag
  • Hey danke
    vor 2 Wochen 2 Tagen
  • Update: jetzt gibt's ein
    vor 2 Wochen 3 Tagen
  • Hallo, im Prinzip habe ich
    vor 3 Wochen 12 Stunden
  • Da scheint die Terminologie
    vor 3 Wochen 15 Stunden
  • Kannst doch auch alles direkt
    vor 3 Wochen 4 Tagen
  • In der entsprechenden View
    vor 3 Wochen 4 Tagen
  • Dazu müsstest Du vermutlich
    vor 3 Wochen 4 Tagen
  • gelöst
    vor 6 Wochen 1 Tag
  • Ja natürlich. Dass ist etwas,
    vor 6 Wochen 2 Tagen

Statistik

Beiträge im Forum: 250233
Registrierte User: 20452

Neue User:

  • ByteScrapers
  • Mroppoofpaync
  • 4aficiona2

» Alle User anzeigen

User nach Punkten sortiert:
wla9461
stBorchert6003
quiptime4972
Tobias Bähr4019
bv3924
ronald3857
md3717
Thoor3678
Alexander Langer3416
Exterior2903
» User nach Punkten
Zur Zeit sind 0 User und 30 Gäste online.

Hauptmenü

  • » Home
  • » Handbuch & FAQ
  • » Forum
  • » Übersetzungsserver
  • » Suche

Quicklinks I

  • Infos
  • Drupal Showcase
  • Installation
  • Update
  • Forum
  • Team
  • Verhaltensregeln

Quicklinks II

  • Drupal Jobs
  • FAQ
  • Drupal-Kochbuch
  • Best Practice - Drupal Sites - Guidelines
  • Drupal How To's

Quicklinks III

  • Tipps & Tricks
  • Drupal Theme System
  • Theme Handbuch
  • Leitfaden zur Entwicklung von Modulen

RSS & Twitter

  • Drupal Planet deutsch
  • RSS Feed News
  • RSS Feed Planet
  • Twitter Drupalcenter
Drupalcenter Team | Impressum & Datenschutz | Kontakt
Angetrieben von Drupal | Drupal is a registered trademark of Dries Buytaert.
Drupal Initiative - Drupal Association