php

位置:IT落伍者 >> php >> 浏览文章

Linux上安装Apache+Php+Mysql的过程[2]


发布日期:2018年05月16日
 
Linux上安装Apache+Php+Mysql的过程[2]

二.linux下安装apache

tar zxvf httpdtargz

cd httpd

/configure –prefix=/www enableso

make clean

make

make install

三.linux下安装php

tar zxvf phptargz

cd php

/configure prefix=/usr/local/php withmysql=/usr/local/mysql withapxs=/www/bin/apxs

make clean

make

make install

apache中加载php模块

Setup your phpini

cp phpinidist /usr/local/lib/phpini

Edit your httpdconf to load the PHP module

For PHP :

LoadModule php_module modules/libphpso

For PHP :

LoadModule php_module modules/libphpso

Tell Apache to parse certain extensions as PHP

AddType application/xhttpdphp php phtml

AddType application/xhttpdphpsource phps

[] []

               

上一篇:Linux下Apache+PHP+MySql+Cgi

下一篇:Linux下安装PHP,APACHE,MYSQL,PERL方法