Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
First, the source code packages such as php5.3, apache2.3, apr, curl, apr-util, and pcre are provided. The installation process in Linux is as follows: 1. installation preparation. First install the toolkit: apr :. /configure -- prefix/usr/local/aprmakeinstallapr-util :. /configure -- prefix/usr/first download the source code packages such as php5.3, apache2.3, apr, curl, apr-util, and pcre. The installation process in Linux is as follows:
1. installation preparation. Install the toolkit first:
./Configure -- prefix =/usr/local/apr
./Configure -- prefix =/usr/local/apr-util -- with-apr =/usr/local/apr
Sudo apt-get install g ++
./Configure -- prefix =/usr/local/pcre
./Configure -- prefix =/usr/local/curl
The following problems may occur during php installation.
Installing php sapi module: apache2handler
/Usr/local/apache2/build/instdso. sh SH_LIBTOOL =/usr/local/apr/build-1/libtool libphp5.la/usr/local/apache2/modules
/Usr/local/apr/build-1/libtool -- mode = install libphp5.la/usr/local/apache2/modules/
Libtool: install. libs/libphp5.lai/usr/local/apache2/modules/libphp5.la
Libtool: install. libs/libphp5.a/usr/local/apache2/modules/libphp5.a
Libtool: install: chmod 644/usr/local/apache2/modules/libphp5.a
Libtool: install: ranlib/usr/local/apache2/modules/libphp5.a
Libtool: install: warning: remember to run 'libtool -- finish/home/ligl/src/php5/libs
Warning! Dlname not found in/usr/local/apache2/modules/libphp5.la.
Assuming installing a. so rather than a libtool archive.
Chmod: cannot access'/usr/local/apache2/modules/libphp5.so: No such file or directory
Apxs: Error: Command failed with rc = 65536
Many people have encountered this problem on the internet. for details, refer to here. According to the final answer, it should be the php software package version. Previously, the file was downloaded in the gz format and changed to the bz2 format. everything works.
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to firstname.lastname@example.org. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.