Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8173 > unrolled thread
| Started by | bill <william@TechServSys.com> |
|---|---|
| First post | 2013-02-02 10:11 -0500 |
| Last post | 2013-02-02 12:21 -0500 |
| Articles | 7 — 2 participants |
Back to article view | Back to comp.lang.php
cURL bill <william@TechServSys.com> - 2013-02-02 10:11 -0500
Re: cURL bill <william@TechServSys.com> - 2013-02-02 10:14 -0500
Re: cURL - resolved bill <william@TechServSys.com> - 2013-02-02 10:53 -0500
Re: cURL bill <william@TechServSys.com> - 2013-02-02 11:16 -0500
Re: cURL bill <william@TechServSys.com> - 2013-02-02 11:30 -0500
Re: cURL "J.O. Aho" <user@example.net> - 2013-02-02 17:43 +0100
Re: cURL bill <william@TechServSys.com> - 2013-02-02 12:21 -0500
| From | bill <william@TechServSys.com> |
|---|---|
| Date | 2013-02-02 10:11 -0500 |
| Subject | cURL |
| Message-ID | <kejac0$69j$1@speranza.aioe.org> |
I built two servers and installed 10.04 LTS Ubuntu. Worked fine I upgraded both to 12.04 LTS Ubuntu. I just discovered that the production server does not have cURL support (phpinfo does not have it listed) while the development server does. how do I install cURL support on the production server ? bill
[toc] | [next] | [standalone]
| From | bill <william@TechServSys.com> |
|---|---|
| Date | 2013-02-02 10:14 -0500 |
| Message-ID | <kejagg$69j$2@speranza.aioe.org> |
| In reply to | #8173 |
On 2/2/2013 10:11 AM, bill wrote: > I built two servers and installed 10.04 LTS Ubuntu. Worked fine > I upgraded both to 12.04 LTS Ubuntu. > > I just discovered that the production server does not have cURL > support (phpinfo does not have it listed) while the development > server does. > > how do I install cURL support on the production server ? > > bill I forgot to mention that the ubuntu package handler (apt-get) reports that the most recent version of curl is installed. bill
[toc] | [prev] | [next] | [standalone]
| From | bill <william@TechServSys.com> |
|---|---|
| Date | 2013-02-02 10:53 -0500 |
| Subject | Re: cURL - resolved |
| Message-ID | <kejcqp$d3k$1@speranza.aioe.org> |
| In reply to | #8173 |
On 2/2/2013 10:11 AM, bill wrote: > I built two servers and installed 10.04 LTS Ubuntu. Worked fine > I upgraded both to 12.04 LTS Ubuntu. > > I just discovered that the production server does not have cURL > support (phpinfo does not have it listed) while the development > server does. > > how do I install cURL support on the production server ? > > bill more data from phpini: in the production server under Additional .ini files parsed, /etc/php5/apache2/confd/curl.ini is NOT listed. so - copied curl.ini to the production conf.d directory, restarted apache and all seems well. bill
[toc] | [prev] | [next] | [standalone]
| From | bill <william@TechServSys.com> |
|---|---|
| Date | 2013-02-02 11:16 -0500 |
| Message-ID | <keje5b$hlm$1@speranza.aioe.org> |
| In reply to | #8173 |
On 2/2/2013 10:11 AM, bill wrote: > I built two servers and installed 10.04 LTS Ubuntu. Worked fine > I upgraded both to 12.04 LTS Ubuntu. > > I just discovered that the production server does not have cURL > support (phpinfo does not have it listed) while the development > server does. > > how do I install cURL support on the production server ? > > bill gee, it seemed so easy. after moving the ini files to conf.d, I found I did not have the .so module. so I copied the curl.so from the development server to the production server. no joy. When I invoke php I get the error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/200090626/curl.so' - '/usr/lib/php5/200090626/curl.so: wrong ELF class: ELFCLASS32 in Unknown on line 0 ? bill
[toc] | [prev] | [next] | [standalone]
| From | bill <william@TechServSys.com> |
|---|---|
| Date | 2013-02-02 11:30 -0500 |
| Message-ID | <kejeuo$jnu$1@speranza.aioe.org> |
| In reply to | #8176 |
On 2/2/2013 11:16 AM, bill wrote: > On 2/2/2013 10:11 AM, bill wrote: >> I built two servers and installed 10.04 LTS Ubuntu. Worked fine >> I upgraded both to 12.04 LTS Ubuntu. >> >> I just discovered that the production server does not have cURL >> support (phpinfo does not have it listed) while the development >> server does. >> >> how do I install cURL support on the production server ? >> >> bill > > gee, it seemed so easy. > > after moving the ini files to conf.d, I found I did not have the > .so module. > > so I copied the curl.so from the development server to the > production server. > > no joy. When I invoke php I get the error: > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/lib/php5/200090626/curl.so' - > '/usr/lib/php5/200090626/curl.so: wrong ELF class: ELFCLASS32 in > Unknown on line 0 > > ? > bill Yeah, the production server is 65bit, development 32 bit. - I think ]bill
[toc] | [prev] | [next] | [standalone]
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Date | 2013-02-02 17:43 +0100 |
| Message-ID | <an4u15Fdci4U1@mid.individual.net> |
| In reply to | #8177 |
bill wrote: > On 2/2/2013 11:16 AM, bill wrote: >> On 2/2/2013 10:11 AM, bill wrote: >>> I built two servers and installed 10.04 LTS Ubuntu. Worked fine >>> I upgraded both to 12.04 LTS Ubuntu. >>> >>> I just discovered that the production server does not have cURL >>> support (phpinfo does not have it listed) while the development >>> server does. >>> >>> how do I install cURL support on the production server ? ssh to the server and run: sudo apt-get install php5-curl >> so I copied the curl.so from the development server to the >> production server. >> >> no joy. When I invoke php I get the error: >> PHP Warning: PHP Startup: Unable to load dynamic library >> '/usr/lib/php5/200090626/curl.so' - >> '/usr/lib/php5/200090626/curl.so: wrong ELF class: ELFCLASS32 in >> Unknown on line 0 > Yeah, the production server is 65bit, development 32 bit. - I think > ]bill I recommend you upgrade the development environment to be a copy of the live environment, to the package, if you install some package on one, then you should install it on the other, otherwise you never know what will work in production. A 32bit setup isn't the same as a 64bit and avoid of mixing 32bit and 64bit binaries (as you tried to do). -- //Aho
[toc] | [prev] | [next] | [standalone]
| From | bill <william@TechServSys.com> |
|---|---|
| Date | 2013-02-02 12:21 -0500 |
| Message-ID | <kejhuk$ses$1@speranza.aioe.org> |
| In reply to | #8178 |
On 2/2/2013 11:43 AM, J.O. Aho wrote: > bill wrote: >> On 2/2/2013 11:16 AM, bill wrote: >>> On 2/2/2013 10:11 AM, bill wrote: >>>> I built two servers and installed 10.04 LTS Ubuntu. Worked fine >>>> I upgraded both to 12.04 LTS Ubuntu. >>>> >>>> I just discovered that the production server does not have cURL >>>> support (phpinfo does not have it listed) while the development >>>> server does. >>>> >>>> how do I install cURL support on the production server ? > > ssh to the server and run: > sudo apt-get install php5-curl worked like a charm > > I recommend you upgrade the development environment to be a copy > of the live environment, to the package, if you install some > package on one, then you should install it on the other, > otherwise you never know what will work in production. A 32bit > setup isn't the same as a 64bit and avoid of mixing 32bit and > 64bit binaries (as you tried to do). > Heck, I thought they were identical. Many thanks, --bill
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web