熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> MySQL >> 正文

Linux上安裝Apache+Php+Mysql的過程[2]

2022-06-13   來源: MySQL 

  二.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

[]  []  


From:http://tw.wingwit.com/Article/program/MySQL/201311/29657.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.