ubuntu 下搭建apache + python+ django web开发平台
2010-02-19 22:49
585 查看
1 安装python
2 安装apache
sudo apt-get intsall apache2
3 配置apache2
我的webhome项目site-availabel/default为
4 可以在webhome里创建test.py测试,注意其执行权限
4 可以安装django
5 django-admin startproject webhome
打开localhost查看
2 安装apache
sudo apt-get intsall apache2
3 配置apache2
我的webhome项目site-availabel/default为
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /home/lwj/webhome <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /home/lwj/webhome/> Options Indexes FollowSymLinks MultiViews +ExecCGI AllowOverride None Order allow,deny allow from all </Directory> <Directory /home/lwj/webhome/> SetHandler python-program PythonPath "['/home/lwj/'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE webhome.settings PythonDebug On </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost>
4 可以在webhome里创建test.py测试,注意其执行权限
4 可以安装django
5 django-admin startproject webhome
打开localhost查看
相关文章推荐
- python25+django1.4+mysql5.1+apache2.2搭建生产管理网站
- Apache+MySQL+Python+Django在Windows下环境搭建指南
- 在ubuntu下搭建python开发环境(pycharm,postgresql,virtualenv, Django)
- Apache+MySQL+Python+Django在Windows下环境搭建指南(Python Web环境搭建)
- ubuntu 8.04安装python django apache
- apache(apache+django+python)服务搭建
- Apache+MySQL+Python+Django在Windows下环境搭建指南
- Django+apache+python+mod_python的环境搭建
- ubuntu 下搭建开发LAMP环境(linux apache mysql python)
- 使用Python Django在Ubuntu下搭建数据库型网站
- Ubuntu+Django+Nginx+uWSGI+Mysql搭建Python Web服务器
- 在Ubuntu14.04 apache mod_wsgi 搭建django app
- 在ubuntu下搭建python开发环境(pycharm,postgresql,virtualenv, Django)
- Ubuntu中Apache,Django,wsgi环境搭建
- Linux (ubuntu 12.04)下搭建Python Django环境
- django 阿里云上 ubuntu-x64 python+django+mysql 开发环境搭建
- Python+Django+Ubuntu+Apache+Nginx架设服务器成功记
- Ubuntu Server,Python,Django,Apache
- python:windows上搭建apache+mysql+django的过程
- Debian+Django1.11+Apache2.4+mod_wsgi+python2.7搭建服务器