Saturday, May 16, 2009

How to work better

Was reading in the net and found this usefule advice:
  1. Do one thing at a time.
  2. Know the problem.
  3. Learn to listen.
  4. Learn to ask questions.
  5. Distinguish sense from nonsense.
  6. Access change is inevitable.
  7. Admit mistakes.
  8. Say it simple.
  9. Be calm.
  10. Smile :)

Friday, May 8, 2009

Enable Upload of Documents in Dokuwiki

Recently I installed Dokuwiki on IIS as the wiki for my team and projects.
The installation went on fine but it did not allow upload of images, documents, pdfs etc.

Looking through the internet I was able to find the solution step by step.
So I have consolidated all in here:


  1. I have my wiki installed at C:\Inetpub\wwwroot\wiki. I created an upload folder to allow php engine to write files in there. I got in created at C:\Inetpub\wwwroot\wiki\uploads and gave Domain\Users , Internet Guest Account and Launch IIS Process Account "Full Control" over the folder. This allows IIS worker process to write files to the folder.

  2. I have my php installed at C:\PHP. Open the C:\PHP\php.ini file and make the following changes:

    1. Look for the config param "open_basedir" and set it to wiki base directory.

      open_basedir = "C:\Inetpub\wwwroot\wiki"

    2. Look for the config param "upload_tmp_dir" and set it to the Uploads directory created in Step 1.

      upload_tmp_dir="C:\Inetpub\wwwroot\wiki\uploads"

    3. You may also want to set the maximum file size that can be uploaded. Look for the config params "post_max_size" and "upload_max_filesize" and set it to the required file size.

      post_max_size = 20M
      upload_max_filesize = 20M

    4. Just confirm one more thing i.e. the config param "file_uploads". It should be set to ON.

      file_uploads = On

    5. You may also want to set the mail setting for php application under the "[mail function]" section. You will need to set the config params "SMTP" (SMTP server), "smtp_port" and "sendmail_from".

  3. This should set you up and you should be able to upload to your dokuwiki.

Happy wiki'ing.