django(在 mod_wsgi 下)和 php
在我的 debian 副本下,我运行一个通过 apache2 和 mod_wsgi 运行的 django 站点。现在我想在其中包含一个 wordpress,为此我需要安装 php - apache 绑定。我很好奇为此推荐什么库,以及我该如何做 apache2 配置文件?
这是我当前的 apache 2 000-default 文件:
<VirtualHost *:80>
Alias /media /home/myuser/myproject/statics
Alias /favicon.ico /home/myuser/myproject/statics/pic/favicon.ico
Alias /robots.txt /home/myuser/myproject/templates/robots.txt
Alias /admin_media /usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/contrib/admin/media
WSGIScriptAlias / /home/myuser/myproject/myproject_wsgi.py
WSGIDaemonProcess myproject user=myuser group=myuser threads=25
WSGIProcessGroup myproject
</VirtualHost>
我想将 Wordpress 添加到我的 www.mysite.com/blog
Under my debian copy, I run a django site runs via apache2 and mod_wsgi. Now I want to include a wordpress to it, for that I need to install php - apache bindings. I am curious what library is recommended for this, aswell as how shall I be doing the apache2 config file ?
Here is my current apache 2 000-default file:
<VirtualHost *:80>
Alias /media /home/myuser/myproject/statics
Alias /favicon.ico /home/myuser/myproject/statics/pic/favicon.ico
Alias /robots.txt /home/myuser/myproject/templates/robots.txt
Alias /admin_media /usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/contrib/admin/media
WSGIScriptAlias / /home/myuser/myproject/myproject_wsgi.py
WSGIDaemonProcess myproject user=myuser group=myuser threads=25
WSGIProcessGroup myproject
</VirtualHost>
I want to add Wordpress to my www.mysite.com/blog
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Debian 软件包
libapache2-mod-php5
将安装 Apache 2.2 的 php5 绑定。这还应该进行设置(在
/etc/apache2/mods-available/php5.load
或php5.conf
中),以便 .php 文件由 Apache 的 PHP 处理程序执行。然后,只需在某处安装 WordPress 并向其目录添加
别名
即可。The Debian package
libapache2-mod-php5
will install the php5 bindings for Apache 2.2.This should also set things up (in
/etc/apache2/mods-available/php5.load
orphp5.conf
) so .php files are executed by Apache's PHP handler.Then, it's a matter of installing WordPress somewhere and adding an
Alias
to its directory.