当前位置:网站首页>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”等其他版本,关键是不要写错路径名,否则执行不成功。
边栏推荐
- Mysql database foundation: DML data operation language
- Usage details of staticlayout
- 如何判断线程池已经执行完所有任务了?
- Gateway微服務路由使微服務靜態資源加載失敗
- 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
- 字节跳动面试官:一张图片占据的内存大小是如何计算
- math_(函数&数列)极限的含义&误区和符号梳理/邻域&去心邻域&邻域半径
- Interview: is bitmap pixel memory allocated in heap memory or native
- 【Kotlin】在Android官方文档中对其语法的基本介绍和理解
猜你喜欢

测试要掌握的技术有哪些?软件测试必懂的数据库设计大全篇

基于STM32的编写
![[today in history] June 15: the first mobile phone virus; AI master simahe was born; Chromebook launch](/img/d4/413c84a75f16a09867cfaa3d7f8736.png)
[today in history] June 15: the first mobile phone virus; AI master simahe was born; Chromebook launch

Win11如何关闭最近打开项目?Win11关闭最近打开项目的方法

Summary of software testing tools in 2021 - fuzzy testing tools

如何开启多语言文本建议?Win11打开多语言文本建议的方法
![[plug in -statistical] statistics the number of code lines and related data](/img/84/ad5e78f7e0ed86d9c21cabe97b9c8e.png)
[plug in -statistical] statistics the number of code lines and related data

Arduino Esp8266 Web LED控制

Mixed programming of C language and assembly language in stm32

Desai wisdom number - histogram (column folding mixed graph): ratio of rental price to rental income in the graduation quarter of 2021
随机推荐
目标检测|SSD原理与实现
Arduino Esp8266 Web LED控制
[kotlin] basic introduction and understanding of its syntax in Android official documents
被通知裁员后拿到5个offer
MFC common current path
喜新厌旧?IT公司为什么宁愿花20k招人,也不愿涨薪留住老员工
JDBC and MySQL databases
Desai wisdom number - histogram (column folding mixed graph): ratio of rental price to rental income in the graduation quarter of 2021
Win11无法使用动态壁纸怎么办?Win11用不了动态壁纸的解决方法
Gateway微服務路由使微服務靜態資源加載失敗
Exploration on the construction path of real-time digital warehouse integrating digital intelligence learning and streaming batch
JDBC与MySQL数据库
Feign远程调用fallback回调失败,无效果
3年功能测试拿8K,被刚来的测试员反超,其实你在假装努力
[2D code image correction and enhancement] simulation of 2D code image correction and enhancement processing based on MATLAB
Basic flask: template rendering + template filtering + control statement
SQL reported an unusual error, which confused the new interns
Livedata interview question bank and answers -- 7 consecutive questions for livedata interview~
Flask Foundation: template inheritance + static file configuration
[today in history] June 23: Turing's birthday; The birth of the founder of the Internet; Reddit goes online