403 Forbidden

Probier das mal aus dem Hauptverzeichnis aus auszuführen:

[code]<?php
function set_chmod($dir,$chmod) {
if(@ ! $opendir = opendir($dir)) {
return false;
}

    while(false !== ($readdir = readdir($opendir))) { 
        if($readdir !== '..' && $readdir !== '.') { 
            $readdir = trim($readdir); 
                if(is_file($dir.'/'.$readdir)) { 
                    if(@ ! chmod($dir.'/'.$readdir, $chmod)) { 
                            return false; 
                    } 
                 
                } elseif(is_dir($dir.'/'.$readdir)) { 

                    if(! set_chmod($dir.'/'.$readdir)) { 
                        return false; 
                    } 
                } 
        } 
    } 
    closedir($opendir); 
 
return true; 

}

set_chmod(“mixtour/”,0644);
?>[/code]
Quelle: mikes-pchilfe.de/index.php?m … ails&id=19

P.S.: Leicht geändert, deshalb keine Garantie auf Funktion. :wink:
Edit: Nochmal editiert, die überflüssige } sollte jetzt entfernt sein. Man man man, wenn ich schon was rauslösche, dann sollte ich wirklich alles was dazugehört rauslöschen.

ok,

das hab ich mal als versuch.php im index ausgeführt und einmal in dem fehlenden ordner.

dabei krieg ich allerdings folgende meldung :
Parse error: syntax error, unexpected ‘}’ in /users/idadmin/www/mixtour/versuch.php on line 27

QQ oh mann…wird die seite jemals wieder funktionieren?

Oo’’’ auf einamal kann ich die .htaccess-datei öffnen…hier der inhalt.

ein freund von mir meinte allerdings gerade, dass er auch genau diese probleme gerade hat, weswegen wir jetzt eher glauben, dass es an bplaced liegt.

[code]#

Apache/PHP/Drupal settings:

Protect files and directories from prying eyes.

<FilesMatch “(.(engine|inc|info|install|module|profile|po|sh|.sql|theme|tpl(.php)?|xtmpl)|code-style.pl|Entries.|Repository|Root|Tag|Template)$”>
Order allow,deny
Deny from all

Don’t show directory listings for URLs which map to a directory. CAUSES ERROR 500

#Options -Indexes

Follow symbolic links in this directory. CAUSES ERROR 500

#Options +FollowSymLinks

Customized error messages.

ErrorDocument 404 /index.php

Set the default handler.

DirectoryIndex index.php

Override PHP settings. More in sites/default/settings.php

but the following cannot be changed at runtime.

PHP 4, Apache 1.

#
#php_value magic_quotes_gpc 0
#php_value register_globals 0
#php_value session.auto_start 0
#

PHP 4, Apache 2.

#
#php_value magic_quotes_gpc 0
#php_value register_globals 0
#php_value session.auto_start 0
#

PHP 5, Apache 1 and 2. CAUSES ERROR 500

#
#php_value magic_quotes_gpc 0
#php_value register_globals 0
#php_value session.auto_start 0
#

Requires mod_expires to be enabled.

# Enable expirations. ExpiresActive On # Cache all files for 2 weeks after access (A). ExpiresDefault A1209600 # Do not cache dynamically generated pages. ExpiresByType text/html A1

Various rewrite rules.

#RewriteEngine on #CAUSES FEDORA TEST PAGE MAYBE ERROR 403

If your site can be accessed both with and without the prefix www. you

can use one of the following settings to force user to use only one option:

If you want the site to be accessed WITH the www. only, adapt and

uncomment the following:

RewriteCond %{HTTP_HOST} ^example.com$ [NC]

RewriteRule .* http://www.example.com/ [L,R=301]

If you want the site to be accessed only WITHOUT the www. prefix, adapt

and uncomment the following:

RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]

RewriteRule .* http://example.com/ [L,R=301]

Modify the RewriteBase if you are using Drupal in a subdirectory and

the rewrite rules are not working properly.

#RewriteBase /

Rewrite old-style URLs of the form ‘node.php?id=x’.

#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/view/%1 [L]

Rewrite old-style URLs of the form ‘module.php?mod=x’.

#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
#RewriteRule module.php index.php?q=%1 [L]

Rewrite current-style URLs of the form ‘index.php?q=x’.

#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

$Id: .htaccess,v 1.81 2007/01/09 09:27:10 dries Exp $[/code]

TT__TT weiß etwa keiner mehr weiter? Bitte, die muss morgen wieder laufen!
:hail: :hail: :hail: :hail: :hail: :hail:

Das ist meine aktuelle Fehlermeldung:

Warning: require_once(./includes/bootstrap.inc) [function.require-once]: failed to open stream: Permission denied in /users/idadmin/www/mixtour/index.php on line 12

Fatal error: require_once() [function.require]: Failed opening required ‚./includes/bootstrap.inc‘ (include_path=’.:/etc/php/lib’) in /users/idadmin/www/mixtour/index.php on line 12

So, hab den Quelltext nochmals überarbeitet (und diesmal auch getestet):

[code]<?php
function set_chmod($dir,$chmodf,$chmodd) {
if(@ ! $opendir = opendir($dir)) {
return false;
}

    while(false !== ($readdir = readdir($opendir))) { 
        if($readdir !== '..' && $readdir !== '.') { 
            $readdir = trim($readdir); 
                if(is_file($dir.'/'.$readdir)) { 
                    if(@ ! chmod($dir.'/'.$readdir, $chmodf)) { 
                            return false; 
                    } 
                 
                } elseif(is_dir($dir.'/'.$readdir)) { 
					chmod($dir.'/'.$readdir, $chmodd);
                    if(! set_chmod($dir.'/'.$readdir,$chmodf,$chmodd)) { 
                        return false; 
                    } 
                } 
        } 
    } 
    closedir($opendir); 
 
return true; 

}

set_chmod(“mixtour/”,0644,0755);
?>[/code]
Setzt auf jeden Fall Standardberechtigungen für Dateien und Ordner/Unterordner.
Damit sollten die Fehlermeldungen verschwinden (bin ich zumindestens der Meinung).

…UWAH!
Es funktioniert~~!! QQ Es geht wieder! WAHNSINN, vielen, vielen, vielen Dank~!
Du hast meine Semester-Note gerettet~~
:hail: :hail: :hail: :hail: :hail: :hail: :hail: :hail: :hail: :hail: :hail: :hail: :hail:

Hoffentlich wirds auch eine gute Note :slight_smile:

Leider kann man sich davon kein Bild machen, da man nirgendwo Zugriff bekommt.
Auch nicht beim Impressum, und das muss auch ohne Anmeldung erreichbar sein.