Home > Backend Development > PHP Tutorial > Ubuntu中PhpMyAdmin装配说明

Ubuntu中PhpMyAdmin装配说明

WBOY
Release: 2016-06-13 13:25:30
Original
713 people have browsed it

Ubuntu中PhpMyAdmin安装说明

一.下载Apache/Php/PhpMyAdmin
相关下载地址如下:
Apche: http://httpd.apache.org/download.cgi
Php: http://cn.php.net/get/php-5.3.2.tar.gz/from/a/mirror
PhpMyAdmin: http://www.phpmyadmin.net/home_page/index.php

下载后的文件:

httpd-2.2.15.tar.gz
php-5.3.2.tar.gz
phpMyAdmin-3.3.1-all-languages.zip
Copy after login

?

二.安装


1.安装apache

tar -zxvf httpd-2.2.15.tar.gz
cd httpd-2.2.15
./configure --prefix=/usr/local/apache/ --enable-so
make
make install
Copy after login

2.安装php

tar -zxvf php-5.3.2.tar.gz
cd php-5.3.2
./configure \
    --with-apxs2=/usr/local/apache/bin/apxs \
    --with-mysql=/usr/include/mysql \
    --prefix=/usr/local/apache/php \
    --with-config-file-path=/usr/local/apache/php \
make
make install
Copy after login

若系统中没有/usr/include/mysql,需要安装libmysqlclient15-dev,通过apt来安装
apt-get install libmysqlclient15-dev


3.安装PhpMyAdmin

unzip phpMyAdmin-3.3.1-all-languages.zip
mv phpMyAdmin-3.3.1-all-languages phpadmin
mv phpadmin /usr/loca/apache/htdocs
Copy after login

若访问Php页面时,apache直接显示(无法解析)php的源码,修改apache的配置文件

/usr/local/apache/conf/http.conf
检查LoadModule php5_module路径是否正确
LoadModule php5_module??????? modules/libphp5.so
查找AddType,修改内容如下:

    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .htm
Copy after login

重启apache,

/usr/local/apache/bin/apachectl restart
Copy after login
?

测试php运行情况。


新建一个名为test.php的页面,内容如下:

<?php
    phpinfo();
?>
Copy after login

访问该页面,若能显示php版本的相关信息,说明安装正确,若不能正常显示,请检查个部分是否

安装正确。

?

关于PhpMyadmin的详细配置说明请参考phpmyadmin的文档。默认的情况下可以正常访问mysql。


Good Luck .

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template