duanjiao8007 2014-05-03 01:32 采纳率: 100%
浏览 60
已采纳

完全安装后,PHP无法在Windows上运行

I am trying to setup php 5.5.12 on my Windows server 2008 R2

I found this good tutorial that walks you step by step

http://www.youtube.com/watch?v=WUoqkPJEp4Y

After completing every step everything seems to be fine.

I created a file called phpinfo.php and put the following code into and placed it on c:/inetpub/wwwroot

<?php php_info(); ?>

But when I got localhost/phpinfo.php or http://127.0.0.1:80/phpinfo.php I get a 404 error. I do not know why it is not working. when I execute the following from commands from the command line it looks like it is working and I get many output with no error.

cd c:/php
php -i

In addition to the instruction, I added the following to the registry of windows

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\PHP]
"IniFilePath"="C:\\PHP"

Can someone tell me what else do I need to make get php up and running on windows?

This is what is using port 80 on my server enter image description here

enter image description here

  • 写回答

1条回答 默认 最新

  • dongyuan2388 2014-05-03 01:44
    关注

    To use localhost or 127.0.0.1 you need apache installed on your system too.

    You can download xampp or wamp they both come with PHP, MySql & Apache installed in them.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