Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1950849
  • 博文数量: 176
  • 博客积分: 1857
  • 博客等级: 上尉
  • 技术积分: 2729
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-14 22:55
个人简介

吾生有涯,而知无涯,适当止学.循序渐进,步步提升 Talk is cheap, show me the code.

文章分类

全部博文(176)

文章存档

2019年(1)

2018年(14)

2017年(20)

2016年(31)

2015年(15)

2014年(5)

2013年(10)

2012年(80)

分类: Mysql/postgreSQL

2012-08-17 17:34:48

Apache安装:

tar zxvf httpd-2.2.22.tar.gz

cd httpd-2.2.22

./configure --prefix=/usr/local/apache --enable-deflate --enable-headers  --

enable-so --enable-rewrite --with-mpm=prefork

make

make install


/usr/local/apache/bin/apachectl start(开启apache)

现在测试一下, ,你会看到apache的默认界面


php安装:

tar zxvf php-5.4.5.tar.gz

cd php-5.4.5

./configure \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysqli=/usr/local/mysql55/bin/mysql_config \ (这是安装了mysql要配置的)
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-iconv=/usr/local/lib/ \
--with-curl \
--with-zlib \
--with-libxml-dir \
--enable-mbstring \
--enable-static \
--enable-gd-native-ttf \
--disable-phar \
--disable-pdo \
--disable-tokenizer \
--disable-posix \
--with-iconv \
--without-sqlite \
--without-sqlite3

make

make install

配置php.ini
cp php.ini-development /usr/local/lib/php.ini

编辑httpd.conf (vi /usr/local/apache/conf/httpd.conf)
LoadModule php5_module modules/libphp5.so



    SetHandler application/x-httpd-php


测试是否安装成功:
放入到/usr/local/apache/htdocs/目录下:
test.php


phpinfo();

?>

安装phpMyAdmin:

tar zxvf phpMyAdmin-3.5.2.2-all-languages.tar.gz

cd phpMyAdmin-3.5.2.2-all-languages

mv phpMyAdmin-3.5.2.2-all-languages /usr/local/apache/htdocs/


cp config.sample.inc.php config.inc.php

配置 config.inc.php

只需修改你要配置的host:

$cfg['Servers'][$i]['host'] = '10.0.17.154';

之后,就大功告成
阅读(1353) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

zhangshengdong2012-08-17 17:37:13

php细节:

编译error:
configure: error: Please reinstall the iconv library.

解决办法:--with-iconv

关于默认的socket

细节:
可以修改mysql_configure

修改里面的代码
----
socket='/data/mysqldata/3306/mysql.sock'
---

ln -s /data/mysqldata/3306/mysql.sock /tmp/mysql.sock