初學PHP,遇到搭建環境的問題,求大神指教。困擾我好幾天了55555555

來源:互聯網
上載者:User
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 開啟這個

謝謝您,終於把他解決了。花了兩天時間了

終於解決了 ,感謝兩位帥哥

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.