首页 > 互联资讯 > 建站教程  > 

包含phpvc9apache的词条

本文目录一览:

phpstudy的apache无法启动

    相信很多小伙伴刚开始使用phpstudy的时候都遇到过这个问题,apache刚打开不一会又自动关了,这个问题当初也困扰了我许久,下面是解决办法,针对不同情况。

    一是有可能防火墙去拦截;二是端口可能被别的程序占用,在设置中更改端口即可;三是没有安装VC9运行库,php和apache都是VC9编译。

    如果是在正常启动之前就配置了站点的话,apache可能因为无法识别站点中的目录从而造成这种情况,解决方法是删掉这个站点再重新启动一次就可。

    按键盘上的Win+R,输入cmd打开,打开Apache目录的bin文件,复制路径,然后在cmd中cd到这个路径。

    输入命令:httpd.exe -t

    如果出现这个错误,显示在line 512,打开httpd.conf这个文件

    从512行开始,删掉/IfModule只剩下一个就行,然后重启phpstudy;

    如果报错显示另一个文件

    和原来一样,找到并打开这个文件,vhosts.conf,查看67行

    发现DocumentRoot 和 Directory 的路径后面多了一个””,就因为这个反斜杠导致了apache 无法正常启动,修改以后启动apache,就不会在停止了。

PHP版本VC6和VC9,Non Thread Safe和Thread Safe的区别

vc就是常说的microsoft visual c++ redistributable package,vc6和9代表的不同版本,6应该是vc++6.0,9是vc++2008,10是vc++2010,11是vc++2012,如果用相应的版本的visual studio编译的,同时还需要运行库的支持,不然就会报常见的缺少vcr***.dll错误,也就是说vc6版本需要安装visual c++ 6.0 运行库,vc9需要安装microsoft visual c++ 2008 redistributable package,现在主流是vc9以上了。至于线程安全,官网是这样说的

Which version do I choose?

IIS

If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions of PHP.

Apache

Please use the Apache builds provided byApache Lounge. They also provide VC11 builds of Apache for x86 and x64. We use their binaries to build the Apache SAPIs.

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 NOTuse VC9+ versions of PHP with the apache.org binaries.

With Apache you have to use the Thread Safe (TS) versions of PHP.

VC9 and VC11

More recent versions of PHP are built with VC9 or VC11 (Visual Studio 2008 and 2012 compiler respectively) and include improvements in performance and stability.

The VC9 builds require you to have theVisual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed.

The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012x86 or x64 installed.

TS and NTS

TS refers to multithread capable builds.NTS refers to single thread only builds. Use case for TS binaries involves interaction with a multithreaded SAPI and PHP loaded as a module into a web server. For NTSbinaries the widespread use case is interaction with a web server through the FastCGI protocol, utilizing no multithreading (but also for example CLI).

Apache+PHP的VC9版本会出现问题吗

这个主要是要看Apache的编译版本是否和PHP的匹配

按照PHP官方提供的资源来看,PHP 5.5以后的版本官方只提供了VC11版本的产品程序,PHP5.3/5.4版还有VC9版本的产品程序。

而Apache官方提供的Apache HTTP Server程序,都是VC6版本的,所以说,这意味着,其实Apache本身提供的程序,跟PHP 5.X版本是不兼容的。

而现在Windows平台的Apache HTTP Server都是第三方根据Apache释出的源代码,使用对应版本的VC编译器编译出来的

也就是说,只要保证你的Apache和PHP是同一个版本的VC编译出来的,就可以较稳定的运行了

不过要注意的是,如果Apache、PHP版本较高,最好使用高版本的VC编译出的产品,因为部分特性需要高版本的编译器支持。

而如果你的系统版本较老,则需要低版本的VC编译出的产品,因为很多老版本的系统不支持。


包含phpvc9apache的词条由讯客互联建站教程栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“包含phpvc9apache的词条