当前位置:网站首页>windows 2003 64位系统php运行报错:1% 不是有效的 win32 应用程序
windows 2003 64位系统php运行报错:1% 不是有效的 win32 应用程序
2022-06-25 03:42:00 【游戏编程】
问题一: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”等其他版本,关键是不要写错路径名,否则执行不成功。
原文链接:https://www.west.cn/faq/list.asp?unid=584
作者:wwwwestcn
游戏编程,一个游戏开发收藏夹~
如果图片长时间未显示,请使用Chrome内核浏览器。
边栏推荐
- redis
- Two way combination of business and technology to build a bank data security management system
- Li Kou daily question - day 26 -506 Relative rank
- Tensorflow, danger! Google itself is the one who abandoned it
- How to play well in the PMP Exam?
- 【Rust投稿】从零实现消息中间件(6)-CLIENT
- Demonstration of combination of dream CAD cloud map and GIS
- Install ffmpeg in LNMP environment and use it in yii2
- Solution to the problem that Linux crontab timed operation Oracle does not execute (crontab environment variable problem)
- js工具函数,自己封装一个节流函数
猜你喜欢

Zuckerberg's latest VR prototype is coming. It is necessary to confuse virtual reality with reality

Does it count as staying up late to sleep at 2:00 and get up at 10:00? Unless you can do it every day

DevEco Studio 3.0编辑器配置技巧篇

协作+安全+存储,云盒子助力深圳爱德泰重构数据中心

老叶的祝福

A new generation of cascadable Ethernet Remote i/o data acquisition module

The sign in function completes 03 "IVX low code sign in system production"

Why can banana be a random number generator? Because it is the "king of radiation" in the fruit industry

后台页制作01《ivx低代码签到系统制作》

Redis related-02
随机推荐
Maybe it's the wrong reason
How to choose a securities company when opening an account with a compass? Which is safer
js工具函数,自己封装一个节流函数
Oracle-sqlload import external data details
马斯克:推特要学习微信,让10亿人「活在上面」成为超级APP
[proteus simulation] Arduino uno+ relay controls lighting equipment
Zuckerberg's latest VR prototype is coming. It is necessary to confuse virtual reality with reality
DevEco Studio 3.0编辑器配置技巧篇
Tianshu night reading notes - 8.4 diskperf disassembly
Two common OEE monitoring methods for equipment utilization
Winxp kernel driver debugging
Is it safe to open an account with flush securities?
Li Kou daily question - day 26 -506 Relative rank
Insurance app aging service evaluation analysis 2022 issue 06
Is it safe to open a stock account on Huatai Securities?
浏览器下载的文件属性里都有保护,如何去掉
Program. Launch (xxx) open file
程序猿职业发展9项必备软技能
There is the word "Internet" in the concept of industrial Internet, but it is an existence that is not related to the Internet
Three key explanations of overseas e-commerce operation in 2022