简体   繁体   English

在Windows Vista上安装PHP,Apache 2.2.10

[英]Installing PHP, Apache 2.2.10 on Windows Vista

I am trying to get PHP working on my vista home machine but I am getting weird problems. 我正在尝试让PHP在我的Vista家用计算机上运行,​​但是我遇到了奇怪的问题。 First I had file permission problems for which I disabled Vista's UAC. 首先,我遇到了文件权限问题,因此我禁用了Vista的UAC。 Now I can't get the PHP interpreter working. 现在,我无法使PHP解释器正常工作。

I have made all the necessary changes following some tutorial but I still can't get it working. 我已经按照一些教程进行了所有必要的更改,但仍然无法正常工作。

Tutorial was located here: http://www.tanguay.info/wamp/installPhp5.php5 教程位于此处: http : //www.tanguay.info/wamp/installPhp5.php5

Try XAMPP . 尝试XAMPP I use that at home on a Vista machine and it worked nicely after the install. 我在家中的Vista机器上使用它,安装后效果很好。

WAMPServer is also a good option. WAMPServer也是一个不错的选择。 You can easily enable/disable both PHP extensions and Apache 2 modules. 您可以轻松地启用/禁用PHP扩展和Apache 2模块。 Everything is set up somewhat securely (only local access to the serve), and you get phpMyAdmin already set up. 一切都在某种程度上安全设置(仅本地访问服务),并且您已经设置了phpMyAdmin。

Only thing I've ever missed is Memcached, but that is fairly easy to set up on your own. 我唯一想念的就是Memcached,但这很容易自行设置。

The only problem I have installing PHP and Apache on Vista is that you need to make sure that when you edit the httpd.conf that you are editing it as an admin, otherwise the file is saved in compatibility mode. 我在Vista上安装PHP和Apache的唯一问题是,您需要确保在编辑httpd.conf时将其作为管理员进行编辑,否则文件将以兼容模式保存。

To overcome that problem just type notepad++ or whatever in your start menu, right click the item and run as administrator. 要解决该问题,只需在开始菜单中键入notepad ++或其他内容,右键单击该项目并以管理员身份运行。 Then open the file from the app. 然后从应用程序中打开文件。

You can use FastCGI for IIS 7. I'm using this also and it works perfectly!! 您可以将FastCGI用于IIS7。我也正在使用它,它可以完美运行!

FastCGI 快速CGI

You can try Zend Core 您可以尝试Zend Core

It works on both IIS and Apache (it includes the installation of the Apache) 它可以在IIS和Apache上运行(包括Apache的安装)

iis7是最好的Web服务器之一,尤其是对于php而言,如果无法使其正常工作,则意味着您需要使用足够的Google,因为将php / apache问题归咎于Vista是不合逻辑的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM