phpMyAdmin安装

1. apache安装

版本:2.4.10 

下载地址:http://httpd.apache.org/  

安装文档:http://httpd.apache.org/docs/current/install.html
    前置条件: 

apr-1.5.1.tar.gz  apr-util-1.5.4.tar.gz  apr-iconv-1.2.1.tar.gz

下载地址:http://apr.apache.org/download.cgi

cd apr
./configure --prefix=/usr/local/apr
make && make install
cd apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install

perl l-5.20.1

pcre http://www.pcre.org/
http://www.perl.org/get.html#unix_like


   ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/
   make && make install


  安装 apache 扩展
  yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql


-- 服务配置,自启动
cp  /usr/local/apache2/bin/apachectl /etc/init.d/httpd
vim /usr/local/apache2/conf/httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
service httpd start
chkconfig --add httpd    //注册为自启动服务


2. php 5.6.0

下载地址:http://php.net/downloads.php
安装依赖:yum -y install libxml2-devel

编译安装:

./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php/etc

make && make install

修改配置文件:
cp ./php.ini-development /usr/local/php/lib/php.ini
vim /usr/local/apache/conf/httpd.conf
以下可能自动添加:
LoadModule php5_module   modules/libphp5.so
    在 AddType application/x-gzip .gz .tgz 后面添加一行:
    AddType application/x-httpd-php .php

安装 php 扩展

yum -y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc



3. phpmyadmin 4.2.9 

http://phpmyadmin.net/home_page/downloads.php/

拷贝到相应目录下


4. 测试

在浏览器中输入  http://localhost/phpMyAdmin/index.php











 
列出所有端口
 netstat -ntlp | grep 80

你可能感兴趣的:(mysql,phpMyAdmin,apa,Linux,数据库)