使PHP与红帽子5上的httpd一起使用linux linux
问题描述:
我想从linux上安装PHP。使PHP与红帽子5上的httpd一起使用linux linux
我如何使它与当前活动的httpd服务一起工作?我不想为相同的目的安装apachectl。
根据这本书我在那里读书的命令给出:
./configure --prefix=/usr/local/php \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-apxs2=/usr/local/apache2/bin/apxs
make
make install
我如何使PHP从源安装,只有我的httpd服务? 我的httpd.conf文件位于:/etc/httpd/conf/httpd.conf位置..
PS:我是linux环境的新手。
任何帮助赞赏!
答
试试这个,在命令行运行:
updatedb
locate apxs
比增加apxs
路径configure
./configure --prefix=/usr/local/php \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-apxs2=[full_path]apxs
如果updatedb
和locate
没有安装,运行yast
和安装包findutils-locate
。之后,updatedb
和locate
将会在您的系统上。