Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    3

    Default Help with php config

    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. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    3

    Default

    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/ph...creenshot1.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. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by trance_inducer View Post
    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/ph...creenshot1.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
    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. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    3

    Default

    thank you...I'll do that

Similar Threads & Tags
Similar threads

  1. Replies: 13
    Last Post: 02-17-2012, 05:25 PM
  2. Replies: 6
    Last Post: 12-10-2009, 11:43 AM
  3. Replies: 6
    Last Post: 12-10-2009, 11:43 AM
  4. Php Config
    By aryapsh in forum New User Questions
    Replies: 2
    Last Post: 04-30-2007, 03:27 PM
  5. PHP Config
    By autson in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-08-2002, 06:58 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube