Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 02:30:44

Author Topic: php55m php 5.5.36 curl module  (Read 5403 times)

0 Members and 1 Guest are viewing this topic.

Offline StarScream159

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
php55m php 5.5.36 curl module
« on: 2016-06-09, 23:48:58 »
Hey all,

I recently upgraded from 6.5.0.f to 7.0.0.b and had a hell of a time getting everything working again. But alas it looks like it is coming together except for 1 thing.

I can't get the curl php module to work with php55m.

If I load phpinfo curl.ini is loaded, but the extension isn't. The output on the command line doesn't list it either:

Code: [Select]
[root@dedicated /]# php55m-cli -v
PHP 5.5.36 (cli) (built: May 28 2016 13:28:32)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
[root@dedicated /]#
[root@dedicated /]# php55m-cli -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gearman
geoip
gettext
gmp
hash
iconv
igbinary
intl
json
ldap
libxml
mbstring
memcached
mhash
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
recode
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]

[root@dedicated /]#

If I just run "php -m" on the command line it is listed:
Code: [Select]
[root@dedicated /]# php -v
PHP 5.3.3 (cli) (built: May 10 2016 21:39:50)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[root@dedicated /]#
[root@dedicated /]# php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
ereg
exif
fileinfo
filter
ftp
gettext
gmp
hash
iconv
json
libxml
openssl
pcntl
pcre
Phar
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
tokenizer
xml
zip
zlib

[Zend Modules]

[root@dedicated /]#

Any ideas how I can get this working? I'm trying to install a php application that requires it.

Sysinfo output:
Code: [Select]
[root@dedicated /]# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016060903
   - Web: hiawatha-10.3.0-f.1.mr.el5.x86_64
   - PHP: php54s-5.4.45-1.ius.el5 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: ****************
C. Services:
   1. MySQL: MariaDB-server-10.0.25-1.x86_64
   2. PHP:
      - 'Branch' installed: php-cli-5.3.3-47.el6.x86_64
      - 'Multiple' installed:
        * php52m-5.2.17-102.mr.el5
        * php53m-5.3.29-1.ius.el5
        * php54m-5.4.45-1.ius.el5
        * php55m-5.5.36-1.w5
        * php56m-
        * php70m-
      - 'Used' selected: php55m-fpm
      - 'Multiple' status: disable
   3. Web Used: apache
     - Hiawatha: --unused--
     - Lighttpd: --uninstalled--
     - Nginx: --uninstalled--
     - Httpd: httpd-2.2.31-1.mr.el5.x86_64
       - PHP Type: php-fpm_event
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: nsd
     - Bind: --uninstalled--
     - DJBDns: --uninstalled--
     - NSD: nsd-4.1.9-1.mr.el5.x86_64
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el5.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:         32067       1527      30539         31         90        824
   -/+ buffers/cache:        612      31454
   Swap:        16103          0      16103
E. Disk Space:
   Filesystem            Size  Used Avail Use% Mounted on
   /dev/mapper/vg_dedicated-lv_root
                          50G  5.0G   42G  11% /


*** Process Time: 00:00:00:00.924 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

[root@dedicated /]#

I notice some of the packages that are installed at el5, shouldn't they be el6?

Offline StarScream159

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: php55m php 5.5.36 curl module
« Reply #1 on: 2016-06-10, 00:49:35 »
Wanted to add more information I found out.:

I'm not able to switch the php branch in the panel, so I tried to run the command manually: 'yum replace php-cli --replace-with=php55w-cli'. When I do that I get the following error. Seems related to the curl issue:

Code: [Select]
[root@dedicated yum.repos.d]# yum replace php-cli --replace-with=php55w-cli
Loaded plugins: fastestmirror, priorities, protectbase, replace
Replacing packages takes time, please be patient...
Loading mirror speeds from cached hostfile
 * base: mirror.us.leaseweb.net
 * extras: mirror.us.leaseweb.net
 * mratwork-ius-stable: mirror.symnds.com
 * mratwork-webtatic: us-east.repo.webtatic.com
 * updates: mirror.us.leaseweb.net
0 packages excluded due to repository protections

