当前位置:网站首页>windows 2003 64位系统php运行报错:1% 不是有效的 win32 应用程序
windows 2003 64位系统php运行报错:1% 不是有效的 win32 应用程序
2022-06-28 01:21:00 【wwwwestcn】
问题一:php运行报错:1% 不是有效的 win32 应用程序
php环境配置完毕后,运行html成功,但运行php就报错,错误提示是“1% 不是有效的 win32 应用程序”,英文报%1 is not a valid Win32 application。第一次碰到这样的问题,经过搜索和试验,问题终于解决。
报错原因:由于在64位操作系统里,默认配置下,IIS工作在64位模式下,这会让许多32位的应用不能正常工作。
解决方法:
1)进入命令提示符:开始->运行 cmd
2)执行脚本:
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
说明;%SYSTEMDRIVE%表示系统盘。例如,如果你的系统盘是C,那么上述语句改为:
cscript c:\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
问题二:访问网页报错:Service Unavailable
经过上面的操作后,以为大功告成了,其实不然。访问网站竟然又报错:Service Unavailable。
解决方法如下:
1)进入命令提示符:开始->运行 cmd
2)执行脚本:
%SYSTEMROOT%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
说明:%SYSTEMROOT%\表示系统目录,一般是“C:\WINDOWS\”;v1.1.4322是默认.net版本,你也可以改为“v2.0.50727”等其他版本,关键是不要写错路径名,否则执行不成功。
边栏推荐
- A low-cost method to increase private domain traffic with simple maintenance
- Built in functions for MySQL database operations
- You got 8K in the 3-year function test, but were overtaken by the new tester. In fact, you are pretending to work hard
- 【插件-statistic】统计代码行数和相关数据
- Usage details of staticlayout
- "Everyday Mathematics" serial 53: February 21
- Win11新建不了文本文档?Win11右键无法新建文本文档的解决方法
- Win11不能拖拽图片到任务栏软件上快速打开怎么办
- 字节跳动面试官:一张图片占据的内存大小是如何计算
- [today in history] June 13: parent-child disputes in packet switched networks; The founder of game theory was born; The embryonic form of interactive television
猜你喜欢

Win11无法使用动态壁纸怎么办?Win11用不了动态壁纸的解决方法

Online JSON to plaintext tool
![[postgraduate] bit by bit](/img/76/b804ff215b8f52f1fe603a9a34a352.jpg)
[postgraduate] bit by bit

How to enable multi language text suggestions? Win11 method to open multilingual text suggestions

PSM总结

简单ELK配置实现生产级别的日志采集和查询实践

被通知裁员后拿到5个offer

Le routage des microservices de la passerelle a échoué au chargement des ressources statiques des microservices

英特尔锐炫A380显卡即将在中国面市

Arduino Esp8266 Web LED控制
随机推荐
Which securities platform is the best and safest for a novice to open a stock trading account
Packet capturing and sorting out external Fiddler -- understanding the toolbar [1]
Summary of software testing tools in 2021 - fuzzy testing tools
Moving Tencent to the cloud: half of the evolution history of cloud server CVM
【活动早知道】LiveVideoStack近期活动一览
如何判断线程池已经执行完所有任务了?
[today in history] June 12: the United States entered the era of digital television; Mozilla's original developer was born; 3com merges with American Robotics
分布式事务—基于消息补偿的最终一致性方案(本地消息表、消息队列)
be fond of the new and tired of the old? Why do it companies prefer to spend 20K on recruiting rather than raise salaries to retain old employees
Writing based on stm32
[today in history] June 13: parent-child disputes in packet switched networks; The founder of game theory was born; The embryonic form of interactive television
音视频技术开发周刊 | 251
被通知裁员后拿到5个offer
> Could not create task ‘:app:MyTest. main()‘. > SourceSet with name ‘main‘ not found. Problem repair
Win11如何关闭最近打开项目?Win11关闭最近打开项目的方法
【插件-statistic】统计代码行数和相关数据
3年功能测试拿8K,被刚来的测试员反超,其实你在假装努力
How fiddle uses agents
[today in history] June 1: Napster was founded; MS-DOS original author was born; Google sells Google SketchUp
STM32的C语言与汇编语言混合编程