Menu

Installation - Index.php is blank

Help
2003-08-25
2012-10-11
  • Gavin Jolly

    Gavin Jolly - 2003-08-25

    I have run the configurator.php script and renamed the Index-user.php it created to index.php as per the instructions.

    I set admin user and password.
    I selected the database type
    When I go to the index,php page it is entirely blank. View Source gives only the following text:
    <html><body></body></html>
    that may be default text in phoenix browser.

    The web server runs okay and I am running other php sites on the same server.

    I have stripped out the index.php page and changed the passwords for obvious reasons.

    if (!defined('WIKI_NAME')) define('WIKI_NAME', 'PhpWiki');
    define('ENABLE_REVERSE_DNS', 'true');
    if (!defined('ADMIN_USER')) define('ADMIN_USER', 'admin');
    if (!defined('ADMIN_PASSWD')) define('ADMIN_PASSWD', 'changedforobviousreasons');
    define('ENCRYPTED_PASSWD', true);
    if (!defined('ENCRYPTED_PASSWD')) define('ENCRYPTED_PASSWD', 'true');
    if (!defined('ZIPDUMP_AUTH')) define('ZIPDUMP_AUTH', 'false');
    if (!defined('ENABLE_RAW_HTML')) define('ENABLE_RAW_HTML', 'false');
    define('STRICT_MAILABLE_PAGEDUMPS', 'false');
    $HTML_DUMP_SUFFIX = ".html";
    define('MAX_UPLOAD_SIZE', 16 * 1024 * 1024);
    define('MINOR_EDIT_TIMEOUT', 7 * 24 * 3600);
    @ini_set('session.use_trans_sid', 0);
    $DBParams['dbtype'] = "dba";
    $_dsn_sqltype = "mysql";
    $_dsn_sqluser = "phpwiki";
    $_dsn_sqlpass = "changedforobviousreasons";
    $_dsn_sqlhostorsock = "localhost";
    $_dsn_sqldbname = "phpwiki";
    $DBParams['dsn'] = "$_dsn_sqltype://phpwiki:changedforobviousreasons@localhost/phpwiki";
    $DBParams['directory'] = "/tmp";
    $DBParams['dba_handler'] = "gdbm";
    $DBParams['timeout'] = "20";
    $ExpireParams['major'] = array('max_age' => 32,
                                   'keep'    => 8);
    $ExpireParams['minor'] = array('max_age' => 7,
                                   'keep'    => 4);
    $ExpireParams['author'] = array('max_age'  => 365,
                                    'keep'     => 8,
                                    'min_age'  => 7,
                                    'max_keep' => 20);
    if (!defined('ALLOW_USER_LOGIN')) define('ALLOW_USER_LOGIN', 'true');
    if (!defined('ALLOW_HTTP_AUTH_LOGIN')) define('ALLOW_HTTP_AUTH_LOGIN', 'false');
    if (!defined('ALLOW_BOGO_LOGIN')) define('ALLOW_BOGO_LOGIN', 'true');
    if (!defined('REQUIRE_SIGNIN_BEFORE_EDIT')) define('REQUIRE_SIGNIN_BEFORE_EDIT', 'false');
    if (!defined('ALLOW_LDAP_LOGIN')) define('ALLOW_LDAP_LOGIN', 'true');
    if (!defined('LDAP_AUTH_HOST')) define('LDAP_AUTH_HOST', 'localhost');
    if (!defined('LDAP_AUTH_SEARCH')) define('LDAP_AUTH_SEARCH', 'ou=mycompany.com,o=My Company');
    if (!defined('ALLOW_IMAP_LOGIN')) define('ALLOW_IMAP_LOGIN', 'true');
    if (!defined('IMAP_AUTH_HOST')) define('IMAP_AUTH_HOST', 'localhost');
    if (!defined('THEME')) define('THEME', 'Sidebar');
    if (!defined('CHARSET')) define('CHARSET', 'iso-8859-1');
    if (!isset($LANG)) { $LANG = "en"; }
    $language_locales = array('en' => 'C',
                                'de' => 'de_DE',
                                'es' => 'es_MX',
                                'nl' => 'nl_NL',
                                'fr' => 'fr_FR',
                                'it' => 'it_IT',
                                'sv' => 'sv_SV'
                                );
    if (empty($LC_ALL)) {
      if (empty($language_locales[$LANG]))
         $LC_ALL = $LANG;
      else
         $LC_ALL = $language_locales[$LANG];
    }
    putenv("LC_TIME=$LC_ALL");
    if (!defined('WIKI_PGSRC')) define('WIKI_PGSRC', 'pgsrc');
    define('DEFAULT_WIKI_PGSRC', 'pgsrc');
    $GenericPages = array('ReleaseNotes', 'SteveWainstead', 'TestPage');
    $AllowedProtocols = "http|https|mailto|ftp|news|nntp|ssh|gopher";
    $InlineImages = "png|jpg|gif";
    $WikiNameRegexp = "(?<![[:alnum:]])(?:[[:upper:]][[:lower:]]+){2,}(?![[:alnum:]])";
    if (!defined('SUBPAGE_SEPARATOR')) define('SUBPAGE_SEPARATOR', '/');
    define('INTERWIKI_MAP_FILE', 'lib/interwiki.map');
    define('WARN_NONPUBLIC_INTERWIKIMAP', 'true');

     
    • Anonymous

      Anonymous - 2003-09-19

      I'm getting the same problem - any advances???

       
      • guarez

        guarez - 2004-06-16

        same problem here =(
        on linux redhat and mysql
        mm when i change the login an password for the database to incorrect login, nothing happend

        because the index.php is no loading?

         
    • Anonymous

      Anonymous - 2003-11-15

      I'm having the same problem, I think I traced the problem down to this line in handleAction but I'm not really 100% on what it even does. I'm on WinXP and using MySQL.

      function handleAction () {
      ...
                  $this->{$method}();
      ...
      }

       
    • Michael Wexler

      Michael Wexler - 2003-11-19

      Its not just Windows.  I get the same thing on a fresh install on a Redhat 9 box with mysql back end. 

      Sigh,
      Michael
      wexler at yahoo dot com

       
    • Michael Wexler

      Michael Wexler - 2003-11-20

      Interestingly enough, changing my theme resulted in things starting to work again.  I will have to dig further, but something about the default theme, on its own and out of the box, is broken; the mac and hawaiian themes do display correctly.  More as I find out more.

       
    • Anonymous

      Anonymous - 2003-12-02

      Hi,

      I had exactly the same problem with all version 1.3.6. I also tried to trace the problem and found execution did not return from a section for with $compress==true in buffer_output(). I found out that it worked ok when I added the following line which was commented out by default:

      define('COMPRESS_OUTPUT', false);

      Maybe give it a try. I must say I don't why it did not work with compression enabled.

       
      • Michael Wexler

        Michael Wexler - 2003-12-03

        I had actually uncommented that line when I first installed, and the problems were still there.  For me, changing the theme has been the only solution I've found so far.

         
      • Anonymous

        Anonymous - 2005-01-19

        I was having the exact same problem. I uncommented the COMPRESS_OUTPUT line and this fixed my problem!

        Thanks!

        Warm Regards,

        Raven

         
    • Jones Tyler

      Jones Tyler - 2004-06-24

      I just downloaded this thing, put it on both an Apache box and an IIS 6.0 box and it is full of bugs.

      Perhaps it was designed for an earlier version of PHP and I would not recommend messing with it unless you want to do a lot of troubleshooting (and you need to be proficient with PHP).

      The way to fix your problem (and this is just for THIS posted problem), is to :

      1. Go into your INDEX.PHP file and make sure the main.php file is included. This means you need to comment out the line that reads

      if (SCRIPT_FILENAME == __FILE__)

      After this, at least on a Windows Hardware (irregardless of the IS you are using), you will need to heavily modify the config file INCLUDE path variable. You need to place several paths in here (just watch your errros and that will tell you which ones to include.)

      On this last point, I do not advise trying to fix individual includes (I tried this.) There are so many of them that you end up with errors regarding dependant files on the fixes you ran.

      But, that will get you past the blank index page.

      Good luck.

       
      • dhamn

        dhamn - 2004-11-26

        i had the same problem:
        - windows xp
        - php 4.3.9
        - mysql 4.1.7-nt
        - abyss web server 1.2.3.0 :)
        - opera 7.54

        i always got this message:
        Error 200 - OK

        the solution was:
        - edit index.php
        - comment out or delete the line:
        if (SCRIPT_FILENAME == FILE)

        if you set DATABASE_TYPE = file in your config.ini-file then you should also add this line:
        define('USE_DB_SESSION',false);

        good luck!

         
    • Anonymous

      Anonymous - 2005-01-12

      Hello all:

      I've downloaded wiki at:

      http://www.imagesetsons.net/php/c/

      and obviously I'm unable to complete the installation.

      would there be someone kind enough to help me out?

      I'm in Montral, Canada.

      gauthier.daniel@gmail.com

      514-883-1922

      You can even call me collect or give me your phone number (as long it is in North America), ill call you back.

      Tks for your time.

      Daniel.

       
      • Reini Urban

        Reini Urban - 2005-01-12

        cd config
        cp config-dist.ini config.ini
        vi config.ini
        ...
        and follow INSTALL

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.