PHP trouble installing 5.0.2


(Jeff Guillory) #1

I attempted to upgrade from 5.0.1(7) to 5.0.2.

Got the error from webpage: “PHP version needs to be at least 7.1.2.”

Pulled up the Terminal in Ubuntu 16.04 and it shows I am running version 7.3.8.

So I am stuck. Please help.

Jeff Guillory
NP Health Clinic
Lumberton TX

Is it possible that PHP 7.3.8 in installed but Apache is still using the old version.? If so, how do I make Apache use the newest version?


OpenEMR 5.0.2 has just been released!
(Stephen Waite) #2

sure, did you restart apache?


(Jeff Guillory) #3

I did.

It appears I have PHP version 7.3.8 but apache is running a lower version.

I am trying figure out how to upgrade apache php.

Any help is appreciated.

Jeff


(Jeff Guillory) #4

When I check in terminal I get:

nursejeff@linuxopenemr:~$ php -v
PHP 7.3.8-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Aug 7 2019 09:51:47) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.3.8, Copyright © 1998-2018 Zend Technologies
with Zend OPcache v7.3.8-1+ubuntu16.04.1+deb.sury.org+1, Copyright © 1999-2018, by Zend Technologies

Which to me means I have PHP version 7.3.8 installed on the server.

When I type in ipaddress/sql_upgrade.php I get:

PHP version needs to be at least 7.1.2.

I have stopped and restarted apache.

I am assuming that PHP version 7.3.8 is installed on my server but Apache is still using an older version. If this is so, I need to know how to update Apache to use the newest version.

I’m still trying, haven’t found a clear answer yet.

Help please.

Jeff


(Stephen Waite) #5

what do you see with
ls -lrt /etc/apache2/mods-enabled/


(Jeff Guillory) #6

nursejeff@linuxopenemr:~$ ls -lrt /etc/apache2/mods-enabled/
total 0
lrwxrwxrwx 1 root root 33 Nov 28 2017 authz_host.load -> …/mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Nov 28 2017 authz_core.load -> …/mods-available/authz_core.load
lrwxrwxrwx 1 root root 33 Nov 28 2017 authn_core.load -> …/mods-available/authn_core.load
lrwxrwxrwx 1 root root 33 Nov 28 2017 auth_basic.load -> …/mods-available/auth_basic.load
lrwxrwxrwx 1 root root 36 Nov 28 2017 access_compat.load -> …/mods-available/access_compat.load
lrwxrwxrwx 1 root root 33 Nov 28 2017 authn_file.load -> …/mods-available/authn_file.load
lrwxrwxrwx 1 root root 33 Nov 28 2017 authz_user.load -> …/mods-available/authz_user.load
lrwxrwxrwx 1 root root 28 Nov 28 2017 alias.load -> …/mods-available/alias.load
lrwxrwxrwx 1 root root 28 Nov 28 2017 alias.conf -> …/mods-available/alias.conf
lrwxrwxrwx 1 root root 26 Nov 28 2017 dir.load -> …/mods-available/dir.load
lrwxrwxrwx 1 root root 26 Nov 28 2017 dir.conf -> …/mods-available/dir.conf
lrwxrwxrwx 1 root root 32 Nov 28 2017 autoindex.load -> …/mods-available/autoindex.load
lrwxrwxrwx 1 root root 32 Nov 28 2017 autoindex.conf -> …/mods-available/autoindex.conf
lrwxrwxrwx 1 root root 26 Nov 28 2017 env.load -> …/mods-available/env.load
lrwxrwxrwx 1 root root 27 Nov 28 2017 mime.load -> …/mods-available/mime.load
lrwxrwxrwx 1 root root 27 Nov 28 2017 mime.conf -> …/mods-available/mime.conf
lrwxrwxrwx 1 root root 34 Nov 28 2017 negotiation.load -> …/mods-available/negotiation.load
lrwxrwxrwx 1 root root 34 Nov 28 2017 negotiation.conf -> …/mods-available/negotiation.conf
lrwxrwxrwx 1 root root 31 Nov 28 2017 setenvif.load -> …/mods-available/setenvif.load
lrwxrwxrwx 1 root root 31 Nov 28 2017 setenvif.conf -> …/mods-available/setenvif.conf
lrwxrwxrwx 1 root root 29 Nov 28 2017 filter.load -> …/mods-available/filter.load
lrwxrwxrwx 1 root root 30 Nov 28 2017 deflate.load -> …/mods-available/deflate.load
lrwxrwxrwx 1 root root 30 Nov 28 2017 deflate.conf -> …/mods-available/deflate.conf
lrwxrwxrwx 1 root root 29 Nov 28 2017 status.load -> …/mods-available/status.load
lrwxrwxrwx 1 root root 29 Nov 28 2017 status.conf -> …/mods-available/status.conf
lrwxrwxrwx 1 root root 26 Nov 28 2017 ssl.load -> …/mods-available/ssl.load
lrwxrwxrwx 1 root root 26 Nov 28 2017 ssl.conf -> …/mods-available/ssl.conf
lrwxrwxrwx 1 root root 36 Nov 28 2017 socache_shmcb.load -> …/mods-available/socache_shmcb.load
lrwxrwxrwx 1 root root 30 Nov 28 2017 rewrite.load -> …/mods-available/rewrite.load
lrwxrwxrwx 1 root root 30 Nov 28 2017 headers.load -> …/mods-available/headers.load
lrwxrwxrwx 1 root root 29 Dec 11 2017 php7.0.load -> …/mods-available/php7.0.load
lrwxrwxrwx 1 root root 29 Dec 11 2017 php7.0.conf -> …/mods-available/php7.0.conf
lrwxrwxrwx 1 root root 34 Dec 11 2017 mpm_prefork.load -> …/mods-available/mpm_prefork.load
lrwxrwxrwx 1 root root 34 Dec 11 2017 mpm_prefork.conf -> …/mods-available/mpm_prefork.conf


