In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains how to expand and install linux php. Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "the expansion and installation of linux php"!
Gettext
1 enter the php source package first
Cd / opt/php-5.1.2/ext/gettext
2 generate configure files under the gettext folder
/ opt/php/bin/phpize
3 configuration compilation
. / configure-with-php-config=/opt/php/bin/php-config-with-gettext
Make & & make install
4 generate a gettext.so file under / opt/php/lib/php/extensions
5 determine the extension_dir=/opt/php/lib/php/extensions and extension=gettext.so in the php.ini file
6 recompile php
Zlib
1 enter the php source package first
Cd / opt/php-5.1.2/ext/zlib
2 generate configure files under the zlib folder
/ opt/php/bin/phpize
3 configuration compilation
. / configure-with-php-config=/opt/php/bin/php-config-with-zlib
Make & & make install
4 generate a zlib.so file under / opt/php/lib/php/extensions
5 determine the extension_dir=/opt/php/lib/php/extensions and extension=zlib.so in the php.ini file
6 recompile php
MbString
Configure mbstring extension
1 run / opt/php/bin/phpize
2 go to ext/mbstring in the php source code package
Cd / opt/php-5.1.2/ext/mbstring
. / configure-with-php-config=/opt/php/bin/php-config-enable-mbstring
Make & & make install
3 so a mbstring.so is generated under / opt/php/lib/php/extensions
4 then make sure that extension_dir points to the correct location and extension=php_mbstring.dll is turned on
So the mbstring is turned on.
Mod_rewrite
Take RHEL5 as an example
1) install apache for the first time and add the-- enable-rewrite option at compile time.
For example,. / configure-- prefix=/usr/local/apachel-- enable-so-- enable-mods-shared=all-- enable-rewrite-- enable-cache
2) add mod_rewrite module
# find mod_rewrite.c / / look for mod_rewrite.c files in the source installation directory of apache
Usually under httpd-2.28/modules/mappers.
# / opt/httpd/bin/apxs-c mod_rewrite.c / / apxs should specify an absolute path in the bin directory where you are currently using apache
# / opt/httpd/bin/apxs-I-a-n mod_rewrite mod_rewrite.la
If there are no errors, you should compile a mod_rewrite.so file in your apache's modules directory.
Edit the httpd.conf file to make sure that the load statement for mod_rewrite.so is included in httpd.conf, as follows:
LoadModule rewrite_module modules/mod_rewrite.so
At this point, your apache should already support rewrite.
Just restart apache.
At this point, I believe that you have a deeper understanding of the "extension and installation method of linux php". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.