Hi Karel,
Fixed! 8-)
I did 'yum -y install php-imap' which fixed the imap_8bit() function
call.
I then got "sorry -- cannot open write fifo" on the registration
confirmation page.
This file is not writable by my httpd user (user apache on CentOS) so I
set the ownership to root.apache. This is reset to root.root when ser
starts, so I added 'chown root.apache /tmp/ser_fifo' to the start
section of the /etc/init.d/ser script, just before the 'return $RETVAL'
line.
Serweb now works a treat.
Thanks again for your code and your help,
Bart...
-----Original Message-----
From: Karel Kozlik [mailto:karel@iptel.org]
Sent: 01 February 2006 10:30
To: Bart J. Smit
Cc: SER Users
Subject: Re: [Serusers] Serweb does not send mail on registration
well, you need the imap extension for php. It should be sufficient to
add this line to your php.ini:
extension=imap.so
Karel
Bart J. Smit napsal(a):
Thanks Karel,
Good thinking; I forgot to check the apache logs.
The error log gave a vital clue:
PHP Fatal error: Call to undefined function: imap_8bit() in
/var/www/serweb-0.9.4/html/functions.php on line 310.
I'll go and check the PHP to see if I need additional PEAR modules or
a
patch to the script.
Bart...
-----Original Message-----
From: Karel Kozlik [mailto:karel@iptel.org]
Sent: 01 February 2006 07:55
To: Bart J. Smit
Cc: SER Users
Subject: Re: [Serusers] Serweb does not send mail on registration
Hello,
is there an error message in PHP log. Or in apache error log?
Karel
Bart J. Smit napsal(a):
I have serweb-0.9.4 installed on CentOS 4.2 with
MySQL 4.1.12-3 and
ser-0.9.6-1 compiled from the source RPM at
http://ftp.upjs.sk/pub/users/sal/Fedora/4/voip. When I register a new
user, the PHP script goes to an empty page without title and the email
never gets sent to the address entered on the registration form.
The database gets the correct user details inserted into the pending
table. The sendnotification and greeting fields remain empty.
I have modified the line in config_data_layer.php for the collation
character set to read:
$config->data_sql->collation = "latin1_swedish_ci";
This got rid of a DB error in serweb which I traced through pear
logging:
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
(utf8_general_ci,COERCIBLE) for operation '=']
I have sent a test email with the debugging/mail.php script and it
arrives fine. I have tested the registration page with local
recipients,
>recipients on the LAN and external recipients but the behaviour stays
>the same.
>
>All the pages I have googled on serweb registration problems always
>state that the emails are sent out correctly, so I'm likely missing
>something obvious.
>
>Can anybody help me get the registration to work?
>
>Thanks,
>
>Bart...
>
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers