dpdx51205 2013-09-21 07:14
浏览 54
已采纳

我如何将PHP重建为新版本

Today, i download php-5.5.4-Win32-VC11-x86(Thread safe) and extract it particular folder and change the httpd.conf as follows

LoadModule php5_module "D:/Software/php-5.5.4-Win32-VC11-x86/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "D:/Software/php-5.5.4-Win32-VC11-x86"

My older version is php-5.4.15-Win32-VC9-x86

When i run the phpinfo() function it always show older version number and it not rebuilted.

See attached image

PHP NOT REBUILD

You see in image, the configuration file is in new version but the build date and compiler not changes...so the extension of new version not works

Anybody please give the instruction, how to rebuilt PHP with correct microsoft compiler and version

Edit:

I change windows environment PATH to new php folder as

PHP PATH

C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_21\bin;D:\Software\php-5.5.4-Win32-VC11-x86;D:\Software\mysql-5.6.11-win32\bin;C:\Program Files\Windows Live\Shared;C:\Program Files\TortoiseSVN\bin

as well i restart apache and system many times

  • 写回答

1条回答 默认 最新

  • doumei4964 2013-09-21 07:44
    关注

    From the documentation:

    If you are using PHP with Apache 1 or Apache2 from apache.org (not recommended) you need to use the older VC6 versions of PHP compiled with the legacy Visual Studio 6 compiler. Do NOT use VC9+ versions of PHP with the apache.org binaries.

    According to the screen-shot it seems you're using Apache2.0 - try downloading the latest Apache version provided by Apache Lounge and if that doesn't work re-install PHP 5.5.4

    You can also try the following:

    1. Make sure to change the path in http.conf to point to the new php.ini (variable name: PHPIniDir)
    2. Change the PATH in the system variables (make sure to remove the old path!)
    3. re-install install VC++ Redistribution
    4. restart your computer
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据