Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16859

Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen
Date 2016-07-14 13:23 -0400
Organization A noiseless patient Spider
Message-ID <nm8hpp$mgd$1@jstuckle.eternal-september.org> (permalink)
References (1 earlier) <nm89kc$l52$3@jstuckle.eternal-september.org> <64ed4488-2a3a-4329-8958-6b245a860ddd@googlegroups.com> <nm8cvj$339$1@jstuckle.eternal-september.org> <2006cba7-83f0-4522-8da8-3ecf28d5fb16@googlegroups.com> <73e152d6-c50d-401b-a7ec-4c2461ffa4f2@googlegroups.com>

Show all headers | View raw


On 7/14/2016 1:08 PM, Alla wrote:
> On Thursday, July 14, 2016 at 8:28:47 PM UTC+4, Alla wrote:
>> On Thursday, July 14, 2016 at 8:00:57 PM UTC+4, Jerry Stuckle wrote:
>>> On 7/14/2016 11:14 AM, Alla wrote:
>>>> On Thursday, July 14, 2016 at 7:03:46 PM UTC+4, Jerry Stuckle wrote:
>>>>> On 7/14/2016 10:57 AM, Alla wrote:
>>>>>> Hello!
>>>>>> I am trying to solve the issue I have with phpmyadmin, and I have found out that although 
>>>>>> I have used curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5 to upgrade, the php -v
>>>>>> command still shows that my version is php 5.3.28. I have checked httpd.conf, and the line
>>>>>> LoadModule php5_module libexec/apache2/libphp5.so is uncommented. 
>>>>>>
>>>>>> My system: Mac OS X 10.7.5
>>>>>> Server version: Apache/2.2.26 (Unix)
>>>>>>     Server built:   Dec 15 2013 18:33:29
>>>>>> I have installed mysql-5.6.20-osx10.7-x86_64.dmg.
>>>>>>
>>>>>> Why php doesn't upgrade? What are the solutions? 
>>>>>> Please, help me to solve this issue, but, please, give me a non-cryptic advice as I am a 
>>>>>> newbie )
>>>>>> Thank you very much!
>>>>>>
>>>>>
>>>>> At last - a PHP question (sort of)!
>>>>>
>>>>> Did you restart Apache?  And is your new version of PHP in the place
>>>>> your LoadModule statement shows?
>>>>>
>>>> Please, bear with me ) I am trying to start coding ) So I have to 
>>>> finish this set up process. 
>>>>
>>>> Yes, I have restarted apache. Here:
>>>>
>>>> Allas-MacBook-Pro:~ Alla$ sudo apachectl restart
>>>> Password:
>>>> Allas-MacBook-Pro:~ Alla$ php -v
>>>> PHP 5.3.28 with Suhosin-Patch (cli) (built: Jan 23 2014 20:55:45) 
>>>> Copyright (c) 1997-2013 The PHP Group
>>>> Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
>>>>
>>>> Still the same problem
>>>>
>>>
>>> What about my other question - is your new version of PHP in the place
>>> your LoadModule statement shows?
>>>
>> I am not sure if I have checked it correctly, but I see libphp5.so at the location
>> pointed to by LoadModule. Does it indicate that the correct version is at place?
>> Both versions start with 5:
>>
>> Allas-MacBook-Pro:~ Alla$ cd /usr/libexec/apache2
>> Allas-MacBook-Pro:apache2 Alla$ ls
>> httpd.exp		mod_dav.so		mod_negotiation.so
>> libphp5.so		mod_dav_fs.so		mod_perl.so
>> mod_actions.so		mod_dav_svn.so		mod_proxy.so
>> mod_alias.so		mod_dbd.so		mod_proxy_ajp.so
>> mod_asis.so		mod_deflate.so		mod_proxy_balancer.so
>> mod_auth_basic.so	mod_dir.so		mod_proxy_connect.so
>> mod_auth_digest.so	mod_disk_cache.so	mod_proxy_ftp.so
>> mod_authn_anon.so	mod_dumpio.so		mod_proxy_http.so
>> mod_authn_dbd.so	mod_env.so		mod_proxy_scgi.so
>> mod_authn_dbm.so	mod_expires.so		mod_reqtimeout.so
>> mod_authn_default.so	mod_ext_filter.so	mod_rewrite.so
>> mod_authn_file.so	mod_filter.so		mod_scgi_pubsub.so
>> mod_authz_dbm.so	mod_headers.so		mod_setenvif.so
>> mod_authz_default.so	mod_hfs_apple.so	mod_speling.so
>> mod_authz_groupfile.so	mod_ident.so		mod_ssl.so
>> mod_authz_host.so	mod_imagemap.so		mod_status.so
>> mod_authz_owner.so	mod_include.so		mod_substitute.so
>> mod_authz_svn.so	mod_info.so		mod_unique_id.so
>> mod_authz_user.so	mod_log_config.so	mod_userdir.so
>> mod_autoindex.so	mod_log_forensic.so	mod_userdir_apple.so
>> mod_bonjour.so		mod_logio.so		mod_usertrack.so
>> mod_cache.so		mod_mem_cache.so	mod_version.so
>> mod_cern_meta.so	mod_mime.so		mod_vhost_alias.so
>> mod_cgi.so		mod_mime_magic.so
> 
> Now /usr/bin/php --version command shows correct version of php.
> Below are the commands I performed. But when I try to download 
> http://localhost/~user/phpmyadmin/
> I get the same message:
> 
> PHP 5.5+ is required. 
> Currently installed version is: 5.3.28
> 
> I don't understand how that all has happened given the fact that I have already 
> been at phpmyadmin login page, it just wouldn't let me in; now, I can't even access
> that one ) 
> All commands show that the correct php version is installed and is active; why apache
> doesn't see it?
> 
> Allas-MacBook-Pro:~ Alla$ sudo mv /usr/bin/php /usr/bin/php5328
> Allas-MacBook-Pro:~ Alla$ sudo ln -s /usr/local/php5/bin/php /usr/bin/php
> Allas-MacBook-Pro:~ Alla$ which php
> /usr/bin/php
> Allas-MacBook-Pro:~ Alla$ /usr/bin/php --version
> PHP 5.5.37 (cli) (built: Jun 26 2016 13:53:04) 
> Copyright (c) 1997-2015 The PHP Group
> Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
>     with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
>     with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
> 