WARNING: Unable to resolve all providers: ['config(php-common)', 'php-common(x86-64)', 'php-cli(x86-64)', 'config(php-fpm)', 'php-fpm(x86-64)']

This may be normal depending on the package.  Continue? [y/N] y
Resolving Dependencies
--> Running transaction check
---> Package php-cli.x86_64 0:5.3.3-47.el6 will be erased
---> Package php-common.x86_64 0:5.3.3-47.el6 will be erased
---> Package php-fpm.x86_64 0:5.3.3-47.el6 will be erased
---> Package php55w-cli.x86_64 0:5.5.36-1.w5 will be installed
---> Package php55w-common.x86_64 0:5.5.36-1.w5 will be installed
--> Processing Dependency: libcurl.so.3()(64bit) for package: php55w-common-5.5.36-1.w5.x86_64
---> Package php55w-fpm.x86_64 0:5.5.36-1.w5 will be installed
--> Finished Dependency Resolution
Error: Package: php55w-common-5.5.36-1.w5.x86_64 (mratwork-webtatic)
           Requires: libcurl.so.3()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@dedicated yum.repos.d]#

However libcurl seems to be installed already:
Code: [Select]
[root@dedicated yum.repos.d]# yum install libcurl
Loaded plugins: fastestmirror, priorities, protectbase, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.us.leaseweb.net
 * extras: mirror.us.leaseweb.net
 * mratwork-ius-stable: mirror.symnds.com
 * mratwork-webtatic: us-east.repo.webtatic.com
 * updates: mirror.us.leaseweb.net
0 packages excluded due to repository protections
Package libcurl-7.19.7-52.el6.x86_64 already installed and latest version
Nothing to do
[root@dedicated yum.repos.d]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php55m php 5.5.36 curl module
« Reply #2 on: 2016-06-10, 06:28:43 »
Don't change 'php branch' but set 'php used' using one of 'multiple php'.

All possible module already installed for 'multiple php' but certain modules are inactived. To know modules setting, see /opt/php55m/etc/php.d directory (example php 5.5). If you found .nonini file and want to active, change/rename this file to _used.ini (example apcu.nonini to apcu_used.ini).

To check 'multiple php', run 'php55m-cli -v' (equivalent with 'php -v'; example for php 5.5).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline StarScream159

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: php55m php 5.5.36 curl module
« Reply #3 on: 2016-06-10, 16:56:50 »
Hi MRatWork! Thanks for the reply.

The ini file is being loaded, as when I go to my server's phpinfo page I can see the ini in the list;

Code: [Select]
/opt/php55m/etc/php.d/bcmath.ini, /opt/php55m/etc/php.d/bz2.ini, /opt/php55m/etc/php.d/calendar.ini, /opt/php55m/etc/php.d/ctype.ini, /opt/php55m/etc/php.d/curl.ini, /opt/php55m/etc/php.d/dom.ini, /opt/php55m/etc/php.d/exif.ini, /opt/php55m/etc/php.d/fileinfo.ini, /opt/php55m/etc/php.d/ftp.ini, /opt/php55m/etc/php.d/gd.ini, /opt/php55m/etc/php.d/gearman.ini, /opt/php55m/etc/php.d/geoip.ini, /opt/php55m/etc/php.d/gettext.ini, /opt/php55m/etc/php.d/gmp.ini, /opt/php55m/etc/php.d/iconv.ini, /opt/php55m/etc/php.d/igbinary.ini, /opt/php55m/etc/php.d/imap.ini, /opt/php55m/etc/php.d/intl.ini, /opt/php55m/etc/php.d/json.ini, /opt/php55m/etc/php.d/ldap.ini, /opt/php55m/etc/php.d/mbstring.ini, /opt/php55m/etc/php.d/mcrypt.ini, /opt/php55m/etc/php.d/mysqlnd.ini, /opt/php55m/etc/php.d/mysqlnd_mysql.ini, /opt/php55m/etc/php.d/mysqlnd_mysqli.ini, /opt/php55m/etc/php.d/pdo.ini, /opt/php55m/etc/php.d/pdo_mysqlnd.ini, /opt/php55m/etc/php.d/pdo_sqlite.ini, /opt/php55m/etc/php.d/phar.ini, /opt/php55m/etc/php.d/posix.ini, /opt/php55m/etc/php.d/pspell.ini, /opt/php55m/etc/php.d/recode.ini, /opt/php55m/etc/php.d/shmop.ini, /opt/php55m/etc/php.d/simplexml.ini, /opt/php55m/etc/php.d/snmp.ini, /opt/php55m/etc/php.d/soap.ini, /opt/php55m/etc/php.d/sockets.ini, /opt/php55m/etc/php.d/sysvmsg.ini, /opt/php55m/etc/php.d/sysvsem.ini, /opt/php55m/etc/php.d/sysvshm.ini, /opt/php55m/etc/php.d/tidy.ini, /opt/php55m/etc/php.d/tokenizer.ini, /opt/php55m/etc/php.d/xml.ini, /opt/php55m/etc/php.d/xml_wddx.ini, /opt/php55m/etc/php.d/xmlreader.ini, /opt/php55m/etc/php.d/xmlrpc.ini, /opt/php55m/etc/php.d/xmlwriter.ini, /opt/php55m/etc/php.d/xsl.ini, /opt/php55m/etc/php.d/z-memcached.ini, /opt/php55m/etc/php.d/zip.ini

curl.ini is the fourth on the list: /opt/php55m/etc/php.d/curl.ini. However even with the curl.ini loading and it having 'extension=curl.so', the Curl module doesn't load as it isn't referenced in the output of "php55m-cli -m" nor is the block of curl info present on the phpinfo page.

I do have "PHP used" set to one of the multiple ones; currently it is set to php55m. And when I check my domains, I do see that it is indeed running that version.

The 'php55m-cli -v' commands do work, as I listed the output of '-v' and '-m' in my first post on this issue.

EDIT:
I feel like it has something to do with:
Code: [Select]
[root@dedicated ~]# yum install php55w-common
Loaded plugins: fastestmirror, priorities, protectbase, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.us.leaseweb.net
 * epel: ftp.osuosl.org
 * extras: mirror.us.leaseweb.net
 * mratwork-ius-stable: mirror.symnds.com
 * mratwork-remi-php56: remi.check-update.co.uk
 * mratwork-webtatic: us-east.repo.webtatic.com
 * rpmforge: mirror.us.leaseweb.net
 * rpmforge-extras: mirror.us.leaseweb.net
 * updates: mirror.us.leaseweb.net
0 packages excluded due to repository protections
Resolving Dependencies
--> Running transaction check
---> Package php55w-common.x86_64 0:5.5.36-1.w5 will be installed
--> Processing Dependency: libcurl.so.3()(64bit) for package: php55w-common-5.5.36-1.w5.x86_64
--> Processing Conflict: php55w-common-5.5.36-1.w5.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php55w-common conflicts with php-common-5.3.3-47.el6.x86_64
Error: Package: php55w-common-5.5.36-1.w5.x86_64 (mratwork-webtatic)
           Requires: libcurl.so.3()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@dedicated ~]#
Isn't php55w-common needed for Curl and a lot of the other standard stuff? The error I outlined in my second post leads me to believe that php55w-common can't install and so I am missing some libraries for curl to work properly, hence why it is missing from the output of -m and phpinfo even with the ini loading.
« Last Edit: 2016-06-10, 17:01:26 by StarScream159 »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php55m php 5.5.36 curl module
« Reply #4 on: 2016-06-10, 17:22:37 »
This is from my dev server:
Code: [Select]
> php55m-cli -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
geoip
gettext
gmp
hash
iconv
igbinary
imap
intl
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
recode
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
uploadprogress
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline StarScream159

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: php55m php 5.5.36 curl module
« Reply #5 on: 2016-06-10, 17:32:34 »
Well crap. Yeah clearly my server is messed up. I guess a format is in order. Damn it.

