Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 07-18-2017 11:57:20

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

New Server Configuration

We are moving to a new server running CentOS7 x86 64-bit. What would be the best version of PHP to run with K9 as we can choose from 5.5 through 7. If you have any other recommended settings or software versions please can you let me know.

Thanks.

Last edited by sdn (07-18-2017 11:57:46)


Simon

Offline

 

#2 07-19-2017 06:43:45

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: New Server Configuration

You should go with PHP7.  You'll have no issues on that platform.  Excellent choice.  The only thing I'd mention is that I've seen quite a few users setting their databases up as InnoDB lately, however prefer the default MyISAM, which is easier to configure and less prone to load issues in my experience.  But, that's beyond the scope of what you were asking.


Nick Hendler

Offline

 

#3 12-10-2020 08:25:18

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

Re: New Server Configuration

A message has appeared in WHM stating that PHP 7.2 is EOL. Is there any problem that you know of if we update to PHP 7.3, 7.4 or even 8.0?


Simon

Offline

 

#4 12-10-2020 09:29:56

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: New Server Configuration

PHP7.3 you're good to go on.

PHP7.4 you should be good to go on - you might need a PEAR Mail update which will be released as part of update 9.1.0.  If that's the case, I'll post back here.

PHP8 we have not tested yet.


Nick Hendler

Offline

 

#5 12-10-2020 13:37:06

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

Re: New Server Configuration

I installed PHP7.3 and tested but found the checkout did not work as mcrypt was not installed. After installing mcrypt for php7.3 (as per https://whattheserver.com/how-to-instal … s-7cpanel/) I now get this error message for the whole site as soon as PHP7.3 is selected in MultiPHP Manager.

"Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request."

Tried rebooting and running the installer to update PEAR but still not working. Do you have any ideas?

Last edited by sdn (12-10-2020 14:22:54)


Simon

Offline

 

#6 12-10-2020 14:18:23

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

Re: New Server Configuration

I appear to have fixed this now by deleting the cPanel-generated php text in htaccess and reselecting PHP7.3. It seemed to take a few seconds for it for straighten things out and then the site came back online. cPanel has added a new entry to htaccess as follows:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

Last edited by sdn (12-11-2020 04:19:04)


Simon

Offline

 

#7 12-11-2020 09:32:15

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: New Server Configuration

You might need that PEAR update for PHP7.3.  Please ensure mails are being sent.


Nick Hendler

Offline

 

#8 12-11-2020 10:26:01

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 882

Re: New Server Configuration

I did run the installer and updated PEAR and see it is version 1.10.12.

I just sent a message using the K9 contact form and it arrived OK so assume that means it is working correctly.

I have also upgraded mcrypt to version 1.03 and after some initial issues that also seems to be working OK.

Last edited by sdn (12-11-2020 13:36:13)


Simon

Offline

 

#9 12-14-2020 10:22:50

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: New Server Configuration

Great.  Thanks for the update.  I have a note here about PEAR::Mail2 needing an update - but that may only be for certain server configs.


Nick Hendler

Offline

 

Board footer