Probleme mit Rewrite Engine

rectox

New Member
Hallo,
ich habe Probleme mit einem Script auf meinem vServer (Debian u. Confixx).

Im PHP Script gibt es die .htaccess Datei mit folgendem Inhalt:
HTML:
#php_flag error_reporting 1
#php_flag display_errors 0
RewriteEngine On
RewriteBase /
RewriteRule ^([0-9]+)/(.*)?$ /index.php?module=item&action=show_item_decr&item_id=$1

Sobald ich das Script über FTP hochalde kommt auf allen Seiten Forbidden 403.

Könnte mir bitte jemand helfen?
 
Hi,
Vergessen zu erwähnen das ich mich mit vServern wenig aus kenne.

Wo finde ich die ErrorLog?
Wo kann ich einsehen ob ModRewrite On ist?

Kann das die ErrorLog sein:
HTML:
[Tue Aug 28 14:43:25 2007] [error] [client 90.187.4.81] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /home/www/web1/html/install.php
 
Setze mal für web1 folgenden httpd-spezial Eintrag:

<Directory /home/www/##user##/html>
Options +FollowSymlinks +SymlinksIfOwnerMatch
</Directory>

Nachdem dann das Confixx-Counterskript durchgelaufen ist, sollte das mit der Rewrite-Rule funktionieren.
 
Hi,
hier ein Eintrag:
HTML:
 [Wed Aug 29 11:10:03 2007] [error] [client XX.XX.XXX.XX] Premature end of script headers: install.php

Hat der was zu bedeuten?

Wie bekomme ich ReWrite Engine überhaupt an?

Danke!
 
Nicht einfach irgendeinen Logeintrag, sondern die Logeinträge, die seit dem Fehler geschrieben wurden, bzw. zum Zeitpunkt des Auftretens geschrieben wurden.

Die error.log findest du im Verzeichnis /var/log/apache oder /var/log/apache2
 
Folgenden Auszug auf dem Error-Log hat mir rectox gestern per Skype geschickt:

Code:
[Wed Aug 29 11:08:10 2007] [error] [client 90.187.25.46] Premature end of script headers: install.php
[Wed Aug 29 11:08:10 2007] [error] [client 90.187.25.46] SoftException in Application.cpp:225: File "/home/www/web1/html/install.php" is writeable by group
[Wed Aug 29 11:08:10 2007] [error] [client 90.187.25.46] *** glibc detected *** double free or corruption (fasttop): 0x08070bd8 ***
[Wed Aug 29 11:08:16 2007] [error] [client 90.187.25.46] Premature end of script headers: install.php
[Wed Aug 29 11:08:16 2007] [error] [client 90.187.25.46] SoftException in Application.cpp:225: File "/home/www/web1/html/install.php" is writeable by group
[Wed Aug 29 11:08:16 2007] [error] [client 90.187.25.46] *** glibc detected *** double free or corruption (fasttop): 0x08070bd8 ***
[Wed Aug 29 11:09:19 2007] [error] [client 87.173.219.146] File does not exist: /home/www/web2/html/favicon.ico
[Wed Aug 29 11:09:57 2007] [error] [client 90.187.25.46] Premature end of script headers: install.php
[Wed Aug 29 11:09:57 2007] [error] [client 90.187.25.46] SoftException in Application.cpp:225: File "/home/www/web1/html/install.php" is writeable by group
[Wed Aug 29 11:09:57 2007] [error] [client 90.187.25.46] *** glibc detected *** double free or corruption (fasttop): 0x08070bd8 ***
[Wed Aug 29 11:10:03 2007] [error] [client 90.187.25.46] Premature end of script headers: install.php
[Wed Aug 29 11:10:03 2007] [error] [client 90.187.25.46] SoftException in Application.cpp:225: File "/home/www/web1/html/install.php" is writeable by group
[Wed Aug 29 11:10:03 2007] [error] [client 90.187.25.46] *** glibc detected *** double free or corruption (fasttop): 0x08070bd8 ***
[Wed Aug 29 11:10:03 2007] [error] [client 90.187.25.46] Premature end of script headers: install.php

