当前位置:网站首页>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”等其他版本,关键是不要写错路径名,否则执行不成功。
边栏推荐
- [today in history] June 6: World IPv6 launch anniversary; Tetris release; Little red book established
- PHP 代码 微信、公众号、企业微信 发送表情符号 [U+1F449]
- Severe Tire Damage:世界上第一个在互联网上直播的摇滚乐队
- Online JSON to plaintext tool
- 《天天数学》连载53:二月二十一日
- js清空对象和对象的值:
- Shuttle uses custompaint to paint basic shapes
- PSM总结
- [postgraduate] bit by bit
- 新手炒股开户选哪家证券平台办理是最好最安全的
猜你喜欢

Writing based on stm32

Exploration on the construction path of real-time digital warehouse integrating digital intelligence learning and streaming batch

The graduation season is coming, and the number of college graduates in 2022 has exceeded 10 million for the first time
![[today in history] June 6: World IPv6 launch anniversary; Tetris release; Little red book established](/img/06/895913d2c54b03cde86b3116955a9e.png)
[today in history] June 6: World IPv6 launch anniversary; Tetris release; Little red book established

字节跳动面试官:一张图片占据的内存大小是如何计算

Win11 cannot create a new text document? Solution to win11 right click failure to create a new text document
![[kotlin] basic introduction and understanding of its syntax in Android official documents](/img/44/ec59383ddfa2624a1616d13deda4a4.png)
[kotlin] basic introduction and understanding of its syntax in Android official documents

Intel Ruixuan A380 graphics card will be launched in China

CMU提出NLP新范式—重构预训练,高考英语交出134高分

ByteDance Interviewer: how to calculate the memory size occupied by a picture
随机推荐
Unity WebGL打包后怎么运行(火狐配置)
新手炒股开户选哪家证券平台办理是最好最安全的
Packet capturing and sorting out external Fiddler -- understanding the toolbar [1]
Writing based on stm32
喜新厌旧?IT公司为什么宁愿花20k招人,也不愿涨薪留住老员工
【倒立摆控制】基于UKF无迹卡尔曼滤波的倒立摆控制simulink仿真
Is it reliable to invest in the inter-bank certificate of deposit fund? Is the inter-bank certificate of deposit fund safe
TensorRT 模型推理优化实现
视频编解码性能优化与实现
MFC常用 当前路径
被通知裁员后拿到5个offer
[today in history] May 29: the pioneer of sharing software was born; Chromebox launched; VoodooPC founder was born
把腾讯搬上云:云服务器 CVM 的半部进化史
The first place on the list - the carrying rate of front-end equipment is up to 10%, and the top 10 suppliers of digital key solutions
[block coding] simulation of image block coding based on MATLAB
Severe Tire Damage:世界上第一个在互联网上直播的摇滚乐队
Desai wisdom number - histogram (column folding mixed graph): ratio of rental price to rental income in the graduation quarter of 2021
MFC CString to LPVOID
元宇宙标准论坛成立
第三批入围企业公示!年度TOP100智能网联供应商评选