wid0kej
Goto Top

Probleme mit Aufruf von index.php

Hi Freunde!

Auf einem strato server (testzwecke) habe ich mir domäne mytestdomain.de eingerichtet und dazu mongodb server. Jetzt brauche ich den Zugang zu der DB um sie zu verwalten. Dafür habe ich mir das hier ausgesucht - http://www.phpmongodb.org/

phpmongodb habe ich nach /var/www/vhosts/meinhostname/mytestdomain/phpmongodb entpackt. Die config.php Datei habe ich nach Punkt #5 verändert.

Open the config.php with your editor, change host, port, admins and so on As per your system. Default given below: -Server Setting ‘name’ => “Localhost”, ‘server’=>false, ‘host’ => “127.0.0.1”, ‘port’=>”27017″, ‘timeout’=>0,

    Make authentication = TRUE for using your MongoDB user and password.
    Make authorization[‘readonly’] = TRUE for making your MongoDb readonly.

So sieht sie aus bei mir:
<?php

/**
 * @author Nanhe Kumar <nanhe.kumar@gmail.com>
 * @version 1.0.0
 * @package PHPMongoDB
 */

class Config {

    public static $theme = 'default';  
    public static $autocomplete=false;
    public static $language = array(
        'english' => 'English',  
        'german' => 'German',  
    );
    public static $server=array(
        'name' => "meinetestdomain.de",  
        'server'=>false,  
        'host' => "xxx.xxx.xxx.xx6",  
        'port'=>"27017",  
        'timeout'=>0,  
    );
    public static $authentication = array(
        'authentication'=>true,  
        'user' => 'meindbadmin',  
        'password' => 'meinpasswort12345'  
    );
    public static $authorization = array(
        'readonly'=>false,  
    );

    /**
     *
     * @var array
     * @link http://in2.php.net/manual/en/mongoclient.construct.php (for more detail)
     */
    public static $connection = array(
        'server' => "", //mongodb://localhost:27017  
        'options' => array(  
            'replicaSet' => false,  
        ), //
    );

}

?>

Wenn ich jetzt im Browser http://www.mytestdomain.de/phpmongodb/index.php eingebe, sollte doch die Seite aufgerufen werden?! Doch es heißt "404 Not found".

Sicherlich bin ich noch zu unerfahren und habe einen Fehler gemacht. Kann mir bitte wer helfen?

Content-Key: 296653

Url: https://administrator.de/contentid/296653

Printed on: April 25, 2024 at 01:04 o'clock

Member: bauinformatiker
Solution bauinformatiker Feb 18, 2016, updated at Feb 20, 2016 at 14:56:07 (UTC)
Goto Top
Am PHP Script sollte es nicht liegen, denn ein "Syntax Error" sieht anders aus.

Schonmal probiert eine index.html in den Ordner zu legen?
So lassen sich schonmal einige Probleme ausschließen.

Anonsten würde ich da auch mal beim Provider Support nachfragen.
Member: Wid0kej
Wid0kej Feb 20, 2016 at 14:56:27 (UTC)
Goto Top
Danke, das war in der Tat das falsche Verzeichnis. Jetzt gehts.