Table of Contents
回复讨论(解决方案)
Home Backend Development PHP Tutorial PHP新手 第一次搭建php 出现了点问题 很崩溃

PHP新手 第一次搭建php 出现了点问题 很崩溃

Jun 23, 2016 pm 02:11 PM

    安装的软件有 :httpd-2.4.4-win32.zip(Apache) + 
                 php-5.4.8-nts-Win32-VC9-x86.zip + 
                 php5apache2_4.dll-php-5.4-win32.zip 

    本来之前的php版本是5.4.15的 但是下载php5apache2_4.dll后里面只到5.4.9 所以连PHP也换成5.4.8
    根据网上说的 httpd.conf 加了一下三句
    LoadModule php5_module "D:/php5/php5apache2_4.dll"
    AddHandler application/x-httpd-php .php
    PHPIniDir "D:/php5"
    就出现问题 在cmd中运行httpd,出现错误信息如下
    httpd:Syntax error on line 526 of D:/Apache24/conf/httpd.conf:Cannot load D:/php5/php5papache2_4.dll init server:后面是一些类似于 \xd3\xc9\xd3这样的符号
    如果把LoadModule php5_module(这里有个空格去掉)"D:/php5/php5apache2_4.dll"控制台就出现httpd:Syntax error on line 526 of D:/Apache24/conf/httpd.conf:LoadModule takes two arguments, a module name and the name of a shared object file to load it from 
    很崩溃 


回复讨论(解决方案)

把类似于 \xd3\xc9\xd3这样的符号贴全了,知识系统提供的中文信息

把类似于 \xd3\xc9\xd3这样的符号贴全了,知识系统提供的中文信息

由于应用程序配置不正确,应用程序未能启动。重新装应用程序可能会纠正这个问题。

提示的够清楚了吧?

cmd 窗口中,右键 -- 标记 -- 选择包含需要内容的区域 -- 回车
这样就把选区放入裁剪板了
放在双引号中就可输出汉字了,如
echo "\xd3\xc9\xd3\xda\xd3\xa6\xd3\xc3\xb3\xcc"; //由于应用程


把类似于 \xd3\xc9\xd3这样的符号贴全了,知识系统提供的中文信息


上面这个问题好像大概解决了 我装了个vc2008运行库 据说是C/C++编程都需要的运行环境 但是又出现了一个新的错误

echo "\xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3";
找不到指定的模块。

我已在#3给出了复制数据的方法,为什么还是贴图呢?
与人方便,才能与己方便

新手建议先用集成环境,XAMPP WAMP 都是非常好用的。等你熟悉了之后再回来搭就不会这么机械的装了,也会少很多问题。

echo "\xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3";
找不到指定的模块。

我已在#3给出了复制数据的方法,为什么还是贴图呢?
与人方便,才能与己方便
不是哦 那个方法到是可以复制 
但是echo 不能显示中文啊 
是在cmd下面运行echo吗 ? 

新手建议先用集成环境,XAMPP WAMP 都是非常好用的。等你熟悉了之后再回来搭就不会这么机械的装了,也会少很多问题。
我用过XAMPP 但是发现我已经装了Mysql 和 tomcat 我想要集成Apache和tomcat 所以选择自己安装了

救命啊 版主 ..

新手用PHPNOW就行了

新手用PHPNOW就行了
刚才去了解了一下 挺好的 
但是现在我已经装上了mysql、apache 和 tomcat 影响phpnow的安装吗 ? 


新手用PHPNOW就行了
刚才去了解了一下 挺好的 
但是现在我已经装上了mysql、apache 和 tomcat 影响phpnow的安装吗 ? 
不影响,你可以把mysql卸载掉用phpnow重新安装

用集成环境

应该是 vc出现问题 
你下载的是 php-5.4.8-nts-Win32-VC9-x86.zip   vc9版本的 
建议楼主去下载一个  vc6版本的

httpd: Syntax error on line 526 odD:/Apache24/conf/httpd.conf: Cannot load D:/php5/php5apache2_4.dll into server:....

呵呵 我使用了PHPNOW 成功了 非常感谢大家 
只是PHPNOW的版本有点低 等懂了以后慢慢的来换版本了 .. 

应该是 vc出现问题 
你下载的是 php-5.4.8-nts-Win32-VC9-x86.zip   vc9版本的 
建议楼主去下载一个  vc6版本的
恩 是的 我了解了vc9和vc6的区别了 
官网上去找了 找不到vc6 
暂时就先用phpnow了,非常感谢 .. 

httpd: Syntax error on line 526 odD:/Apache24/conf/httpd.conf: Cannot load D:/php5/php5apache2_4.dll into server:....
版主 没看懂 .. 

新手的话建议用集成环境吧,免配置的。wamp 也挺不错的。

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 AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

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)

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

How does session hijacking work and how can you mitigate it in PHP? How does session hijacking work and how can you mitigate it in PHP? Apr 06, 2025 am 12:02 AM

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.

Describe the SOLID principles and how they apply to PHP development. Describe the SOLID principles and how they apply to PHP development. Apr 03, 2025 am 12:04 AM

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to debug CLI mode in PHPStorm? How to debug CLI mode in PHPStorm? Apr 01, 2025 pm 02:57 PM

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

How to automatically set permissions of unixsocket after system restart? How to automatically set permissions of unixsocket after system restart? Mar 31, 2025 pm 11:54 PM

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Framework Security Features: Protecting against vulnerabilities. Framework Security Features: Protecting against vulnerabilities. Mar 28, 2025 pm 05:11 PM

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

See all articles