我正在运行Centos 6.5
并且正试图让Treeio
在Apache
上MySQL
后面运行
我对这些东西很陌生,因此犯了很多错误,但很好地来了。
当我通过Django
启动开发服务器时,它运行得很完美,但仅在使用Apache时它没有生成,它向我显示数据库错误。
OperationalError at /
unable to open database file
Request Method: GET
Request URL: http://MYURL.com:8000/
Django Version: 1.5.1
Exception Type: OperationalError
Exception Value:
unable to open database file
Exception Location: /usr/lib/python2.6/site-packages/django/db/backends/sqlite3/base.py in _sqlite_create_connection, line 296
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path:
['/usr/lib64/python26.zip',
'/usr/lib64/python2.6',
'/usr/lib64/python2.6/plat-linux2',
'/usr/lib64/python2.6/lib-tk',
'/usr/lib64/python2.6/lib-old',
'/usr/lib64/python2.6/lib-dynload',
'/usr/lib64/python2.6/site-packages',
'/usr/lib64/python2.6/site-packages/PIL',
'/usr/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info',
'/var/www/html/treeio/',
'/var/www/html/treeio/treeio']
Server time: Wed, 11 Jun 2014 09:20:04 +0000
所以我尝试删除整个数据库并重新运行安装,但没有改变
然后我尝试了python manage.py syncdb
/usr/lib/python2.6/site-packages/django/core/management/ init .py:465:Depreca tionWarning:'execute_manager'函数已弃用,您可能需要更新你的'manage.py';请参阅Django 1.4发行说明(https://docs.dja ngoproject.com/en/dev/releases/1.4/)。 DeprecationWarning) /usr/lib/python2.6/site-packages/django/core/management/init.py:409:弃用警告:'setup_environ'功能已被弃用,你可能需要更新你的'manage.py';请参阅Django 1.4发行说明(https://docs.djang oproject.com/en/dev/releases/1.4/)。 DeprecationWarning) 同步... 创建表格...... 安装自定义SQL ... 安装索引...... 从1个灯具中安装了203个物件
Synced:
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sessions
> django.contrib.sites
> django.contrib.admin
> django.contrib.markup
> django.contrib.messages
> treeio.core.search
> dajaxice
> dajax
> south
Not synced (use migrations):
- treeio.account
- treeio.core
- treeio.core.api
- treeio.documents
- treeio.events
- treeio.finance
- treeio.identities
- treeio.infrastructure
- treeio.knowledge
- treeio.messaging
- treeio.news
- treeio.projects
- treeio.reports
- treeio.sales
- treeio.services
- captcha
(use ./manage.py migrate to migrate these)
任何人都知道我可能做错了什么?
最重要的是,我的邮件服务器无法再通过webmail.domain.tld访问了......
编辑:webmail仍然有效,但是我无法将其重定向到webmail.domain.tld,它只能通过webmail.domain.tld / roundcube访问,但不是我的主要问题