LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [Resolved] php 5.3.3 with curl not working

Reply
 
Thread Tools Display Modes
  #1  
Old 10-06-2010, 07:08 PM
sicute sicute is offline
New Member
 
Join Date: Oct 2010
Posts: 6
Unhappy [Resolved] php 5.3.3 with curl not working

hi ..
i try recomplier php become 5.3.3 and curl , i using compile php in admin section here my config :

'./configure' '--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--enable-curl' '--enable-suhosin' '--with-litespeed'

i check curl not active also i have error notice
Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/local/lsws/DEFAULT/html/phpinfo.php on line

Last edited by NiteWave; 10-07-2010 at 02:26 AM.. Reason: wrong word
Reply With Quote
  #2  
Old 10-06-2010, 07:35 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
the warning is irrelative to curl. add
date.timezone="America/Los_Angeles" etc will eliminate the warning message.

there should be no problem for 5.3.3 with curl -- I just built it a few days ago.

please record the error message during php build.
Reply With Quote
  #3  
Old 10-06-2010, 08:16 PM
sicute sicute is offline
New Member
 
Join Date: Oct 2010
Posts: 6
here some log complie

Thank you for using PHP.

Notice: Following unknown configure options were used:

--enable-track-vars
--enable-curl
--enable-openssl
--with-curl-dir=..
--enable-suhosin

Check './configure --help' for available options


Libraries have been installed in:
/usr/local/lsws/phpbuild/php-5.3.3/suhosin-0.9.32.1/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing Suhosin extension
Installing shared extensions: /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/
chown -R lsadm:lsadm /usr/local/lsws/phpbuild/php-5.3.3/suhosin-0.9.32.1

==============================================
Suhosin extension build complete
==============================================
Wed Oct 6 20:04:55 PDT 2010

**COMPLETE**


i check in my script php

Checking environment...

* PHP version: 5.3.3
* cURL version: not available

Environment check failed


you can check direct my phpinfo in pojokdomain dot us/phpinfo.php

i using ubuntu 10 update online fresh

I try downgrade php bellow php 5.3.3 , not working same proble with autoconf 2.6


Quote:
Changing to build directory /usr/local/lsws/phpbuild/php-5.2.13
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf version 2.65 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running vcsclean for you.
To avoid this, install autoconf-2.13.
Can't figure out your VCS, not cleaning.
rebuilding configure
ext/pdo_dblib/config.m4:55: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
aclocal.m4:2738: PHP_CHECK_PDO_INCLUDES is expanded from...
ext/pdo_firebird/config.m4:43: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/pdo_mysql/config.m4:135: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/pdo_oci/config.m4:231: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/pdo_odbc/config.m4:42: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/pdo_pgsql/config.m4:108: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/pdo_sqlite/config.m4:14: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/sqlite/config.m4:50: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
ext/pdo_dblib/config.m4:55: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
aclocal.m4:2738: PHP_CHECK_PDO_INCLUDES is expanded from...
ext/pdo_firebird/config.m4:43: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/pdo_mysql/config.m4:135: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/pdo_oci/config.m4:231: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/pdo_odbc/config.m4:42: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/pdo_pgsql/config.m4:108: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/pdo_sqlite/config.m4:14: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
ext/sqlite/config.m4:50: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
Configuring PHP build (2-3 minutes)
./configure '--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--enable-curl' '--enable-openssl' '--enable-suhosin' '--with-litespeed'
cat: confdefs.h: No such file or directory
./configure: 465: ac_fn_c_try_run: not found
./configure: 465: 5: Bad file descriptor
./configure: 465: :: checking for pthreads_cflags: not found
./configure: 465: 6: Bad file descriptor
./configure: 12050: checking for dirent.h that defines DIR... : not found
eval: 1: Bad substitution
**ERROR** Could not configure PHP build
__________________
get free
Reply With Quote
  #4  
Old 10-06-2010, 08:46 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
yes, the error message tell the cause:
Quote:
Notice: Following unknown configure options were used:
--enable-curl
--with-curl-dir=..
checked the PHP document,
http://www.php.net/manual/en/curl.installation.php

no --enable-curl option, instead, it's --with-curl
Reply With Quote
  #5  
Old 10-06-2010, 11:29 PM
sicute sicute is offline
New Member
 
Join Date: Oct 2010
Posts: 6
same curl not active event using --enable-curl or --with-curl-dir=/usr/lib/libcurl.a
may be i try manualy complie without using litespeed compiler.
__________________
get free
Reply With Quote
  #6  
Old 10-07-2010, 01:28 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
to be clear, must include
Quote:
--with-curl
and not use
Quote:
--enable-curl
--with-curl-dir
there are just Unknown options.
Reply With Quote
  #7  
Old 10-07-2010, 02:21 AM
sicute sicute is offline
New Member
 
Join Date: Oct 2010
Posts: 6
thanks now is working after 2 day

her my config

/configure' '--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--enable-curl' '--with-curl' '--enable-suhosin' '--with-litespeed'
__________________
get free
Reply With Quote
  #8  
Old 01-19-2012, 11:10 PM
agriz agriz is offline
Member
 
Join Date: Nov 2011
Posts: 25
I reintalled again.
I think curl is missing. I am re-compiling php again with curl.

But in the meantime, the site takes very very long time to load.
Finally sometimes shows output without css and sometimes with proper design.

I am loading the site as site.com:2080

(Wrong post)
http://www.litespeedtech.com/support...streply&t=5637
Reply With Quote
  #9  
Old 01-20-2012, 05:10 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by agriz View Post
...
But in the meantime, the site takes very very long time to load.
Finally sometimes shows output without css and sometimes with proper design.

I am loading the site as site.com:2080

...
You may have path/to/css hardcode in the page so that those css files will be missing when serve from :2080.

to troubleshoot long page loading, use firebug to get the loading breakdown of each resource of the page to see the bottleneck.
Reply With Quote
Reply

Tags
curl, error, install, php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:51 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.