Leider ist er auf meine letzte Frage nicht näher eingegangen.

Hast Du suPHP installiert? Poste hier mal bitte die Ausgabe von "ls -la /home/www/web1/html/".
 
Habe genau das selbe Problem....
Ich habe suphp installiert und hier meine: ls -la /var/www/web0/html/
Code:
total 612
drwxr-x--- 20 web0 www-data  4096 Oct  4 14:54 .
drwxr-xr-x 10 root root      4096 Oct  4 11:31 ..
-rw-r--r--  1 web0 web0      6148 Oct  4 03:43 .DS_Store
-rw-r--r--  1 web0 web0      6735 Oct  4 16:30 .htaccess
-rw-r--r--  1 web0 web0     14948 Oct  4 03:43 LICENSE
-rw-r--r--  1 web0 web0     14948 Oct  4 03:43 LICENSE.txt
-rw-r--r--  1 web0 web0       916 Oct  4 03:43 Nutzungsbedingungen.txt
-rw-r--r--  1 web0 web0      5593 Oct  4 03:43 account.php
-rw-r--r--  1 web0 web0      9122 Oct  4 03:43 account_edit.php
-rw-r--r--  1 web0 web0      4655 Oct  4 03:43 account_history.php
-rw-r--r--  1 web0 web0      6457 Oct  4 03:43 account_history_info.php
-rw-r--r--  1 web0 web0      5072 Oct  4 03:43 account_password.php
-rw-r--r--  1 web0 web0      4128 Oct  4 03:43 address_book.php
-rw-r--r--  1 web0 web0     13020 Oct  4 03:43 address_book_process.php
drwxr-xr-x  6 web0 web0      4096 Oct  4 03:26 admin
-rw-r--r--  1 web0 web0      4080 Oct  4 03:43 advanced_search.php
-rw-r--r--  1 web0 web0     10937 Oct  4 03:43 advanced_search_result.php
drwxrwxrwx  2 web0 web0      4096 Oct  4 03:26 cache
drwxr-xr-x  3 web0 web0      4096 Oct  4 03:26 callback
drwxr-xr-x  2 web0 web0      4096 Oct  3 23:44 cgi-bin
-rw-r--r--  1 web0 web0     14219 Oct  4 03:43 checkout_confirmation.php
-rw-r--r--  1 web0 web0      9752 Oct  4 03:43 checkout_payment.php
-rw-r--r--  1 web0 web0     11919 Oct  4 03:43 checkout_payment_address.php
-rw-r--r--  1 web0 web0     24035 Oct  4 03:43 checkout_process.php
-rw-r--r--  1 web0 web0     10891 Oct  4 03:43 checkout_shipping.php
-rw-r--r--  1 web0 web0     12345 Oct  4 03:43 checkout_shipping_address.php
-rw-r--r--  1 web0 web0      4571 Oct  4 03:43 checkout_success.php
-rw-r--r--  1 web0 web0      1965 Oct  4 03:43 cookie_usage.php
-rw-r--r--  1 web0 web0     21020 Oct  4 03:43 create_account.php
-rw-r--r--  1 web0 web0     16553 Oct  4 03:43 create_guest_account.php
-rw-r--r--  1 web0 web0       750 Oct  4 03:43 display_vvcodes.php
drwxr-xr-x  2 web0 web0      4096 Oct  4 03:26 download
-rw-r--r--  1 web0 web0      3837 Oct  4 03:43 download.php
drwxr-xr-x  4 web0 web0      4096 Oct  4 04:06 downloads
drwxr-xr-x  2 web0 web0      4096 Oct  4 03:26 export
-rw-r--r--  1 web0 web0      4086 Oct  4 03:43 fax.html
-rw-r--r--  1 web0 web0      3742 Oct  4 03:43 gv_redeem.php
-rw-r--r--  1 web0 web0      8482 Oct  4 03:43 gv_send.php
drwxrwxrwx 11 web0 web0      4096 Oct  4 03:59 images
drwxr-xr-x  2 web0 web0      4096 Oct  4 03:27 import
drwxr-xr-x  2 web0 web0     12288 Oct  4 03:28 inc
drwxr-xr-x 11 web0 web0      4096 Oct  4 03:30 includes
-rw-r--r--  1 web0 web0      2765 Oct  4 03:43 index.php
drwxr-xr-x 13 web0 web0      4096 Oct  4 03:34 lang
-rw-r--r--  1 web0 web0      5829 Oct  4 03:43 login.php
-rw-r--r--  1 web0 web0      3314 Oct  4 03:43 logoff.php
drwxr-xr-x  4 web0 web0      4096 Oct  4 03:34 media
-rw-r--r--  1 web0 web0      2620 Oct  4 03:43 media_content.php
-rw-r--r--  1 web0 web0      8389 Oct  4 03:43 newsletter.php
-rw-r--r--  1 web0 web0      9619 Oct  4 03:43 password_double_opt.php
-rw-r--r--  1 web0 web0      2305 Oct  4 03:43 popup_content.php
-rw-r--r--  1 web0 web0      4125 Oct  4 03:43 popup_coupon_help.php
-rw-r--r--  1 web0 web0      2440 Oct  4 03:43 popup_cvv.php
-rw-r--r--  1 web0 web0      5192 Oct  4 03:43 popup_image.php
-rw-r--r--  1 web0 web0      1389 Oct  4 03:43 popup_search_help.php
-rw-r--r--  1 web0 web0      2927 Oct  4 03:43 print_order.php
-rw-r--r--  1 web0 web0      8004 Oct  4 03:43 print_product_info.php
-rw-r--r--  1 web0 web0      2884 Oct  4 03:43 product_info.php
-rw-r--r--  1 web0 web0      4620 Oct  4 03:43 product_reviews.php
-rw-r--r--  1 web0 web0      4773 Oct  4 03:43 product_reviews_info.php
-rw-r--r--  1 web0 web0      5348 Oct  4 03:43 product_reviews_write.php
-rw-r--r--  1 web0 web0      8674 Oct  4 03:43 products_new.php
drwxr-xr-x  2 web0 web0      4096 Oct  4 03:34 pub
-rw-r--r--  1 web0 web0      3592 Oct  4 03:43 redirect.php
-rw-r--r--  1 web0 web0      4393 Oct  4 03:43 reviews.php
-rw-r--r--  1 web0 web0      1957 Oct  4 03:43 robots.txt
-rw-r--r--  1 web0 web0      4883 Oct  4 03:43 send_order.php
-rw-r--r--  1 web0 web0      6399 Oct  4 03:43 shop_content.php
-rw-r--r--  1 web0 web0      7740 Oct  4 03:43 shopping_cart.php
drwxrwxrwx  2 web0 web0      4096 Oct  4 03:36 shopstat
-rw-r--r--  1 web0 web0      2381 Oct  4 03:43 show_product_thumbs.php
-rw-r--r--  1 web0 web0      3796 Oct  4 03:43 specials.php
-rw-r--r--  1 web0 web0      1942 Oct  4 03:43 ssl_check.php
drwxr-xr-x  6 web0 web0      4096 Oct  4 03:40 templates
drwxrwxrwx  2 web0 web0     12288 Oct  4 03:43 templates_c
drwxrwxrwx  2 web0 web0      4096 Oct  4 03:43 tmp
-rw-r--r--  1 web0 web0      3288 Oct  4 03:43 wpcallback.php
-rw-r--r--  1 web0 web0     22199 Oct  4 03:43 xhtml-xtc.pdf
 
Last edited by a moderator:
Back
Top