仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 600|回复: 7
打印 上一主题 下一主题

[CentOS(社区)] 给大家带来mysql图形办理东西 phpMyAdmin装置

[复制链接]
愤怒的大鸟 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-1-14 20:43:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
欢迎大家来到仓酷云论坛![root@localhostmbstring]#wgethttp://jaist.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.0.8/phpMyAdmin-4.0.8-all-languages.tar.gz
[root@localhostmbstring]#tarxfphpMyAdmin-4.0.8-all-languages.tar.gz-C/www
[root@localhostmbstring]#chowndaemon.daemon/www/-R

[root@localhostmbstring]#serviceapacherestart


会见页面http://127.0.0.1/phpadmin/index.php

报错
Thembstringextensionismissing.PleasecheckyourPHPconfiguration.
毛病很分明php模块扩大,因为我已装好了php,又不想从头编译,以是就只能静态扩大
[root@localhostlogs]#cd/usr/src/php-5.3.27/ext/
[root@localhostext]#cdmbstring/

[root@localhostmbstring]#phpize-----天生configure等文件
[root@localhostmodules]#./configure--with-libdir=/usr/local/lib/php/extensions/no-debug-zts-20060613--with-php-config=/usr/local/bin/php-config

[root@localhostmodules]#make&&makeinstall

Installingsharedextensions:/usr/local/lib/php/extensions/no-debug-zts-20090626/----------这个路径就是php模块扩大的路径
Installingheaderfiles:/usr/local/include/php/


[root@localhostmodules]#pwd
/usr/src/php-5.3.27/ext/mbstring/modules
[root@localhostmodules]#ls
mbstring.so

接上去就是要修正php.ini了
[root@localhostmodules]#vi/usr/local/lib/php.ini
extension="/usr/local/lib/php/extensions/no-debug-zts-20090626/"
extension=mbstring.so
到场这两行,然后重启apache

再次会见http://127.0.0.1/phpadmin/index.php


受权一个tt用户
mysql>grantallon*.*tott@localhostidentifiedby123;
QueryOK,0rowsaffected(0.12sec)


mysql>flushprivileges;
QueryOK,0rowsaffected(0.00sec)
以tt用户登录



发明报错,短少mcrypt扩大。请反省PHP配

又是模块扩大,那就在打个补钉吧。
[root@localhostmcrypt]#pwd
/usr/src/php-5.3.27/ext/mcrypt

[root@localhostmcrypt]#ls
config.m4mcrypt.dspmcrypt.lotests
config.w32mcrypt_filter.cmcrypt.oTODO
CREDITSmcrypt_filter.lophp_mcrypt_filter.h
mcrypt.cmcrypt_filter.ophp_mcrypt.h

[root@localhostmcrypt]#phpize;ls
Configuringfor:
PHPApiVersion:20090626
ZendModuleApiNo:20090626
ZendExtensionApiNo:220090626
acinclude.m4config.w32mcrypt.lo
aclocal.m4CREDITSmcrypt.o
autom4te.cacheinstall-shmissing
buildltmain.shmkinstalldirs
config.guessMakefile.globalphp_mcrypt_filter.h
config.h.inmcrypt.cphp_mcrypt.h
config.m4mcrypt.dsprun-tests.php
config.submcrypt_filter.ctests
configuremcrypt_filter.loTODO
configure.inmcrypt_filter.o

如今就就能够编译了
[root@localhostmcrypt]#./configure--with-php-config=/usr/local/bin/php-config--with-mcrypt=/usr

[root@localhostmcrypt]#make
[root@localhostmcrypt]#makeinstall
Installingsharedextensions:/usr/local/lib/php/extensions/no-debug-zts-20090626/

[root@localhostmcrypt]#lsmodules/
mcrypt.so

[root@localhostmcrypt]#vi/usr/local/lib/php.ini

extension=mcrypt.so---------------增添这一行

新版本的PhpMyAdmin加强了宁静性,必要在设置文件设置一个短语暗码。不然进进以后会有“设置文件如今必要一个短语暗码。”的白色警叹提醒。办理***:


1、将phpMyAdmin/libraries/config.default.php中的
$cfg[blowfish_secret]=;改成$cfg[blowfish_secret]=123456;(注:个中的’123456′为随便的字符)



[root@localhostlibraries]#pwd
/www/phpadmin/libraries
[root@localhostlibraries]#viconfig.default.php

$cfg[blowfish_secret]=123456;


2、在phpMyAdmin目次中,翻开config.sample.inc.php,18行


$cfg[blowfish_secret]=;改成$cfg[blowfish_secret]=123456;(注:个中的’123456′为随便的字符)

这个暗码用于Cookies的加密,以避免多个PhpMyAdmin大概和其他步伐共用Cookies时弄混。
做好以上两步,革新网页,OK,“设置文件如今必要一个短语暗码。”的提醒不存在了!


重启apache以后会见没有再报这个毛病。






如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!
再见西城 该用户已被删除
沙发
发表于 2015-1-16 21:56:11 | 只看该作者

给大家带来mysql图形办理工具 phpMyAdmin装置

请问谁有Linux的学习心得的吗?简单的说说?
小女巫 该用户已被删除
板凳
发表于 2015-1-24 10:07:11 | 只看该作者
一些显而易见的小错误还是用vi改正比较方便。以后的大一点的程序就得在Linux下调试了,因为有的头文件在VC里面说找不到。?
不帅 该用户已被删除
地板
发表于 2015-2-1 10:12:01 | 只看该作者
我们这一代90后,从小接触的是windows98,家里条件好的自己有电脑装的是2000,后来又有了XP,上大学时又有了win7。
精灵巫婆 该用户已被删除
5#
发表于 2015-2-7 06:20:05 | 只看该作者
我是学习嵌入式方向的,这学期就选修了这门专业任选课。
飘飘悠悠 该用户已被删除
6#
发表于 2015-2-21 11:39:27 | 只看该作者
对于英语不是很好的读者红旗 Linux、中标Linux这些中文版本比较适合。现在一些Linux网站有一些Linux版本的免费下载,这里要说的是并不适合Linux初学者。
简单生活 该用户已被删除
7#
发表于 2015-3-6 21:25:03 | 只看该作者
未来的学习之路将是以指数增加的方式增长的。从网管员来说,命令行实际上就是规则,它总是有效的,同时也是灵活的。
灵魂腐蚀 该用户已被删除
8#
发表于 2015-3-13 22:34:31 | 只看该作者
Linux只是个内核!这点很重要,你必须理解这一点。只有一个内核是不能构成一个操作系统的。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-5-4 03:35

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表