安装php时提示chmod:无法访问“/usr/local/apache2/modules/libphp5.so”
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了安装php时提示chmod:无法访问“/usr/local/apache2/modules/libphp5.so”,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3183字,纯文字阅读大概需要5分钟。
内容图文
![安装php时提示chmod:无法访问“/usr/local/apache2/modules/libphp5.so”](/upload/InfoBanner/zyjiaocheng/235/8afe7c4b700c4b4ba88a81a772787bd2.jpg)
[root@localhost php-5.2.17]# make install Installing 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.la cp .libs/libphp5.a /usr/local/apache2/modules/libphp5.a chmod 644 /usr/local/apache2/modules/libphp5.a ranlib /usr/local/apache2/modules/libphp5.a libtool: 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 a .so rather than a libtool archive. chmod 755 /usr/local/apache2/modules/libphp5.so chmod: 无法访问 “/usr/local/apache2/modules/libphp5.so”: 没有那个文件或目录 apxs:Error: Command failed with rc=65536
make: *** [install-sapi] 错误 1
看错误提示是libphp5.so没有编译出来,但是为啥没编译出来呢?
configure参数如下:
./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版本为2.2.14
php版本为5.2.17
搜了N多解决办法都没解决问题,包括libtool的版本,apache的编译参数等
回复内容:
configure和make都正常,在make install的时候就会出错,错误提示如下:
[root@localhost php-5.2.17]# make install Installing 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.la cp .libs/libphp5.a /usr/local/apache2/modules/libphp5.a chmod 644 /usr/local/apache2/modules/libphp5.a ranlib /usr/local/apache2/modules/libphp5.a libtool: 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 a .so rather than a libtool archive. chmod 755 /usr/local/apache2/modules/libphp5.so chmod: 无法访问 “/usr/local/apache2/modules/libphp5.so”: 没有那个文件或目录 apxs:Error: Command failed with rc=65536
make: *** [install-sapi] 错误 1
看错误提示是libphp5.so没有编译出来,但是为啥没编译出来呢?
configure参数如下:
./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版本为2.2.14
php版本为5.2.17
搜了N多解决办法都没解决问题,包括libtool的版本,apache的编译参数等
看这个链接是否可以解决跟你的错误是一样的。
http://forums.fedoraforum.org/archive...
内容总结
以上是互联网集市为您收集整理的安装php时提示chmod:无法访问“/usr/local/apache2/modules/libphp5.so”全部内容,希望文章能够帮你解决安装php时提示chmod:无法访问“/usr/local/apache2/modules/libphp5.so”所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。