(Jeff Guillory) #7

These two lines appears to show Apache is loading php7.0 and conf. php 7.0.

How do I get it to load 7.3.8 and conf. 7.3.8. ?

Jeff


(Stephen Waite) #8

from
ls -lrt /etc/apache2/mods-available/
find the php7.3 entry
and then

sudo a2enmod php7.3....

(Jeff Guillory) #9

Did exactly as you said.

Tried the sql_upgrade and got the same error: PHP version needs to be at least 7.1.2.

Ran this again and got this below:

nursejeff@linuxopenemr:~$ ls -lrt /etc/apache2/mods-enabled/
total 0
lrwxrwxrwx 1 root root 33 Nov 28 2017 authz_host.load -> …/mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Nov 28 2017 authz_core.load -> …/mods-available/authz_core.load
lrwxrwxrwx 1 root root 33 Nov 28 2017 authn_core.load -> …/mods-available/authn_core.load
lrwxrwxrwx 1 root root 33 Nov 28 2017 auth_basic.load -> …/mods-available/auth_basic.load
lrwxrwxrwx 1 root root 36 Nov 28 2017 access_compat.load -> …/mods-available/access_compat.load
lrwxrwxrwx 1 root root 33 Nov 28 2017 authn_file.load -> …/mods-available/authn_file.load
lrwxrwxrwx 1 root root 33 Nov 28 2017 authz_user.load -> …/mods-available/authz_user.load
lrwxrwxrwx 1 root root 28 Nov 28 2017 alias.load -> …/mods-available/alias.load
lrwxrwxrwx 1 root root 28 Nov 28 2017 alias.conf -> …/mods-available/alias.conf
lrwxrwxrwx 1 root root 26 Nov 28 2017 dir.load -> …/mods-available/dir.load
lrwxrwxrwx 1 root root 26 Nov 28 2017 dir.conf -> …/mods-available/dir.conf
lrwxrwxrwx 1 root root 32 Nov 28 2017 autoindex.load -> …/mods-available/autoindex.load
lrwxrwxrwx 1 root root 32 Nov 28 2017 autoindex.conf -> …/mods-available/autoindex.conf
lrwxrwxrwx 1 root root 26 Nov 28 2017 env.load -> …/mods-available/env.load
lrwxrwxrwx 1 root root 27 Nov 28 2017 mime.load -> …/mods-available/mime.load
lrwxrwxrwx 1 root root 27 Nov 28 2017 mime.conf -> …/mods-available/mime.conf
lrwxrwxrwx 1 root root 34 Nov 28 2017 negotiation.load -> …/mods-available/negotiation.load
lrwxrwxrwx 1 root root 34 Nov 28 2017 negotiation.conf -> …/mods-available/negotiation.conf
lrwxrwxrwx 1 root root 31 Nov 28 2017 setenvif.load -> …/mods-available/setenvif.load
lrwxrwxrwx 1 root root 31 Nov 28 2017 setenvif.conf -> …/mods-available/setenvif.conf
lrwxrwxrwx 1 root root 29 Nov 28 2017 filter.load -> …/mods-available/filter.load
lrwxrwxrwx 1 root root 30 Nov 28 2017 deflate.load -> …/mods-available/deflate.load
lrwxrwxrwx 1 root root 30 Nov 28 2017 deflate.conf -> …/mods-available/deflate.conf
lrwxrwxrwx 1 root root 29 Nov 28 2017 status.load -> …/mods-available/status.load
lrwxrwxrwx 1 root root 29 Nov 28 2017 status.conf -> …/mods-available/status.conf
lrwxrwxrwx 1 root root 26 Nov 28 2017 ssl.load -> …/mods-available/ssl.load
lrwxrwxrwx 1 root root 26 Nov 28 2017 ssl.conf -> …/mods-available/ssl.conf
lrwxrwxrwx 1 root root 36 Nov 28 2017 socache_shmcb.load -> …/mods-available/socache_shmcb.load
lrwxrwxrwx 1 root root 30 Nov 28 2017 rewrite.load -> …/mods-available/rewrite.load
lrwxrwxrwx 1 root root 30 Nov 28 2017 headers.load -> …/mods-available/headers.load
lrwxrwxrwx 1 root root 29 Dec 11 2017 php7.0.load -> …/mods-available/php7.0.load
lrwxrwxrwx 1 root root 29 Dec 11 2017 php7.0.conf -> …/mods-available/php7.0.conf
lrwxrwxrwx 1 root root 34 Dec 11 2017 mpm_prefork.load -> …/mods-available/mpm_prefork.load
lrwxrwxrwx 1 root root 34 Dec 11 2017 mpm_prefork.conf -> …/mods-available/mpm_prefork.conf
lrwxrwxrwx 1 root root 29 Aug 17 18:05 php7.3.load -> …/mods-available/php7.3.load
lrwxrwxrwx 1 root root 29 Aug 17 18:05 php7.3.conf -> …/mods-available/php7.3.conf

