dp198879 2010-10-15 22:16
浏览 59

XAMPP:如何为PHP配置Apache

My XAMPP is not reading my PHP. Probably, there's a problem with my Apache configuration. My PHP book suggested that I open the httpd configuration file and add these lines:

LoadModule php5_module c:/php/php5apache2_2.dll  
PHPIniDir "c:/php/"  
AddType application/x-httpd-php .php

Which I did, but when I went back to the control panel to turn Apache back on, I couldn't get the running sign by it. I figured that this was because my PHP doesn't think I'm using XAMPP. I tried the following instead:

LoadModule php5_module c:/xampp/php/php5apache2_2.dll  
PHPIniDir "c:/xampp/php/"  
AddType application/x-httpd-php .php

But the problem isn't solved (PHP still doesn't work, I can't get the running sign by Apache in the control panel). What should I do? I'm using Windows 7, if it matters.

After uninstalling XAMPP and deleting the directory, I encountered the same problem. Here's the most recent error log:

[Fri Oct 15 19:44:00 2010] [notice] Digest: generating secret for digest authentication ...  
[Fri Oct 15 19:44:00 2010] [notice] Digest: done  
[Fri Oct 15 19:44:00 2010] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14   OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations  
[Fri Oct 15 19:44:00 2010] [notice] Server built: Nov 11 2009 14:29:03  
[Fri Oct 15 19:44:00 2010] [notice] Parent: Created child process 912  
[Fri Oct 15 19:44:03 2010] [notice] Digest: generating secret for digest authentication ...  
[Fri Oct 15 19:44:03 2010] [notice] Digest: done  
[Fri Oct 15 19:44:04 2010] [notice] Child 912: Child process is running  
[Fri Oct 15 19:44:04 2010] [notice] Child 912: Acquired the start mutex.  
[Fri Oct 15 19:44:04 2010] [notice] Child 912: Starting 150 worker threads.  
[Fri Oct 15 19:44:04 2010] [notice] Child 912: Starting thread to listen on port 443.  
[Fri Oct 15 19:44:04 2010] [notice] Child 912: Starting thread to listen on port 80.  
  • 写回答

2条回答 默认 最新

  • dsnd7200 2010-10-16 01:20
    关注

    If you are using XAMPP, which you downloaded from their site, PHP should be working right out of the box. You can always try downloading it again from source forge. You can always look in the error log for the error.

    评论

报告相同问题?

悬赏问题

  • ¥100 支付宝批量检测实名工具
  • ¥15 基于单片机的靶位控制系统
  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题