Comments (10)
How are you installing the application? With Apache or Nginx? Are you using WSGI, or something else to interpret the Python? Also, have you run the setup.py installation script? The hashcash.db will be automatically created on the first note. Also, there is no need to "chmod 777" anything. I would recommend making 'root' the owner of all the files and directories, and 'www-data' the group, and fully removing all permissions for the 'other' permission mode.
from d-note.
Hi Atoponce,
I'm using Apache with WSGI
Basically I've followed the installation steps on the readme.
I did run the setup.py too.
So not sure where is the issue is coming from...
from d-note.
At install, and after running python setup.py
, your directory tree setup should look like this: http://ae7.st/p/6wp (without the hashcash.db, actually). Your dnote.wsgi
should be in the same root path as the dnote/
directory. Permissions should be as follows: http://ae7.st/p/6iy. The dnote.wsgi
should be something like: http://ae7.st/p/5i0 (note that it's importing the dnote/__init.py__
module). Finally, for my Apache2 installation, here is the relevant section of my /etc/apache2/sites-enabled/default
config file: http://ae7.st/p/7so. Make sure to reload Apache, so it loads in the config. You need libapache2-mod-wsgi
installed, and the module loaded with a2enmod wsgi
.
Hope that helps.
from d-note.
Sorry for such late reply.
Unfortunately, I'm still not able to install it on my server.
And may be I got some confusion there:
In your virtualhost, you mention the variable <Directory /var/www/d>
But you don't have a folder called "d"
Same thing for your dnote.wsgi
Also, on the official tutorial, we need to create the data folder manually (But I though the setup script would do it?)
and for the permission, still on the same tutorial, there is:
chmod g+w,o= root.www-data /var/www/data/dnote/data
But no folder called /var/www/data (May be a typo)
So most probably I'm missing something...
After checking my logs I got:
File "/var/www/dnote.wsgi", line 6, in
from dnote import DNOTE as application
ImportError: No module named dnote
Any idea?
from d-note.
Hi Atoponce and all, any suggestion?
Thank you!
from d-note.
Sorry. I've been swamped at work and personal life, and haven't had the time to help out here.
I'm not sure what problems your having, but I've successfully built this from scratch on an Apache virtual machine, with no problem, using the documentation outlined.
from d-note.
Hi Atoponce,
Okay I'll try. By the way, in the documentation, there is:
chmod g+w,o= root.www-data /var/www/data/dnote/data
But I don't get the /var/www/data folder, where does it come from?
Not written on the documentation I think. (An error?)
Thanks!
from d-note.
I'll look into fixing the documentation, to make it a bit more agnostic. I'm guessing that is data that came from a copy/paste of an existing installation.
from d-note.
Karibu was this ever resolved? I have run into the same issue I cannot find a fix. The tutorial and what atoponce have are not the same.
from d-note.
I'm having the same issue... /var/log/apache2/error.log shows:
mod_wsgi (pid=4355): Target WSGI script '/var/www/dnote.wsgi' cannot be loaded as Python module.
mod_wsgi (pid=4355): Exception occurred processing WSGI script '/var/www/dnote.wsgi'.
Traceback (most recent call last):
File "/var/www/dnote.wsgi", line 7, in <module>
from dnote import DNOTE as application
ImportError: No module named dnote
from d-note.
Related Issues (20)
- Add support for copying/pasting in just a hash HOT 2
- iOS bug prevents selecting text with underscores HOT 2
- Add account drop support HOT 1
- Create a more mobile-friendly theme HOT 1
- Add support for changing the browser redirection timeout HOT 1
- information leak to server operator HOT 7
- New installation does not create dconfig.py HOT 2
- A too short or too long URL results in 500 error. Should be a 404. HOT 3
- TypeError: Incorrect padding HOT 1
- Apache Config
- Problem installation HOT 3
- Stopped maintenance? HOT 4
- Installation Nginx HOT 1
- Two installation issues HOT 1
- Errors in the INSTALL.md
- d-note running very slowly after renewing certificate and rebooting server HOT 7
- Customizing the html page HOT 2
- Note re-creation vulnerability HOT 12
- Link previews make messages go kaboom. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d-note.