Home  >  Article  >  Backend Development  >  初学PHP,遇到搭建环境的问题,求大神指教。困扰我好几天了55555555

初学PHP,遇到搭建环境的问题,求大神指教。困扰我好几天了55555555

WBOY
WBOYOriginal
2016-06-23 13:09:07909browse

apache和Phph还有mysql,已经成功搭建,现在连接上mysql。我下载了phpmyadmin后,放入我htdocs文件下。然后在地址栏打开,居然是这个样子


回复讨论(解决方案)

打开Apache的httpd.conf文件,增加默认首页:DirectoryIndex index.php index.html
加入php模块提供php支持:LoadModule php5_module "d:/php/php5apache2_2.dll"
加入浏览器识别的php文件类型:AddType application/x-httpd-php .php .phtml

加入php.ini文件的路径提供apache加载: PHPIniDir "d:/php"

这位师兄你好 ,我按照你的操作进行了了。现在是这个样子

他是说要加载 php_mbstring 扩展

打开php.ini文件,定义扩展包的路径。
查找“extension_dir”,修改为:extension_dir = “d:\php\ext”

打开一些必要的扩展包,即去掉一些扩展包的文件名的分号";",如下配置:
extension_dir = "D:/Lamp/php5/ext"
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_imap.dll
extension=php_mbstring.dll
extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_pdo_mysql.dll

那我该怎么办呢

extension=php_mbstring.dll 开启这个

谢谢您,终于把他解决了。花了两天时间了

终于解决了 ,感谢两位帅哥

Statement:
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