[dokuwiki] Re: Installing Dokuwiki without mail service

Andreas Gohr wrote:
Hi!

The install script is complaining that PHP 'mail' is not working. There was some discussion on this in the mailing list about two years ago, but the conclusion seems to be that there must be a mail service available.

The install script does not check if the mail() function works it only checks if it exists ie. is not disabled. If this is your server you should simply reenable it.

I installed PHP from the sources. So it is not a matter of enabling an existing function, it is necessary to recompile, but there are reasons why the function is not available. From the PHP manual:

"For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them. PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary."

Since there is no MTA installed, none of the files or wrappers exist.

1. Is there an easy way to change that error into a warning and let the installation proceed? It is not necessary to disable all mail options automatically, but that would be a nice side effect.

If reenabling the function is not possible, you can hack the install.php script - there is an array somehwere with a list of functions to be checked.

Looks like this is my next option. I found the array.

Thank you,

Bob McConnell
N2SPP
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: