如何在xampp上安装apxs

Var*_*yer 5 apache xampp mod-wsgi

我有一个网站,我正在运行Apache服务器,我想使用服务器和Web浏览器运行python脚本.我正在使用xampp,我已经研究过我必须使用modwsgi,我已经下载了zip并将其解压缩到我的桌面上.现在使用命令提示符我运行

setup.py install
Run Code Online (Sandbox Code Playgroud)

我第一次这样做,我没有安装python的设置工具(我有python 2.7.8,我在Windows 7 64位),所以我继续下载,但现在我运行命令我再次收到以下消息

RuntimeError: The 'apxs' command appears to not to be installed or is not exectuable.
Please check the list of prerequistes in the documentation for the package and install 
any missing Apache httpd server packages.
Run Code Online (Sandbox Code Playgroud)

我究竟如何安装apxs,因为我没有Apache而是xampp?

小智 4

我在 Windows 中安装apxs在 XAMPP 上。我写了一篇博客文章,其中包含完整的解决方案(西班牙语)。我基本上编译了我自己的apxs版本。步骤是:

  • 安装 Windows 版 ActiveState Perl
  • 添加C:\xampp\apache\bin到环境变量Path
  • 从这里下载 apxs
  • 将 tar.gz 文件解压缩为C:\xampp\apache\bin.
  • 执行:

ppm 安装 dmake

cd c:\xampp\apache\bin\apxs

perl 配置.pl --with-apache2=C:\xampp\apache --with-apache-prog=httpd.exe