You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Shopware 6安装时因PHP Binary选择错误出现使用错误求助

Shopware 6安装错误:误选Apache程序作为PHP Binary的解决办法

问题描述

使用XAMPP安装Shopware 6时,在配置环节选择PHP Binary时,错误选择了C:\xampp\apache\bin\httpd.exe(Apache服务器执行文件),随后触发Apache命令行使用说明的错误输出:

Usage: C:\\xampp\\apache\\bin\\httpd.exe [-D name] [-d directory] [-f file]
                                     [-C "directive"] [-c "directive"]
                                     [-w] [-k start|restart|stop|shutdown] [-n service_name]
                                     [-k install|config|uninstall] [-n service_name]
                                     [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
  -D name            : define a name for use in  directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -n name            : set service name and use its ServerConfigFile and ServerRoot
  -k start           : tell Apache to start
  -k restart         : tell running Apache to do a graceful restart
  -k stop|shutdown   : tell running Apache to shutdown
  -k install         : install an Apache service
  -k config          : change startup Options of an Apache service
  -k uninstall       : uninstall an Apache service
  -w                 : hold open the console window on error
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed vhost settings
  -t -D DUMP_RUN_CFG : show parsed run settings
  -S                 : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
  -t -D DUMP_MODULES : show all loaded modules 
  -M                 : a synonym for -t -D DUMP_MODULES
  -t -D DUMP_INCLUDES: show all included configuration files
  -t                 : run syntax check for config files
  -T                 : start without DocumentRoot(s) check
  -X                 : debug mode (only one worker, do not detach)

解决方案

  • 错误原因:你选择的是Apache服务器的执行文件,而非Shopware所需的PHP二进制文件。
  • 正确操作:
    1. 返回Shopware安装程序的PHP Binary选择界面
    2. 导航到XAMPP安装目录下的php文件夹,选择其中的php.exe文件(默认路径为C:\xampp\php\php.exe)
    3. 重新进行版本选择和Shopware下载流程,即可正常推进安装

内容的提问来源于stack exchange,提问作者Berk Sunduri

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.27 22:23:22