Newbie needing help needed with config.ini

Help
2007-11-08
2012-10-11
  • trance_inducer
    trance_inducer
    2007-11-08

    Hi

    I am new to php and mysql...

    I am trying to build a database site and have got some webspace on a server that has mysql and phpwiki on it...

    I am trying to activate the php bit...(lol sorry for my non technical terms...you can bash your head against the wall now)...

    is there a step by step guide how to set these things up for newbies.....I understand I have to change the config.ini in phpwiki...but I am getting a bit confused.... do i need to create a password in the config.ini file...... i have tried this several times and keep getting error messages...or when I do get a pop up to put in a user name and password..it won't let me log in???

    here are a few error messages I know have...

    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.

    I am not a code writer so I was hoping this was gonna be an easy ride....but I cannot get past the first hurdle..

    I suppose my questions are
    What do i need to change in the config.ini so i can view the configerator page on the php/mysql bit...?

    I have seen this in the config.ini...do i overwrite this...if so each time I do I either get error messages....or i get a log in pop up that does not actually log in when i type in a user name and pw that I had updated the config with... (this pop up only appears if I put ADIM_USER =[jobloggs and miss out the ]

    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]

    any help would be appreciated....would just love to get this thing up and running

    cheers

    tim

     
    • Bernard Bel
      Bernard Bel
      2007-11-08

      Being also newbie to MySQL and PHP I managed to install several PhpWikis in versions 1.3.13p1 and 1.3.14 thanks to the help of an experienced person. :-) After this I edited a detailed list of things to do. Since it is in French I won't publish here.

      I also created a list of changes in the config.ini files. Below is my list for the 1.3.14 version that I recommend (after reading my bug report and workarounds in another message of this forum).

      Note that I created specific directories tempsession, databasedirectory etc. because I wasn't sure that PhpWiki would store information in a reliable way on the server of my ISP. This is probably not necessary in most installations.

      To reply your question: yes, in this file you define an ADMIN_USER and ADMIN_PASSWD. These are the ones you will need to use for authenticating as the admin of your wiki. There is no need to put this information anywhere else. The only information that you need to share with MySQL is databasename, databasepassword, databaseserver, databaseuser.

      It is recommended to encrypt ADMIN_PASSWD. Since I feel lazy to do it - and I see little advantage since the MySQL password can't be encrypted - I prefer to set up the server so that the content of the "config" directory can't be displayed. Use classical Unix methods such as .htaccess for this.

      All the best

      Bernard Bel


      Settings of config.ini for CianeWiki :

      WIKI_NAME = CianeWiki

      THEME = smaller
      DEBUG = 0

      ADMIN_USER = WikiAdmin
      ADMIN_PASSWD = whateveryoulike

      ENCRYPTED_PASSWD = false

      ENABLE_RAW_HTML_LOCKEDONLY = true

      USE_PATH_INFO = false
      DEFAULT_LANGUAGE = fr

      ACCESS_LOG_SQL = 0

      DATABASE_TYPE = SQL
      DATABASE_DSN = "mysql://databasename:databasepassword@databaseserver/databaseuser"

      SESSION_SAVE_PATH = tempsession
      DATABASE_DIRECTORY = databasedirectory
      DATABASE_DBA_HANDLER = db4
      SESSION_SAVE_PATH = sessionsave
      ALLOW_BOGO_LOGIN = true
      PASSWORD_LENGTH_MINIMUM = 6
      PLUGIN_CACHED_CACHE_DIR = cache

      mkdir tmp
      mkdir pages
      mkdir tempsession
      mkdir databasedirectory
      mkdir sessionsave
      mkdir cache