LINUX 下源码安装PHP的问题

来源:百度知道 编辑:UC知道 时间:2024/06/30 03:41:09
我执行./configure后提示警告:
*** WARNING *** |
| |
| You will be compiling the CGI version of PHP without any |
| redirection checking. By putting this cgi binary somewhere in |
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser. See |
| http://www.php.net/manual/security.php for more details.

谁能帮帮我啊?我弄了好几天都没弄好。
高手帮帮忙啊,我将感激不尽!

直接安装软件包套件多好

哎 用下面的命令configure , 编译安装php光用./configure是没用的

./configure --with-mysql \
--with-apxs2=/usr/share/httpd/bin/apxs \
--with-openssl \
--with-zlib \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-gettext \
--with-curl \
--with-ldap \
--with-mcrypt \
--enable-ftp \
--enable-fastcgi \
--enable-calendar \
--enable-magic-quotes \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-sysvmsg \
--enable-pcntl \
--enable-shmop \
--with-config-file-path=/etc

--with-apxs2=/usr/share/httpd/bin/apxs 这一行 参考你机器上的apxs文件位置,不可生硬照抄