Re: deploying django project with mod_wsgi and apache

2020-05-16 Thread Kurosh Sol
what is your server
as you are Japanese might be use server or sakura?


On Sun, May 17, 2020 at 10:07 AM みやうち`  wrote:

> I got completely stuck deploying django to production.
>
> I deployed my project using apache and mod_wsgi, and then it hangs I
> access it with browser.
> Neither django nor apache gives me any errors at all, so I can't guess the
> cause of problem.
> Since it can be accessed by starting with "runserver",
> I think there's nothing wrong with the project.
> Also, I can access it successfully when I deployed a simple test app with
> apache and mod_wsgi,
> I think there is no problem with the configuration of apache, mod_wsgi and
> my server.
>
> It would be very helpful if you give me any idea of the cause or way of
> investigate it.
>
> My environment
> django : 2.1.15
> mod_wsgi : 4.7.1
> apache : 2.4.6
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8d332ddf-ae69-4716-8107-daf69eff1497%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJq35RmbMx4DTT%2BvFWuP_UquN4N-3Kw0LawhfgRzXXQ2aURd%2Bg%40mail.gmail.com.


is that any way to deploy django in apache with centos

2019-05-30 Thread Kurosh Sol
is that any way to set Django in apache with wsgi mod  in centos
I keep reading and still get error 
any good resource can really work?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d041c339-201f-420b-a2b1-849016ae0b7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


httpd.conf error on include django.conf and duplicate wsgi name

2019-05-16 Thread Kurosh Sol
I want to set up my Django in Apache server using wsgi 
I have already install mod_wsgi but when I make django.conf
and try to include it in my 
"etc/apache2/conf.d/includes/pre_main_global.conf
to get include to my httpd.conf
i got this error in my whm 
Sorry, you cannot update the include files at this time. Your Apache 
configuration file currently has a syntax error.*Error:*

The “/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf/httpd.conf -C Include 
"/etc/apache2/conf.modules.d/*.conf"” command (process 17945) reported 
error number 1 when it ended. Configuration problem detected on line 12 of 
file /etc/apache2/conf.d/django.conf: Name duplicates previous WSGI daemon 
definition. --- /etc/apache2/conf.d/django.conf --- 6 7  8 
Require all granted 9  10 11 12 ===> WSGIDaemonProcess 
centos 
python-path=/home/zporta6/public_html/cgi-bin/django1/project1:/home/zporta6/public_html/cgi-bin/django1/lib/python2.7/site-packages
 
<=== 13WSGIProcessGroup centos 14WSGIScriptAlias / 
/home/zporta6/public_html/cgi-bin/django1/project1/project1/wsgi.py --- 
/etc/apache2/conf.d/django.conf ---
I try to change the name of project1 I thought maybe name duplicated but 
still the same result 

any idea what should I do
my django.conf is :
Alias /static /home/zporta6/public_html/cgi-bin/django1/project1/static

Require all granted




Require all granted



WSGIDaemonProcess centos 
python-path=/home/zporta6/public_html/cgi-bin/django1/project1:/home/zporta6/public_html/cgi-bin/django1/lib/python2.7/site-packages
WSGIProcessGroup centos
WSGIScriptAlias / 
/home/zporta6/public_html/cgi-bin/django1/project1/project1/wsgi.py


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8177324c-ed97-4fe8-add2-dc216e1d8e21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Run django in apache2.4+centos7.5+python2.7

2019-05-16 Thread Kurosh Sol
thank you I just try it  but its totally different  with apache and give me
in different port(81)
I am looking for using Django in apache with port 80

On Wed, May 15, 2019 at 11:22 PM Chetan Ganji 
wrote:

> This might help you.
>
> https://bitnami.com/stack/django/installer
>
>
> Regards,
> Chetan Ganji
> +91-900-483-4183
> ganji.che...@gmail.com
> http://ryucoder.in
>
>
> On Wed, May 15, 2019 at 9:13 PM Kurosh Sol  wrote:
>
>> Hi,
>> I would like to ask a question about django setup
>> Please if you can help me
>> I use dedicate server from inmotion hosting .com
>> With apache 2.4 (cpanel)
>> I have easy_apach4 in my whm
>> I install python 3 and i have python 2.7 in my server  and when i commend
>> django in python terminal
>> I get
>> (1, 11, 20, u’final’ ,0)
>> I can run my django project in my port 8000 by run serever
>> Also i can run python code in my cgi folder of my website
>> But i can not run django from apache server
>> I try to install mode_wsgi but i got error in no package found
>> Than i read article about can not install from cpanel so i tried to
>> download and custom install but new version of easy_apache doesn’t accept
>> custom install
>> Is there anyway i can use apache
>> I would be more than happy if get any help
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/69649cf3-310d-4eba-b6e9-770dff0bf76c%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMKMUjuUJaOnvpPd4Tc2Azya9ckiht2wNm0NKmcS2hJ%3DR0e_WA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMKMUjuUJaOnvpPd4Tc2Azya9ckiht2wNm0NKmcS2hJ%3DR0e_WA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJq35Rk%3DpWMRAEMGktr4oK6NMg8VM%2B6E_0vkwqhiaDTJtfHsVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Run django in apache2.4+centos7.5+python2.7

2019-05-15 Thread Kurosh Sol
Hi, 
I would like to ask a question about django setup 
Please if you can help me 
I use dedicate server from inmotion hosting .com 
With apache 2.4 (cpanel) 
I have easy_apach4 in my whm 
I install python 3 and i have python 2.7 in my server  and when i commend 
django in python terminal 
I get
(1, 11, 20, u’final’ ,0)
I can run my django project in my port 8000 by run serever 
Also i can run python code in my cgi folder of my website
But i can not run django from apache server
I try to install mode_wsgi but i got error in no package found 
Than i read article about can not install from cpanel so i tried to download 
and custom install but new version of easy_apache doesn’t accept custom install
Is there anyway i can use apache 
I would be more than happy if get any help

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/69649cf3-310d-4eba-b6e9-770dff0bf76c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.