Both 5.3.28 and 5.5.37 would have a libphp5.so module - it just shows
the major version. But the version which runs on the CLI is an
executable file, while the one which runs under Apache is a .so.  They
are not the same thing, and it is entirely possible to have different
versions running - as you seem to have.  Right now you are pointing at
the old version in your LoadModule statement.

I don't use a Mac, so I have no idea where your install script places
the PHP files.  That's what you need to find out, and either have the
LoadModule in your Apache configuration point at that module, or move
the correct module to where your Apache configuration files points.

I echo J.O.'s recommendation to uninstall the old version (or better
yet, uninstall both versions) and install the new version.

And I would agree with J.O. - you should upgrade your OS, also.  He
knows much more about Macs than I do.


-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-14 07:57 -0700
  Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-14 08:03 -0700
    Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-14 08:08 -0700
  Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Jerry Stuckle <jstucklex@attglobal.net> - 2016-07-14 11:03 -0400
    Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-14 08:14 -0700
      Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Jerry Stuckle <jstucklex@attglobal.net> - 2016-07-14 12:00 -0400
        Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-14 09:28 -0700
          Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-14 10:08 -0700
            Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Jerry Stuckle <jstucklex@attglobal.net> - 2016-07-14 13:23 -0400
  Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen "J.O. Aho" <user@example.net> - 2016-07-14 18:26 +0200
    Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-16 09:26 -0700
      Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen "J.O. Aho" <user@example.net> - 2016-07-17 08:49 +0200
        Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-21 02:56 -0700
          Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-21 03:16 -0700
            Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-21 03:31 -0700
              Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-21 04:04 -0700
  Re: Upgrading php from PHP 5.3.28 to PHP 5.5 didn't happen Alla <modelling.data@gmail.com> - 2016-07-21 08:59 -0700

csiph-web