apache2.4載入不了SegmentFault

來源:互聯網
上載者:User
按照http://langzhiwang888.iteye.com/blog/1859399重新裝了下php,apache和mysql都OK了,but載入php總失敗

httpd: Syntax error on line 176 of D:/apache/Apache24/conf/httpd.conf: Cannot lo
ad d:/php/ext/php5apache2_4.dll into server: %1 \xb2\xbb\xca\xc7\xd3\xd0\xd0\xa7
\xb5\xc4 Win32 \xd3\xa6\xd3\xc3\xb3\xcc\xd0\xf2\xa1\xa3

是版本問題嗎還是 ps:win7 64位系統

回複內容:

按照http://langzhiwang888.iteye.com/blog/1859399重新裝了下php,apache和mysql都OK了,but載入php總失敗

httpd: Syntax error on line 176 of D:/apache/Apache24/conf/httpd.conf: Cannot lo
ad d:/php/ext/php5apache2_4.dll into server: %1 \xb2\xbb\xca\xc7\xd3\xd0\xd0\xa7
\xb5\xc4 Win32 \xd3\xa6\xd3\xc3\xb3\xcc\xd0\xf2\xa1\xa3

是版本問題嗎還是 ps:win7 64位系統

你的php裝的是win32的
建議你去裝個Integration Environment
xmapp
或者
wampserver
在windows下沒必要折騰這些東西

php目錄要有php5ts.dll
apache的httpd.conf要有如下配置,可以看到,我在配置裡順便吧php.ini指向了。
我是windows用戶,linux下面應該更加簡單吧。

# 加載PHPLoadModule php5_module "D:/ENVIRONMENT/php_54/php5apache2_2.dll"AddType application/x-httpd-php .php .phtml .php5AddType application/x-httpd-php-source .phpsPHPIniDir "D:/ENVIRONMENT/php_54/"

或者可以直接使用php-cgi.exe

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.