I install the LAMP environment, php-xxx-.tar.gz the extracted directory/home/default7/lamp/php-5.5.13
directory where PHP is installed/USR/LOCAL/PHP5
Then after I install, open phpMyAdmin, error prompt:
Fatal error:call to undefined function mb_detect_encoding () in/usr/local/apache2/htdocs/phpmyadmin/libraries/ Php-gettext/gettext.inc on line 177
Command prompt to view the modules that PHP has installed:
mbstring is there.。
[Root@localhost php-5.5.13]# Php-m
[PHP Modules]
bz2
Calendar
Core
CType
Curl
Date
Ereg
Exif
FileInfo
Filter
Ftp
GetText
Gmp
Hash
Iconv
Json
Libxml
Mbstring
Openssl
Pcntl
Pcre
Phar
ReadLine
Reflection
Session
Shmop
SimpleXML
Sockets
Spl
Standard
Tokenizer
Xml
Zip
Zlib
[Zend Modules]
view phpinfo, related to several:
PHP Version 5.5.13Configure Command './configure '--with-apxs2=/usr/local/apache2/bin/apxs '--with-mysql '--prefix =/usr/local/php5 ' Server API Apache 2.0 handlervirtual Directory support enabledconfiguration File (php.ini) Path/usr/loc al/php5/libloaded Configuration File/usr/local/php5/lib/php.iniscan this dir for additional. ini files (none) additional . ini files parsed (none) extension_dir/usr/local/php5/lib/php/extensions/no-debug-zts-20121212/usr/local/php5/lib/ php/extensions/no-debug-zts-20121212
To view the PHP5 installed extension directory (empty):
[Root@localhost ext]# ll/usr/local/php5/lib/php/extensions/no-debug-zts-20121212total 488-rwxr-xr-x. 1 root root 495775 June 01:01 opcache.so[root@localhost ext]# ll/usr/local/php5/lib/php/extensionstotal 4drwxr-xr-x. 2 root root 4096 June 01:01 no-debug-zts-20121212
But in the post-installation directory there is another directory (directory/usr/local/php5/include/php/ext):
There are mbstring in the installation folder (/home/default7/lamp/php-5.5.13/ext):
[Root@localhost ext]# lltotal 328drwxr-xr-x. 4 1001 1001 4096 May 17:06 bcmathdrwxr-xr-x. 3 1001 1001 4096 May 17:06 bz2drwxr-xr-x. 3 1001 1001 4096 May 17:06 calendardrwxr-xr-x. 3 1001 1001 4096 May 17:06 com_dotnetdrwxr-xr-x. 4 1001 1001 4096 June 00:27 Ctypedrwxr-xr-x. 3 1001 1001 4096 May 17:06 curldrwxr-xr-x. 5 1001 1001 4096 June 00:25 Datedrwxr-xr-x. 6 1001 1001 4096 May 17:06 dbadrwxr-xr-x. 5 1001 1001 4096 June 00:27 Domdrwxr-xr-x. 4 1001 1001 4096 May 17:06 enchantdrwxr-xr-x. 5 1001 1001 4096 June 00:25 Eregdrwxr-xr-x. 3 1001 1001 4096 May 17:06 exif-rwxr-xr-x. 1 1001 1001 8174 17:06 Ext_skel-rw-r--r--. 1 1001 1001 1524 May 17:06 ext_skel_win32.phpdrwxr-xr-x. 5 1001 1001 4096 June 00:27 Fileinfodrwxr-xr-x. 5 1001 1001 4096 June 00:28 Filterdrwxr-xr-x. 3 1001 1001 4096 May 17:06 ftpdrwxr-xr-x. 4 1001 1001 4096 May 17:06 gddrwxr-xr-x. 3 1001 1001 4096 May 17:06 gettextdrwxr-xr-x. 3 1001 1001 4096 may 17:06 gmpdrwxr-xr-x. 4 1001 1001 4096 June 00:43 Hashdrwxr-xr-x. 4 1001 1001 4096 June 00:28 Iconvdrwxr-xr-x. 3 1001 1001 4096 May 17:06 imapdrwxr-xr-x. 3 1001 1001 4096 May 17:06 interbasedrwxr-xr-x. 1001 1001 4096 May 17:06 intldrwxr-xr-x. 4 1001 1001 4096 June 00:28 Jsondrwxr-xr-x. 3 1001 1001 4096 May 17:06 ldapdrwxr-xr-x. 4 1001 1001 4096 June 00:26 Libxmldrwxr-xr-x. 6 1001 1001 4096 May 17:06 mbstringdrwxr-xr-x. 3 1001 1001 4096 May 17:06 mcryptdrwxr-xr-x. 2 1001 1001 4096 May 17:06 mssqldrwxr-xr-x. 4 1001 1001 4096 June 00:28 Mysqldrwxr-xr-x. 3 1001 1001 4096 May 17:06 mysqlidrwxr-xr-x. 3 1001 1001 4096 June 00:32 Mysqlnddrwxr-xr-x. 3 1001 1001 4096 May 17:06 oci8drwxr-xr-x. 3 1001 1001 4096 May 17:06 odbcdrwxr-xr-x. 5 1001 1001 4096 June 00:35 Opcachedrwxr-xr-x. 3 1001 1001 4096 May 17:06 openssldrwxr-xr-x. 3 1001 1001 4096 May 17:06 pcntldrwxr-xr-x. 5 1001 1001 4096June 00:26 Pcredrwxr-xr-x. 4 1001 1001 4096 June 00:28 Pdodrwxr-xr-x. 3 1001 1001 4096 May 17:06 pdo_dblibdrwxr-xr-x. 3 1001 1001 4096 May 17:06 pdo_firebirddrwxr-xr-x. 3 1001 1001 4096 May 17:06 pdo_mysqldrwxr-xr-x. 3 1001 1001 4096 May 17:06 pdo_ocidrwxr-xr-x. 3 1001 1001 4096 May 17:06 pdo_odbcdrwxr-xr-x. 3 1001 1001 4096 May 17:06 pdo_pgsqldrwxr-xr-x. 4 1001 1001 4096 June 00:29 Pdo_sqlitedrwxr-xr-x. 3 1001 1001 4096 May 17:06 pgsqldrwxr-xr-x. 5 1001 1001 4096 June 01:41 Phardrwxr-xr-x. 4 1001 1001 4096 June 00:29 Posixdrwxr-xr-x. 3 1001 1001 4096 May 17:06 pspelldrwxr-xr-x. 3 1001 1001 4096 May 17:06 readlinedrwxr-xr-x. 2 1001 1001 4096 May 17:06 recodedrwxr-xr-x. 4 1001 1001 4096 June 00:29 Reflectiondrwxr-xr-x. 4 1001 1001 4096 June 00:29 Sessiondrwxr-xr-x. 3 1001 1001 4096 May 17:06 shmopdrwxr-xr-x. 5 1001 1001 4096 June 00:29 Simplexmldrwxr-xr-x. 3 1001 1001 4096 17:06 Skeletondrwxr-xR-x. 3 1001 1001 4096 May 17:06 snmpdrwxr-xr-x. 4 1001 1001 4096 May 17:06 soapdrwxr-xr-x. 3 1001 1001 4096 May 17:06 socketsdrwxr-xr-x. 6 1001 1001 4096 June 00:29 Spldrwxr-xr-x. 5 1001 1001 4096 June 00:26 Sqlite3drwxr-xr-x. 5 1001 1001 12288 June 01:41 Standarddrwxr-xr-x. 3 1001 1001 4096 May 17:06 sybase_ctdrwxr-xr-x. 3 1001 1001 4096 May 17:06 sysvmsgdrwxr-xr-x. 3 1001 1001 4096 May 17:06 sysvsemdrwxr-xr-x. 3 1001 1001 4096 May 17:06 sysvshmdrwxr-xr-x. 4 1001 1001 4096 May 17:06 tidydrwxr-xr-x. 4 1001 1001 4096 June 00:31 Tokenizerdrwxr-xr-x. 3 1001 1001 4096 May 17:06 wddxdrwxr-xr-x. 4 1001 1001 4096 June 00:31 Xmldrwxr-xr-x. 5 1001 1001 4096 June 00:31 Xmlreaderdrwxr-xr-x. 4 1001 1001 4096 May 17:06 xmlrpcdrwxr-xr-x. 5 1001 1001 4096 June 00:31 Xmlwriterdrwxr-xr-x. 3 1001 1001 4096 May 17:06 xsldrwxr-xr-x. 5 1001 1001 4096 May 17:06 zipdrwxr-xr-x. 3 1001 1001 4096 17:06 Zlib
The php.ini about Extension_dir are commented out, but the view phpinfo has MySQL PDO, which is all displayed.
Reply to discussion (solution)
Print_r (Get_extension_funcs (' mbstring '));
See what functions are available
Print_r (Get_extension_funcs (' mbstring '));
See what functions are available
It's empty.
That's not loaded anymore!
Load the words should be displayed
Array ([0] = mb_convert_case [1] = Mb_strtoupper [2] = mb_strtolower [3] = = Mb_language [4] = mb_internal_encoding [5] = mb_http_input [6] = mb_http_output [7] = = Mb_detect_order [8] => ; Mb_substitute_character [9] = Mb_parse_str [Ten] = Mb_output_handler [one] = Mb_preferred_mime_name [[] = Mb_strlen [] = Mb_strpos [+] = mb_strrpos [] = Mb_stripos [+] = Mb_strripos [[+] = mb_strstr [] = MB_STRRCHR [+] = mb_stristr [+] = MB_STRRICHR [+] = Mb_substr _count [[] = mb_substr [] = Mb_strcut [[] = mb_strwidth [+] = mb_strimwidth [+] = mb_convert_encoding [+] = mb_detect_encoding [+] = mb_list_encodings [+] = mb_encoding_aliases [+]-mb_convert_kana [+] = Mb_encode_mimeheader [+] = Mb_decode_mimeheader [[] = Mb_convert _variables [=&G]T mb_encode_numericentity [+] = mb_decode_numericentity [[38]] = Mb_send_mail [Panax Notoginseng] and mb_get_info [+] = (+)] = [Mb_check_encoding] = mb_regex_encoding [+] = mb_regex_set_options [+] = Mb_ereg [42] = Mb_eregi [[] = Mb_ereg_replace [] [46] [[]]/[+] = mb_eregi_replace [+] = Mb_split [[+] = mb_ereg_match [] = Mb_ereg_search [+] = Mb_ereg_search_pos [[] = MB _ereg_search_regs [Wuyi] = mb_ereg_search_init [*] = Mb_ereg_search_getregs [+] = Mb_ereg_search_getp > mbereg_replace [+]-mberegi_replace [[+]] [mbsplit] = Mbereg_match [+] = Mbereg_se arch [[+] = Mbereg_search_pos [+] = Mbereg_search_regs [] + mbereg_search_init [[+] = Mbere G_search_getregs [[] [Mbereg_search_getpos] = Mbereg_search_setpos)
That's not loaded anymore!
Load the words should be displayed
Installation decompression on/home/default7/lamp/php-5.5.13
Ready to install in catalog/USR/LOCAL/PHP5
I now have a point of question for Linux./configure:
If I was in the unzip directory for the first time./configure--prefix= ... && make && make test && make install ... has been installed.
1) Then I need to add extensions that are still going to this unzip directory./configure--prefix=. && make && do install recompile?
2) If this is the case, then I am not the first to unzip the folder./configure, whether the parameter must be fully aligned (is not the directory has memory function)
I didn't do it, I'm not saying it.
A lot of tutorials on the web, see more
I didn't do it, I'm not saying it.
A lot of tutorials on the web, see more
Later installation can be, re./configure installation.
However, before making clean, you will feel the decompression. The/configure directory remembers the installation process.
Re-installed with the--enable-mbstring after it is ready. It has been re-installed a couple of times before, but there is no clean, which may be the reason.
Make clean
./configure--PREFIX=/USR/LOCAL/PHP5
Make
Make Test
Make install
Phpinfo ();
?>
See if there are any mbstring, if not, please check php.ini