作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
简单的问题,但我很难解决
我已经通过brew安装了phpmyadmin
,使用brew install phpmyadmin
。
现在,我的 php、apache 和 mysql 工作正常(It Works,以及 mysql cli),我如何访问 phpmyadmin 界面?
我尝试了http://127.0.0.1/phpmyadmin
,但得到了 404。
我找不到让它工作的方法!
这是 brew install phpmyadmin
的输出
installing dependencies for phpmyadmin: php55, mcrypt, php55-mcrypt
==> Installing phpmyadmin dependency: php55
==> Downloading http://www.php.net/get/php-5.5.6.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php55-5.5.6
==> Patching
patching file configure
Hunk #1 succeeded at 39041 (offset 764 lines).
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php55/5.5.6 --localstatedir=/usr/local/var --sysconfdir=/u
==> make
==> make install
==> /usr/local/Cellar/php55/5.5.6/bin/pear config-set php_ini /usr/local/etc/php/5.5/php.ini
==> Caveats
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php5_module /usr/local/opt/php55/libexec/apache2/libphp5.so
The php.ini file can be found in:
/usr/local/etc/php/5.5/php.ini
✩✩✩✩ PEAR ✩✩✩✩
If PEAR complains about permissions, 'fix' the default PEAR permissions and config:
chmod -R ug+w /usr/local/Cellar/php55/5.5.6/lib/php
pear config-set php_ini /usr/local/etc/php/5.5/php.ini
✩✩✩✩ Extensions ✩✩✩✩
If you are having issues with custom extension compiling, ensure that
you are using the brew version, by placing /usr/local/bin before /usr/sbin in your PATH:
PATH="/usr/local/bin:$PATH"
PHP55 Extensions will always be compiled against this PHP. Please install them
using --without-homebrew-php to enable compiling against system PHP.
✩✩✩✩ PHP CLI ✩✩✩✩
If you wish to swap the PHP you use on the command line, you should add the following to ~/.bashrc,
~/.zshrc, ~/.profile or your shell's equivalent configuration file:
export PATH="$(brew --prefix josegonzalez/php/php55)/bin:$PATH"
==> Summary
🍺 /usr/local/Cellar/php55/5.5.6: 491 files, 29M, built in 6.4 minutes
==> Installing phpmyadmin dependency: mcrypt
==> Downloading http://downloads.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.g
######################################################################## 100,0%
==> ./configure --prefix=/usr/local/Cellar/mcrypt/2.5.8 --mandir=/usr/local/Cellar/mcrypt/2.5.8/share
==> make install
🍺 /usr/local/Cellar/mcrypt/2.5.8: 12 files, 348K, built in 34 seconds
==> Installing phpmyadmin dependency: php55-mcrypt
==> Downloading http://www.php.net/get/php-5.5.6.tar.bz2/from/this/mirror
######################################################################## 100,0%
==> PHP_AUTOCONF="/usr/local/opt/autoconf/bin/autoconf" PHP_AUTOHEADER="/usr/local/opt/autoconf/bin/a
==> ./configure --prefix=/usr/local/Cellar/php55-mcrypt/5.5.6 --with-php-config=/usr/local/Cellar/php
==> make
==> Caveats
To finish installing mcrypt for PHP 5.5:
* /usr/local/etc/php/5.5/conf.d/ext-mcrypt.ini was created,
do not forget to remove it upon extension removal.
* Restart your webserver.
* Write a PHP page that calls "phpinfo();"
* Load it in a browser and look for the info on the mcrypt module.
* If you see it, you have been successful!
==> Summary
🍺 /usr/local/Cellar/php55-mcrypt/5.5.6: 3 files, 56K, built in 99 seconds
==> Installing phpmyadmin
==> Downloading http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.0.9/phpMyAdmin-4.0.9
######################################################################## 100,0%
==> Caveats
Note that this formula will NOT install mysql. It is not
required since you might want to get connected to a remote
database server.
Webserver configuration example (add this at the end of
your /etc/apache2/httpd.conf for instance) :
Alias /phpmyadmin /usr/local/share/phpmyadmin
<Directory /usr/local/share/phpmyadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Then, open http://localhost/phpmyadmin
More documentation : file:///usr/local/Cellar/phpmyadmin/4.0.9/share/phpmyadmin/doc/
Don't forget to copy config.sample.inc.php to config.inc.php and :
- change your secret blowfish
- uncomment the configuration lines (pma, pmapass ...)
==> Summary
🍺 /usr/local/Cellar/phpmyadmin/4.0.9: 1173 files, 28M, built in 40 seconds
最佳答案
您需要将以下配置添加到 httpd.conf
,如 brew install
的输出中所述。
示例路径:/etc/apache2/httpd.conf
Alias /phpmyadmin /usr/local/share/phpmyadmin
<Directory /usr/local/share/phpmyadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
然后重新启动 Apache。
另外,配置:
Don't forget to copy config.sample.inc.php to config.inc.php and :
- change your secret blowfish
- uncomment the configuration lines (pma, pmapass ...)
关于apache - 访问 phpmyadmin 酿造,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20300699/
简单的问题,但我很难解决 我已经通过brew安装了phpmyadmin,使用brew install phpmyadmin。 现在,我的 php、apache 和 mysql 工作正常(It Work
我了解各种可能的移动开发平台。不过,我很想知道您能告诉我有关 Qualcomm BREW 的什么信息吗?为什么现在还有人关心它?我的意思是,有了 J2ME 的可移植性(中高级设备中对 J2ME 的兴趣
我已经通过以下命令使用brew在Mac OS X Lion下安装了qt: brew install qt --build-from-source。 我现在如何使用Qt? brew 也安装了 Qt Cr
我是一名优秀的程序员,十分优秀!