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 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程