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)
现在测试一下,http://IP ,你会看到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
<?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';
之后,就大功告成
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)
现在测试一下,http://IP ,你会看到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
<?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';
之后,就大功告成