The last two lines show that is appeared to load 7.3. I stop and restarted apache and closed and reopened firefox.

Same error.

Thank you Stephen for helping, much appreciated. What do I try next.

Jeff


(Henry Alvarez) #10

Hi nursejeff & Stephen,

As far I can see the Ubuntu 16.04 LTS Upgrade from 5.0.1(7) to 5.0.2 is still under construction. See below;

Ubuntu/Debian/Mint OpenEMR package
Upgrade to 5.0.2
OpenEMR 5.0.2 Ubuntu package is UNDER CONSTRUCTION

Please clarify that this is correct or not.

Thank You,

Henry


(Jeff Guillory) #11

Holy Crap,

I don’t know Henry. All I know is that I am having billing issues with me current 5.0.1(7) system and I was hoping that I could fix those issues with the upgrade.

I got the email: OpenEMR 5.0.2 has just been released! so I attempted to upgrade. I have done this in the past and had no issues until this one.

I guess I will be spending tomorrow reverting back to 5.0.1(7) and hoping someone can help me with my billing issue.

Thanks

Jeff


(Henry Alvarez) #12

Hi Jeff,
Ray Magauran posted that he was having trouble with the posting of items just a few days ago in the forum. Look it up and see if its the same problem your having. I hope you worked with a backup copy or have a copy of your production machine.

Henry


(Brady Miller) #13

hi @nursejeff ,
See step 6 and 7 here:


(Jeff Guillory) #14

Thanks Brady,

This appears to be a detailed explanation to get apache running the correct php version needed for 5.0.2.

I am out of time this weekend to do this. I successfully reverted back to 5.0.1(7) and will try again, maybe next weekend.

Thanks again.

Jeff


(Jeff Guillory) #15

Would it be okay for me to go ahead and update to the PHP 7.3 version while still running the OpenEMR 5.0.1(7)?

I’ll work on getting that done and be sure it is successful before I try the upgrade on Openemr.


(Stephen Waite) #16

I’d wait since the 7.3 update is straightforward and should only take a few minutes and might interfere with 5.0.1.


(marimuthu) #17

Hello Mr.Stephen

Actually, the same kind of issue like PHP version needs to be at least 7.1.2 is displaying when install. I’m using ubuntu 16.04, apache2, php7.1, chrome/mozilla browser here.

I’ve checked the `ls -lrt /etc/apache2/mods-enabled/ and displayed the same list like @nursejeff .

Is this still under develop like @hamd mentioned for ubuntu 16.04 lts os.

Could you help me to make work openemr-5.0.2 v.

Regards
Marimuthu A


(Jeff Guillory) #18

I have yet to upgrade to 5.0.2.

I need to give a warning though about PHP upgrade. I did upgrade to PHP 7.3.8 and OpenEMR 5.0.1(7) is working, but my lab bridge is not.

It turns out the lab bridge built by Williams Technologies is not supported by PHP above 7.2.

So when you upgrade PHP, I wouldn’t upgrade to the lastest version which was 7.3.8. I now have to lower my PHP version down to 7.2 in order for my lab bridge to work.

Hope this helps,

Jeff Guillory


(Stephen Waite) #19

hi @marimuthu, have you followed the guide that Brady shared, https://www.rosehosting.com/blog/how-to-install-php-7-3-on-ubuntu-16-04/#Step-6-Change-the-PHP-version