PHP环境的筹建

Jun 13, 2016 am 11:21 AM
apache nbsp php

PHP环境的搭建

本帖最后由 tcmis 于 2013-04-03 17:53:43 编辑   兄弟第一次接触PHP,今天是搭建了一下午的环境,网上翻了很多资料,怎么都弄不好,得请教一下这方面的高手, 环境及软件列表如下

  OS: WIN7 32位
  IDE: ZendStudioForEclipse-6.1.2
  php-5.2.17-Win32-VC6-x86(Thread Safe) + httpd-2.2.22-win32-x86-no_ssl
  软件都安装在d:\program files下面

  其他一切都可以, 就是在Apache中加载php时,老配置不成功,
  LoadModule php5_module "d:/Program Files/PHP/php5apache2_2.dll" 
  查了资料,改成什么都无法启动Apache
  1.LoadModule php5_module d:/Program Files/PHP/php5apache2_2.dll
  2.LoadModule php5_module ../PHP/php5apache2_2.dll

  将上面的dll改成php5apache2.dll也都一样, 该试的都试了一遍,不知道还有什么地方应该注意的, 请大侠指点, 不胜感激。。

------解决方案--------------------
引号呢?
LoadModule php5_module "d:/Program Files/PHP/php5apache2_2.dll"
------解决方案--------------------
果断集成安装包...以后要生产了在linux下编译吧
------解决方案--------------------
楼主,你的PHP不要用安装程序。用这种php-5.2.17-Win32-VC6-x86.zip格式的直接解压。
1.将php.ini-dist 改成php.ini
2.配置httpd.conf 
LoadModule php5_module "D:/APP/php5/php5apache2_2.dll"
PHPIniDir "D:/APP/php5"
AddType application/x-httpd-php .php   


------解决方案--------------------
建議你下載Wampserver,整套幫你裝好
------解决方案--------------------
引用:
我把PHP又重新安装了一遍,这次我直接安装在d盘的根目录,LoadModule php5_module "D:/php/php5apache2_2.dll"这样是没有问题的,
不过我在网上查了下,有人说如果你安装在X:\program files下面,可以将x:\program files用../替换, 我昨天也替换了都不行, 难道php不能安装在x:\program ……


不要安装在中文路径下我倒是有听说的,不要安装在program files下是不可能的...因为以前安装包都是张在这个下面.要是还在折腾的话可以下这个
http://bbs.csdn.net/topics/370107885
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

CakePHP Date and Time

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

CakePHP Project Configuration

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

CakePHP File upload

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

CakePHP Routing

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

Discuss CakePHP

CakePHP Quick Guide CakePHP Quick Guide Sep 10, 2024 pm 05:27 PM

CakePHP Quick Guide

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

How To Set Up Visual Studio Code (VS Code) for PHP Development

See all articles