Exim 4u on Freebsd 12 and Php 7.4

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Exim 4u on Freebsd 12 and Php 7.4

Godfrey Hamshire
Hi

I am looking for some help.

I am trying to get exim4u to work on the following

FreeBSD 12 and Php 7.4

Has there been anyone on the group who has managed to do so.

I keep on bumping into errors just trying to get the web interface going.

This is the one error that is driving me nuts.

[Thu Apr 01 14:14:41.402888 2021] [php7:error] [pid 2192] [client
192.168.0.11:52771] PHP Fatal error:  Uncaught Error: Undefined class
constant 'MYSQL_ATTR_INIT_COMMAND' in
/home/hosted/exim4u/public_html/config/variables.php:12\nStack trace:\n#0
/home/hosted/exim4u/public_html/index.php(2): require_once()\n#1 {main}\n
thrown in /home/hosted/exim4u/public_html/config/variables.php on line 12

$dboptions = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES UTF8');

I tried various suggestions I have found on the web but no luck.

If there is a community member who has Exim4u working with php 7.2 would
they mind sharing it with me.

I have a perfectly working system on Freebsd 10 and using php 5.6

I have been told by my hosting company I must upgrade my server etc.

I am open to all suggestions even changing my os if it comes to that.

I really need this to work.

Thank you any and all help it will be really appreciated.

Kind Regards

Godfrey Hamshire






_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Exim 4u on Freebsd 12 and Php 7.4

gldickens3
Administrator
Hi Godfrey,

I have Exim4U running fine on FreeBSD 12 and php 7.3.

Also, google found this:

https://wordpress.org/support/topic/php-7-3-causes-fatal-error/

Apparently for some users, that error is solved by enabling the
pdo_mysql extension.

FYI,

Gordon



On 4/1/21 8:58 AM, [hidden email] wrote:

> Hi
>
> I am looking for some help.
>
> I am trying to get exim4u to work on the following
>
> FreeBSD 12 and Php 7.4
>
> Has there been anyone on the group who has managed to do so.
>
> I keep on bumping into errors just trying to get the web interface going.
>
> This is the one error that is driving me nuts.
>
> [Thu Apr 01 14:14:41.402888 2021] [php7:error] [pid 2192] [client
> 192.168.0.11:52771] PHP Fatal error:  Uncaught Error: Undefined class
> constant 'MYSQL_ATTR_INIT_COMMAND' in
> /home/hosted/exim4u/public_html/config/variables.php:12\nStack trace:\n#0
> /home/hosted/exim4u/public_html/index.php(2): require_once()\n#1 {main}\n
> thrown in /home/hosted/exim4u/public_html/config/variables.php on line 12
>
> $dboptions = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES UTF8');
>
> I tried various suggestions I have found on the web but no luck.
>
> If there is a community member who has Exim4u working with php 7.2 would
> they mind sharing it with me.
>
> I have a perfectly working system on Freebsd 10 and using php 5.6
>
> I have been told by my hosting company I must upgrade my server etc.
>
> I am open to all suggestions even changing my os if it comes to that.
>
> I really need this to work.
>
> Thank you any and all help it will be really appreciated.
>
> Kind Regards
>
> Godfrey Hamshire
>
>
>
>
>
>
> _______________________________________________
> users mailing list -- [hidden email]
> To unsubscribe send an email to [hidden email]
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Exim 4u on Freebsd 12 and Php 7.4

Godfrey Hamshire
In reply to this post by Godfrey Hamshire
Hi every one,

The solution to my problem was I had missed installing php74-pdo_mysql:
7.4.16

After installing and a apachectl restart the web interface worked.

Thank you to all who helped me.

Regards

Godfrey

On 2021/04/01 14:58, [hidden email] wrote:

> Hi
>
> I am looking for some help.
>
> I am trying to get exim4u to work on the following
>
> FreeBSD 12 and Php 7.4
>
> Has there been anyone on the group who has managed to do so.
>
> I keep on bumping into errors just trying to get the web interface going.
>
> This is the one error that is driving me nuts.
>
> [Thu Apr 01 14:14:41.402888 2021] [php7:error] [pid 2192] [client
> 192.168.0.11:52771] PHP Fatal error:  Uncaught Error: Undefined class
> constant 'MYSQL_ATTR_INIT_COMMAND' in
> /home/hosted/exim4u/public_html/config/variables.php:12\nStack trace:\n#0
> /home/hosted/exim4u/public_html/index.php(2): require_once()\n#1 {main}\n
> thrown in /home/hosted/exim4u/public_html/config/variables.php on line 12
>
> $dboptions = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES UTF8');
>
> I tried various suggestions I have found on the web but no luck.
>
> If there is a community member who has Exim4u working with php 7.2 would
> they mind sharing it with me.
>
> I have a perfectly working system on Freebsd 10 and using php 5.6
>
> I have been told by my hosting company I must upgrade my server etc.
>
> I am open to all suggestions even changing my os if it comes to that.
>
> I really need this to work.
>
> Thank you any and all help it will be really appreciated.
>
> Kind Regards
>
> Godfrey Hamshire
>
>
>
>
>
>
> _______________________________________________
> users mailing list -- [hidden email]
> To unsubscribe send an email to [hidden email]

--
This email has been checked for viruses by AVG.
https://www.avg.com
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]