When installing php, the system prompts chmod: "/usr/local/apache2/modules/libphp5.so" cannot be accessed"

Source: Internet
Author: User
Tags sapi
Both configure and make are normal, and errors will occur during makeinstall. The error prompt is as follows: {code ...} make: *** [install-sapi] Error 1. The error message is: libphp5.so is not compiled, but why? The configure parameters are as follows: {code...}... configure and make are both normal, and errors will occur during make install. The error prompt is as follows:

[Root @ localhost php-5.2.17] # make installInstalling php sapi module: apache2handler/usr/local/apache2/build/instdso. sh SH_LIBTOOL = '/usr/local/apache2/build/libtool' libphp5.la/usr/local/apache2/modules/usr/local/apache2/build/libtool -- mode = install cp libphp5.la /usr/local/apache2/modules/cp. libs/libphp5.lai/usr/local/apache2/modules/libphp5.lacp. libs/libphp5.a/usr/local/apache2/modules/libphp 5. achmod 644/usr/local/apache2/modules/libphp5.aranlib/usr/local/apache2/modules/libphp5.alibtool: install: warning: remember to run 'libtool -- finish/usr/local/src/php-5.2.17/libs' Warning! Dlname not found in/usr/local/apache2/modules/libphp5.la. assuming installing. so rather than a libtool archive. chmod 755/usr/local/apache2/modules/libphp5.sochmod: unable to access "/usr/local/apache2/modules/libphp5.so": there is no such file or directory apxs: Error: command failed with rc = 65536

Make: *** [install-sapi] Error 1

The error message is: libphp5.so is not compiled, but why is it not compiled?

The configure parameters are as follows:

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php/etc --with-openssl --with-zlib --enable-bcmath --with-bz2 --with-curl --enable-ftp --with-gd --enable-gd-native-ttf --with-gettext --with-mhash --enable-mbstring --with-mcrypt --enable-soap --enable-zip --with-iconv=/usr/local/libiconv --with-mysql=/usr/local/mysql

Apache version is2.2.14
Php version is5.2.17

After searching for N, the solution has not been solved, including the libtool version and apache compilation parameters.

Reply content:

Both configure and make are normal, and errors will occur during make install. The error message is as follows:

[Root @ localhost php-5.2.17] # make installInstalling php sapi module: apache2handler/usr/local/apache2/build/instdso. sh SH_LIBTOOL = '/usr/local/apache2/build/libtool' libphp5.la/usr/local/apache2/modules/usr/local/apache2/build/libtool -- mode = install cp libphp5.la /usr/local/apache2/modules/cp. libs/libphp5.lai/usr/local/apache2/modules/libphp5.lacp. libs/libphp5.a/usr/local/apache2/modules/libphp 5. achmod 644/usr/local/apache2/modules/libphp5.aranlib/usr/local/apache2/modules/libphp5.alibtool: install: warning: remember to run 'libtool -- finish/usr/local/src/php-5.2.17/libs' Warning! Dlname not found in/usr/local/apache2/modules/libphp5.la. assuming installing. so rather than a libtool archive. chmod 755/usr/local/apache2/modules/libphp5.sochmod: unable to access "/usr/local/apache2/modules/libphp5.so": there is no such file or directory apxs: Error: command failed with rc = 65536

Make: *** [install-sapi] Error 1

The error message is: libphp5.so is not compiled, but why is it not compiled?

The configure parameters are as follows:

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php/etc --with-openssl --with-zlib --enable-bcmath --with-bz2 --with-curl --enable-ftp --with-gd --enable-gd-native-ttf --with-gettext --with-mhash --enable-mbstring --with-mcrypt --enable-soap --enable-zip --with-iconv=/usr/local/libiconv --with-mysql=/usr/local/mysql

Apache version is2.2.14
Php version is5.2.17

After searching for N, the solution has not been solved, including the libtool version and apache compilation parameters.

Check whether the link can solve your error.
Http://forums.fedoraforum.org/archive...

Contact Us

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.