The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with php config

Discussion in 'General Discussion' started by trance_inducer, Nov 7, 2007.

  1. trance_inducer

    trance_inducer Registered

    Joined:
    Nov 5, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    I am new to php and mysql and want to get started with it..........but I can't ...I do seem to be able to get past the first hurdle on the config file.....can some please what and where I need to change...all a bit confusing for a first timer....

    Fatal Error:

    configurator.php:125: Error: Configuration problem:

    * ADMIN_USER not defined in "/home/findahyp/public_html/phpwiki/config/config.ini".
    * Cannot continue: You have to fix that manually.


    configurator.php:125: Error: Configuration problem:

    * ADMIN_USER not defined in "/home/findahyp/public_html/phpwiki/config/config.ini".
    * Cannot continue: You have to fix that manually.



    there is a file called wiki in the directory that displays this

    <?php // -*-php-*-
    /*
    PrettyWiki startup script.
    Sample to override the default wiki (Theme, Language, DB, ...).
    Also For Wiki farms.
    Simplifies USE_PATH_INFO paths:
    "/<home>/wiki/HomePage" instead of "/<home>/wiki/index.php/HomePage"
    The simpliest version is
    <?php include "index.php"; include "lib/main.php"; ?>

    Note: This needs a webserver handler to PHP like this on Apache:

    <Files "wiki">
    SetHandler application/x-httpd-php
    <defined APACHE2>
    AcceptPathInfo on
    </defined>
    </Files>
    */
    define('VIRTUAL_PATH', $_SERVER['SCRIPT_NAME']);

    // Override the default configuration for CONSTANTS before index.php
    $LANG='de'; $LC_ALL='de_DE';
    define('THEME', 'default');
    define('WIKI_NAME', "WikiDemo:$LANG:" . THEME);

    // Load the default configuration.
    include "index.php";

    // Override the default configuration for VARIABLES after index.php:
    // E.g. Use another DB:
    //$DBParams['dbtype'] = 'SQL';
    //$DBParams['dsn'] = 'mysql://<user>:<pass>@localhost/<username>_wiki';

    // Start the wiki
    include "lib/main.php";
    ?>



    I have tried to edit the file and put a user name and pw but still cannot get it to work...


    Any help would be appreciated...

    Cheers
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Have you tried editing /home/findahyp/public_html/phpwiki/config/config.ini as the error is instructing you to, or just the wiki file?
     
  3. trance_inducer

    trance_inducer Registered

    Joined:
    Nov 5, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    Yep I have tried to change the config file..... but maybe I am doing something wrong..

    Another helpful site site shows a screen shot like this http://www.phpbuilder.com/columns/phpwiki_screenshot1.jpg

    Mine looks nothing like this....in cpanel I click on show file and get a load of text ..I have found the following amongst the text ...and assume I need to change it......what user name and password do i enter....is it the same one as I use to access my cpanel? sorry sounding a bit thick i know...

    ; Logging into the wiki with the admin user and password allows you to lock,
    ; unlock, or remove pages and to perform other PhpWikiAdministration
    ; functions. On all other occasions you should simply log in with your
    ; regular WikiName.
    ; If your password contains special chars like ";" or ":" better quote it in double-quotes.
    ADMIN_USER = [username]

    ; You must set this! Username and password of the administrator.
    ; ADMIN_PASSWD is ignored on HttpAuth
    ADMIN_PASSWD = [password]


    cheers
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    At this point you are creating a username and password for your admin account.

    Perhaps you would be better off consulting the support forum/website/email for this particular script as they would be more familiar with what you need to do for that specific PHP script.
     
  5. trance_inducer

    trance_inducer Registered

    Joined:
    Nov 5, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    thank you...I'll do that
     
Loading...

Share This Page