Linux服务器配置笔记:安装Apache与PHP
小贴士:Linux下启动mysql命令
必须要root帐号
#su
#(输入密码)
#/etc/init.d/mysql start|stop|restart|reload
tar zxvf httpd-2.0.59.tar.gz
Linux下安装Apache
cd /home/wj
tar -zxvf httpd-2.0.54.tar.gz
mv httpd-2.0.54 apache
cd apache
./configure --prefix=/usr/local/apache2 --enable-module=so
make
make install
[一开始没有安装GCC]
启动Apache
在apache的目录bin下,运行:
./apachectl start
停止:
./apachectl stop
重起:
./apachectl resart
安装php
./configure --prefix=/usr/local/php5
--with-apxs2=/usr/local/apache2/bin/apxs
--with-config-file-path=/usr/local/lib
--enable-track-vars
--with-xml
--with-MySQL
make
make install
相关推荐
airfish000 2020-09-11
huangzonggui 2020-06-05
zhangwentaohh 2020-05-29
roddex00 2020-04-20
sanshamo 2020-03-27
furongwei 2020-03-26
zlsh00 2020-03-23
oLeiShen 2020-03-07
sapliang 2020-02-22
leodengzx 2020-01-31
meylovezn 2020-01-08
vanturman 2019-12-27
leodengzx 2019-12-27
leodengzx 2019-12-18
sapliang 2019-12-16
furongwei 2019-12-15
wq0 2019-12-14