{"id":407,"date":"2015-11-16T15:08:16","date_gmt":"2015-11-16T15:08:16","guid":{"rendered":"http:\/\/onlinelab.info\/?p=407"},"modified":"2015-11-16T15:08:16","modified_gmt":"2015-11-16T15:08:16","slug":"install-pydash","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2015\/11\/16\/install-pydash\/","title":{"rendered":"Install pyDash"},"content":{"rendered":"<h1>1. Installation<\/h1>\n<p>By default the install will be done using the <code>Apache<\/code> webserver.<\/p>\n<h3><a id=\"user-content-fedora--pidora\" class=\"anchor\" href=\"https:\/\/github.com\/k3oni\/pydash\/wiki\/Install-pyDash#fedora--pidora\" target=\"_blank\" rel=\"noopener\"><\/a>Fedora &amp; Pidora<\/h3>\n<p>Run:<\/p>\n<p><code>sudo yum -y install git python-pip httpd mod_wsgi<\/code><\/p>\n<h3><a id=\"user-content-centos\" class=\"anchor\" href=\"https:\/\/github.com\/k3oni\/pydash\/wiki\/Install-pyDash#centos\" target=\"_blank\" rel=\"noopener\"><\/a>Centos<\/h3>\n<p><strong>Centos 6<\/strong><\/p>\n<p>Run:<\/p>\n<p><code>sudo yum -y install http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-8.noarch.rpm<\/code><\/p>\n<p><code>sudo yum -y install git python-pip httpd mod_wsgi<\/code><\/p>\n<p><strong>Centos 5<\/strong><\/p>\n<p>Run:<\/p>\n<p><code>sudo yum -y install http:\/\/dl.fedoraproject.org\/pub\/epel\/5\/i386\/epel-release-5-4.noarch.rpm<\/code><\/p>\n<p><code>sudo yum -y install git python-pip httpd mod_wsgi<\/code><\/p>\n<h3><a id=\"user-content-debian--ubuntu--raspbian\" class=\"anchor\" href=\"https:\/\/github.com\/k3oni\/pydash\/wiki\/Install-pyDash#debian--ubuntu--raspbian\" target=\"_blank\" rel=\"noopener\"><\/a>Debian &amp; Ubuntu &amp; Raspbian<\/h3>\n<p>Run:<\/p>\n<p><code>sudo apt-get install git python-pip apache2 libapache2-mod-wsgi<\/code><\/p>\n<h1><a id=\"user-content-2-setup\" class=\"anchor\" href=\"https:\/\/github.com\/k3oni\/pydash\/wiki\/Install-pyDash#2-setup\" target=\"_blank\" rel=\"noopener\"><\/a>2. Setup<\/h1>\n<p>Please make sure you change the <strong>SECRET_KEY<\/strong>, please see<a href=\"https:\/\/docs.djangoproject.com\/en\/dev\/ref\/settings\/\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.djangoproject.com\/en\/dev\/ref\/settings\/<\/a> for more details.<\/p>\n<p>Run:<\/p>\n<pre><code>cd \/var\/www\nsudo git <a href=\"https:\/\/github.com\/pythonvietnam\/pydash\" target=\"_blank\" rel=\"noopener\">clone https:\/\/github.com\/k3oni\/pydash<\/a>\ncd pydash\nedit pydash\/settings.py and change the SECRET_KEY value\nsudo pip install -r requirements.txt\nsudo .\/manage.py syncdb\ncd ..\nsudo chown -R apache.apache pydash   - For Centos &amp; Fedora &amp; Pidora\nsudo chown -R www-data.www-data pydash   - For Ubuntu &amp; Debian &amp; Raspbian\n<\/code><\/pre>\n<p>Enter the user information, to create your login user:<\/p>\n<pre><code> You just installed Django's auth system, which means you don't have any superusers defined.\n Would you like to create one now? (yes\/no): yes\n Username (leave blank to use 'root'): admin (Enter your desired username)\n Email address: xxxxx@xxxxxx.xxx (Enter your email address)\n Password: xxxxx (Enter your desired password)\n Password (again): xxxxx (Enter your password again)\n<\/code><\/pre>\n<h1><a id=\"user-content-3-setup-apache\" class=\"anchor\" href=\"https:\/\/github.com\/k3oni\/pydash\/wiki\/Install-pyDash#3-setup-apache\" target=\"_blank\" rel=\"noopener\"><\/a>3. Setup Apache<\/h1>\n<h3><a id=\"user-content-centos--fedora--pidora\" class=\"anchor\" href=\"https:\/\/github.com\/k3oni\/pydash\/wiki\/Install-pyDash#centos--fedora--pidora\" target=\"_blank\" rel=\"noopener\"><\/a>Centos &amp; Fedora &amp; Pidora<\/h3>\n<p>Add the config <code>pydash.conf<\/code> file under <code>\/etc\/httpd\/conf.d\/<\/code>:<\/p>\n<pre><code> WSGISocketPrefix run\/wsgi\n   &lt;VirtualHost *:80&gt;\n     ServerAdmin webmaster@dummy-host.example.com\n     ServerName dummy-host.example.com\n\n     WSGIDaemonProcess pydash display-name=%{GROUP} python-path=\/var\/www\/pydash\n     WSGIProcessGroup pydash\n     WSGIScriptAlias \/ \/var\/www\/pydash\/pydash\/wsgi.py\n\n     Alias \/static \/var\/www\/pydash\/static\/\n     Alias \/media \/var\/www\/pydash\/media\/\n\n     &lt;Directory \/var\/www\/pydash\/pydash&gt;\n         &lt;Files wsgi.py&gt;\n             Order deny,allow\n             Allow from all\n         &lt;\/Files&gt;\n     &lt;\/Directory&gt;\n\n     #CustomLog logs\/pydash-access_log common\n     #ErrorLog logs\/pydash-error_log\n &lt;\/VirtualHost&gt;\n<\/code><\/pre>\n<p>Start the webserver:<\/p>\n<pre><code> sudo service httpd start\n<\/code><\/pre>\n<h3><a id=\"user-content-debian--ubuntu--raspbian-1\" class=\"anchor\" href=\"https:\/\/github.com\/k3oni\/pydash\/wiki\/Install-pyDash#debian--ubuntu--raspbian-1\" target=\"_blank\" rel=\"noopener\"><\/a>Debian &amp; Ubuntu &amp; Raspbian<\/h3>\n<p>Add the config <code>pydash.conf<\/code> file under <code>\/etc\/apache2\/conf.d<\/code> or <code>\/etc\/apache2\/sites-enabled<\/code>:<\/p>\n<pre><code> WSGISocketPrefix \/var\/run\/apache2\/wsgi\n   &lt;VirtualHost *:80&gt;\n     ServerAdmin webmaster@dummy-host.example.com\n     ServerName dummy-host.example.com\n\n     WSGIDaemonProcess pydash display-name=%{GROUP} python-path=\/var\/www\/pydash\n     WSGIProcessGroup pydash\n     WSGIScriptAlias \/ \/var\/www\/pydash\/pydash\/wsgi.py\n\n     Alias \/static \/var\/www\/pydash\/static\/\n     Alias \/media \/var\/www\/pydash\/media\/\n\n     &lt;Directory \/var\/www\/pydash\/pydash&gt;\n         &lt;Files wsgi.py&gt;\n             Order deny,allow\n             Allow from all\n         &lt;\/Files&gt;\n     &lt;\/Directory&gt;\n\n     #CustomLog logs\/pydash-access_log common\n     #ErrorLog logs\/pydash-error_log\n &lt;\/VirtualHost&gt;\n<\/code><\/pre>\n<p>Start the webserver<\/p>\n<pre><code> sudo service apache2 start<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. Installation By default the install will be done using the Apache webserver. Fedora &amp; Pidora Run: sudo yum -y install git python-pip httpd mod_wsgi Centos Centos 6 Run: sudo yum -y install http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-8.noarch.rpm sudo&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,8],"tags":[],"class_list":["post-407","post","type-post","status-publish","format-standard","hentry","category-linux","category-monitoring"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/comments?post=407"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/407\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}