安装步骤:
1 apache2.2.27安装
下载httpd-2.2.27.tar.gz
tar -zxvf httpd-2.2.27.tar.gz
cd httpd-2.2.27
./configure --prefix=/usr/local/apache --enable-rewrite --enable-so
make && make install
2 php5.4.4安装并安装php的memcache模块
下载php-5.4.4.tar.gz memcache-2.2.4.tgz
tar -zxvf php-5.4.4.tar.gz memcache-2.2.4.tgz
cd php-5.4.4
./configure --with-apxs2=/usr/local/apache/bin/apxs
make && make install
cp php.ini-development /usr/local/lib/php.ini
cd memcache-2.2.4
phpize
./configure --enable-memcache
make
make install
cp modules/memcache.so /usr/lib/php/modules/
vi /usr/local/lib/php.ini
增加2行
extension_dir="/usr/local/lib/php/extensions/no-debug-non-zts-20100525/"
extension=memcache.so
3 memadmin下载及部署
下载memadmin-1.0.12.tar.gz
tar -zxvf memadmin-1.0.12.tar.gz
cp -R memadmin /usr/local/apache/htdocs/
4 配置apache及php
cd /usr/local/apache
mkdir conf.d
cd conf.d
vi php.conf
增加如下内容
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
vi /usr/local/apache/conf/httpd.conf
增加如下内容
Include conf.d/*.conf
修改如下内容
User daemon
Group daemon
改为
User apache
Group apache
5 启动apache
/usr/local/apache/bin/apachectl start
6 访问地址
xxx.xxx.xxx.xxx/memadmin