Really regretting upgrading from 6.5 to 7.0 now. lol.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php55m php 5.5.36 curl module
« Reply #6 on: 2016-06-10, 17:44:15 »
Try 'sh /script/phpm-all-install -y' to reinstall all php versions.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline StarScream159

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: php55m php 5.5.36 curl module
« Reply #7 on: 2016-06-10, 18:04:20 »
Yah I've run that command a few times. It seems to run successfully. It installs all versions up to php55s, after that it can't find anything else to do. Says no packages for the rest:

Code: [Select]
=== BEGIN 'php56m' install ===
- No PHP packages exists. Only detecting 'php56u', 'php56' or 'php56w'. Exit

=== BEGIN 'php56s' install ===
- No PHP packages exists. Only detecting 'php56u', 'php56' or 'php56w'. Exit

=== BEGIN 'php70m' install ===
- No PHP packages exists. Only detecting 'php70u', 'php70' or 'php70w'. Exit

=== BEGIN 'php70s' install ===
- No PHP packages exists. Only detecting 'php70u', 'php70' or 'php70w'. Exit

[root@dedicated ~]#

I attempted to remove php-common-5.3.3 and then install php55w-common, but I still had the same Requires: libcurl.so.3()(64bit) error. Then I manually reinstalled php-common-5.3.3, however now I've got server 500 errors for all domains. So it's really messed now. lol.

This isn't the only issue I've had since the update. I also can't access webmail; I get a storage connection failure. And I can't get my owncloud to work anymore that I installed with my instructions here: https://forum.mratwork.com/kloxo-mr-technical-helps/owncloud-install-transaction-check-error/msg45819/#msg45819. Apache won't start when I have the conf enabled.

And it reset all the SSL Certs I had uploaded manually and I can't seem to find where Kloxo's httpd.conf (or whatever conf it is using) to update change it back.

And lastly all the el5 packages that are installed on my el6 system from your repo. I don't think that's correct at all, and is probably going to cause problems down the road:

Code: [Select]
[root@dedicated php.d]# rpm -qa | grep el5
qmail-toaster-1.03-1.3.55.mr.el5.x86_64
libedit-20090923-3.0_1.el5.rf.x86_64
pure-ftpd-1.0.37-1.mr.el5.x86_64
libsrs2-toaster-1.0.18-1.3.7.mr.el5.x86_64
http-parser-2.0-6.20121128gitcd01361.el5.x86_64
m4-1.4.16-1.mr.el5.x86_64
bind-libs-9.9.7-1.mr.el5.x86_64
daemontools-toaster-0.76-1.3.7.mr.el5.x86_64
vpopmail-toaster-5.4.33-1.4.4.mr.el5.x86_64
http-parser-devel-2.0-6.20121128gitcd01361.el5.x86_64
autoconf26x-2.63-4.ius.el5.noarch
bind-utils-9.9.7-1.mr.el5.x86_64
ezmlm-toaster-0.53.324-1.3.9.mr.el5.x86_64
ucspi-tcp-toaster-0.88-1.3.12.mr.el5.x86_64
nginx-1.11.1-1.el5.ngx.x86_64
hiawatha-10.3.0-f.1.mr.el5.x86_64
GeoIP-1.6.5-2.el5.x86_64
libdomainkeys-toaster-0.68-1.3.7.mr.el5.x86_64
mysqlclient15-5.0.92-3.ius.el5.x86_64
autorespond-toaster-2.0.5-1.4.2.mr.el5.x86_64
qmail-pop3d-toaster-1.03-1.3.55.mr.el5.x86_64
nsd-4.1.9-1.mr.el5.x86_64
[root@dedicated php.d]#


It's too bad because I really like Kloxo.

Maybe a fresh install of Kloxo 7 would work. I might give it a try.

I don't think my server is salvageable.

EDIT: Fixed the 500 errors by changing from Apache to Nginx and then back to Apache in the Switch Program section of the panel.
« Last Edit: 2016-06-10, 18:12:04 by StarScream159 »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php55m php 5.5.36 curl module
« Reply #8 on: 2016-06-10, 19:05:14 »
1. CentOS 5 only until php 5.5. With CentOS 7.0, possible php until 7.0 and apache 2.4
2. Don't use other repos (like remi, rpmforge and others) because possibility conflict with mratwork repo
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.07 seconds with 19 queries.

web stats analysis