当前位置:网站首页>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内核浏览器。
边栏推荐
- 马斯克被诉传销索赔2580亿美元,台积电公布2nm制程,中科院发现月壤中含有羟基形式的水,今日更多大新闻在此...
- MySQL modifies and deletes tables in batches according to the table prefix
- Amazon's other side in China
- 吴恩达机器学习新课程又来了!旁听免费,小白友好
- Administrator如何禁止另一个人踢掉自己?
- Randla net: efficient semantic segmentation of large scale point clouds
- 多睡觉,能减肥,芝加哥大学最新研究:每天多睡1小时,等于少吃一根炸鸡腿...
- When people look at the industrial Internet from the Internet like thinking and perspective, they have actually fallen into a dead end
- Redis related-03
- Two common OEE monitoring methods for equipment utilization
猜你喜欢

威马招股书拆解:电动竞争已结束,智能排位赛刚开始

Lu Qi invests in quantum computing for the first time

服乔布斯不服库克,苹果传奇设计团队解散内幕曝光

完美洗牌问题

大咖说*计算讲谈社|如何提出关键问题?

Xidian AI ranked higher than Qingbei in terms of AI majors, and Nantah ranked the first in China in 2022 in terms of soft science majors

吴恩达机器学习新课程又来了!旁听免费,小白友好

Dr. Sun Jian was commemorated at the CVPR conference. The best student thesis was awarded to Tongji Ali. Lifeifei won the huangxutao Memorial Award

Mobile mall project operation

What is an SSL certificate and what are the benefits of having an SSL certificate?
随机推荐
Program. Launch (xxx) open file
TC object structure and abbreviation
华为上诉失败,被禁止在瑞典销售 5G 设备;苹果公司市值重获全球第一;Deno 完成 2100 万美元 A 轮融资|极客头条
Is it safe to open an online stock account?
Self cultivation and learning encouragement
js工具函数,自己封装一个节流函数
Redis related-01
Rebeco:使用机器学习预测股票崩盘风险
redis
Amazon's other side in China
DateTimeFormat放到@RequestBody下是无效的
ICML 2022 | ByteDance AI Lab proposes a multimodal model: x-vlm, learning multi granularity alignment of vision and language
There is the word "Internet" in the concept of industrial Internet, but it is an existence that is not related to the Internet
The programmer reality show is coming again! Hulan, as the host, carried the lamp to fill the knowledge. The SSS boss had a bachelor's degree in pharmacy. Zhu Jun and Zhang Min from Tsinghua joined th
吴恩达机器学习新课程又来了!旁听免费,小白友好
JSP cannot be resolved to a type error reporting solution
程序猿职业发展9项必备软技能
陆奇首次出手投资量子计算
Datetimeformat is invalid under @requestbody
Configuration source code