**ERROR** Could not configure PHP build

#1
Hello guys,
I am trying to compile php 5.4.4 via admin panel but every time i receive an error,
I read all troubleshooting guides on LiteSpeed Wiki but still the problem exists:
this is the part of error log, i can not paste all error messages

HTML:
**LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1440316306.1.log
[1mConfiguring extensions[m
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... yes
checking for Kerberos support... yes
checking for krb5-config... /usr/bin/krb5-config
checking for DSA_get_default_method in -lssl... no
checking for X509_free in -lcrypto... yes
checking for pkg-config... /usr/bin/pkg-config
checking for PCRE headers location... /usr/include
checking for PCRE library location... configure: error: Could not find libpcre.(a|so) in /usr
**ERROR** Could not configure PHP build

Copyright © 2002-2015 LiteSpeed Technologies, Inc. All Rights Reserved.
 
#3
yum is the best way, i run on Ubuntu 14.0.4 LTS, i have installed yum before but don't know how i activate repositories


Code:
root@test:~# yum install pcre-devel
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
You can enable repos with yum-config-manager --enable <repo>
 
#5
Hi NiteWave,
Thank you for the help but i also tested that command :


Code:
root@test:~# apt-get install pcre-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pcre-devel
 
#6
I used command : apt-cache search pcre
These packages listed, which should be installed?
Code:
root@test:~# apt-cache search pcre
libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module)
libpcre3 - Perl 5 Compatible Regular Expression Library - runtime files
libpcre3-dbg - Perl 5 Compatible Regular Expression Library - debug symbols
libpcre3-dev - Perl 5 Compatible Regular Expression Library - development files
libpcrecpp0 - Perl 5 Compatible Regular Expression Library - C++ runtime files
php5-cgi - server-side, HTML-embedded scripting language (CGI binary)
php5-cli - command-line interpreter for the php5 scripting language
postfix-pcre - PCRE map support for Postfix
apertium - Shallow-transfer machine translation engine
awffull - web server log analysis program
cl-ppcre - Portable Regular Express Library for Common Lisp
clisp-module-pcre - clisp module that adds libpcre support
exonerate - generic tool for pairwise sequence comparison
gambas3-gb-pcre - Gambas regexp component
libapache2-mod-php5filter - server-side, HTML-embedded scripting language (apache 2 filter module)
libemail-sender-transport-smtp-tls-perl - Perl module for sending email using TLS
libghc-pcre-light-dev - Haskell library for Perl 5-compatible regular expressions
libghc-pcre-light-doc - library documentation for pcre-light; documentation
libghc-pcre-light-prof - pcre-light library with profiling enabled; profiling libraries
libghc-regex-base-dev - GHC library providing an API for regular expressions
libghc-regex-base-doc - API documentation for regex-base Haskell library
libghc-regex-base-prof - GHC profiling library providing an API for regular expressions
libghc-regex-pcre-dev - Perl-compatible regular expressions
libghc-regex-pcre-doc - Perl-compatible regular expressions; documentation
libghc-regex-pcre-prof - Perl-compatible regular expressions; profiling libraries
libpcre++-dev - C++ wrapper class for pcre (development)
libpcre++0 - C++ wrapper class for pcre (runtime)
libpcre-ocaml - OCaml bindings for PCRE (runtime)
libpcre-ocaml-dev - OCaml bindings for PCRE (Perl Compatible Regular Expression)
libphp5-embed - HTML-embedded scripting language (Embedded SAPI library)
lua-rex-pcre - Perl regular expressions library for the Lua language
lua-rex-pcre-dev - PCRE development files for the Lua language
lwatch - Simple log colorizer
pcregrep - grep utility that uses perl 5 compatible regexes.
php5-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
pike7.8-pcre - PCRE module for Pike
sqlite3-pcre - Perl-compatible regular expression support for SQLite
:
 
#7
I found the location of libpcre.a with the command
find / -type f \( -name "libpcre.a" -o -name "libpcre.so" \)
Location is here: /usr/lib/x86_64-linux-gnu/libpcre.a
Where should i copy it?
 

mistwang

LiteSpeed Staff
#9
You should install "development files" for anything missing during running "configure".
In this case, it should be

apt-get install libpcre3-dev
 
#10
Hello friends,

I appreciate your followups, currently i changed OS to Centos7.1 and LiteSpeed now is perfectly running on it,
Just now i want to add Xcache support to LiteSpeed and also want to hear your recommendation about object caching, which is better? Xcache or LS built in cache engine?
 

Pong

Administrator
Staff member
#11
For php 5.4.x or lower version, APC can be used for Opcode cache as well as Value cache. It doesn't support php 5.5 or higher version and it has been replaced by Zend Opcache.

Xcache and Zend Opcode cache are actively maintained for all PHP versions. Zend opcache has PHP opcode cache only. Xcache has php opcode cache as well as some variable cache. You probably can try Xcache to see how it is going.

LiteSpeed Cache is httpd level of file/page cache, like Apache_mod_cache or Varnish, different than Xcache/Opcache/APC.
 
#12
Thank you Pong, the information was very useful.
Now i enabled Suexec, but it seems that Xcache is not working and saw it is not activated on PHP info page but i installed xcache and previously just was working fine with Apache.
How should i activate xcache ?
 
#15
likely. I'm not sure since not familiar with Plesk.

anyway, why not have a try ? it's safe. after copy, you may need restart litespeed, then check php info page again, see if xcache is enabled or not.
 
#16
I copied it, it doesn't work.
Even i have added "extension=xcache.so" to file : /var/www/vhosts/system/d**********.net/etc/php.ini and restarted lsws but doesn't take effect
Your help to activate Xcache and Memcached would be appreciated.
I use Centos7.1 64 bit with Plesk CP and PHP 5.5.28
 
Top