Skip to content

Issues while hosting in server using Apache2 #10

Description

@sounak98

Set proxy

Add these lines of codes in the wsgi file.

os.environ['http_proxy']='http://proxy.iiit.ac.in:8080'
os.environ['https_proxy']='http://proxy.iiit.ac.in:8080'

Give permissions

WARNING Temporary Solution

Give permissions for the root directory.

chmod -R 777 /

Some files, specifically /proc would fail. This should be fine in general.

Set the HOME env variable

The user configured for the Apache2 server www-data with home folder as /var/www. This is the default configuration. But it has no HOME env variable. Add this line of code to set the HOME env variable in wsgi file.

os.environ['HOME']='/var/www'

Changes in literate-tools

Can use sounak98/literate-tools for now.

Change these lines in elisp/publish.el

(setq load-path
      (append
       (list "~/emacs/lisp/org-8.2.10/lisp"
	     "~/emacs/lisp/org-8.2.10/contrib/lisp")
       load-path))

to

(setq load-path
      (append
       (list (concat (getenv "HOME") "/emacs/lisp/org-8.2.10/lisp")
	     (concat (getenv "HOME") "/emacs/lisp/org-8.2.10/contrib/lisp"))
       load-path))

Please make the changes in literate-tools @travula

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions