apache
tar xf httpd-2.2.19.tar
cd httpd-2.2.19 ls
编译: ./configure –prefix=/usr/loacl/apache –sysconfdir=/etc/httpd –enable-ssl –enable-modules=most –enable-mods-shared=most –enable-so
make
make install
弄一个httpd,
vi /etc/init.d/httpd apachectl=/usr/local/apache/bin/apachectl
httpd=/usr/local/apache/bin/httpd
cd /etc/httpd ls
vi /etc/httpd/conf/httpd.conf
启动 path=$path:/usr/local/最宝贵的话是什么成语apache/bin
apachectl start
chkconfig –add httpd
cp httpd /etc/init.d/httpd
可能会出现不能启动
vi /etc/httpd/conf/httpd.conf pidfile “/var/run/httpd.pid”
killall httpd
chkconfig –level 2345 httpd on
php
tar xf php-5.3.6.tar
cd php-5.3.6
编译 ./configure –prefix=/usr/local/php5 –sysconfdir=/etc/php –enable-mb历历在目的近义词string –with-apxs2=/usr/local/apache/bin/apxs –with-mysql=/usr/local/mysql
make
make install
cp php.ini-production /etc/php/php.ini
cd /etc/php
vi php.ini
cd php-5.3.6
cp php.ini-production /usr/loacl/ph5/lib/php.ini
此时还不能和apache一起工作
vi /etc/httpd/conf/httpd.conf addtype applicati加入部门的原因on/x-httpd-php .php addtype application/x-h第三种爱情 电影ttpd-php-source .phps
此时还无法识别index.php
添加<ifmodule dir_module>directory index.php
rvice httpd start
cd /usr/local/apache/htdocs
<?php
$link=mysql_connect(‘127.0.0.1′,’root’,”);
if ($link)
echo “sucess”
el
echo “failureR万能素材21;
?>
本文出自 “linux” 博客
本文发布于:2023-04-07 06:26:15,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/e3e8438d8568b86a9d3dda842b04d700.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:php的安装.doc
本文 PDF 下载地址:php的安装.pdf
留言与评论(共有 0 条评论) |