当前位置:网站首页>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”等其他版本,关键是不要写错路径名,否则执行不成功。
边栏推荐
- STM32的C语言与汇编语言混合编程
- [postgraduate] bit by bit
- adb双击POWER键指令
- math_(函数&数列)极限的含义&误区和符号梳理/邻域&去心邻域&邻域半径
- [block coding] simulation of image block coding based on MATLAB
- Win11 ne peut pas faire glisser l'image sur le logiciel de la barre des tâches
- 横向滚动的RecycleView一屏显示五个半,低于五个平均分布
- Arduino Esp8266 Web LED控制
- Severe Tire Damage:世界上第一个在互联网上直播的摇滚乐队
- The horizontal scrolling recycleview displays five and a half in one screen, which is lower than the five average distributions
猜你喜欢
被通知裁员后拿到5个offer
[today in history] June 11: the co inventor of Monte Carlo method was born; Google launched Google Earth; Google acquires waze
Win11 ne peut pas faire glisser l'image sur le logiciel de la barre des tâches
[today in history] May 29: the pioneer of sharing software was born; Chromebox launched; VoodooPC founder was born
为什么大厂压力大,竞争大,还有这么多人热衷于大厂呢?
[cloud native] - docker installation and deployment of distributed database oceanbase
Reprinted article: the digital economy generates strong demand for computing power Intel releases a number of innovative technologies to tap the potential of computing power
【倒立摆控制】基于UKF无迹卡尔曼滤波的倒立摆控制simulink仿真
Win11新建不了文本文档?Win11右键无法新建文本文档的解决方法
win11如何添加打印机和扫描仪?win11添加打印机和扫描仪的设置
随机推荐
Mysql database operation - stored procedure, view, transaction, index, database backup
音视频技术开发周刊 | 251
【二維碼圖像矯正增强】基於MATLAB的二維碼圖像矯正增强處理仿真
CMU puts forward a new NLP paradigm - reconstructing pre training, and achieving 134 high scores in college entrance examination English
2-5 basic configuration -win2003 add attack surface
如何开启多语言文本建议?Win11打开多语言文本建议的方法
迪赛智慧数——柱状图(折柱混合图):2021年毕业季租房价格和房租收入比
Intel Ruixuan A380 graphics card will be launched in China
[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
被通知裁员后拿到5个offer
【倒立摆控制】基于UKF无迹卡尔曼滤波的倒立摆控制simulink仿真
Unity WebGL打包后怎么运行(火狐配置)
Basic flask: template rendering + template filtering + control statement
[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
[today in history] June 15: the first mobile phone virus; AI master simahe was born; Chromebook launch
SQL reported an unusual error, which confused the new interns
Desai wisdom number - histogram (column folding mixed graph): ratio of rental price to rental income in the graduation quarter of 2021
JDBC and MySQL databases
Severe Tire Damage:世界上第一个在互联网上直播的摇滚乐队
[2D code image correction and enhancement] simulation of 2D code image correction and enhancement processing based on MATLAB