Re: Python code changes are not reflecting on Django-based web server.

2021-09-30 Thread Ryan Nowakowski
You can use the ps command: ps -aef | grep "apache\|httpd" The process id(pid) is the second column usually. If it changes, then you know the process was restarted. - Ryan N On Thu, Aug 19, 2021 at 10:52:04PM -0400, Hasan Baig wrote: > Yes systemctl stop and start httpd, i verified by

Re: Python code changes are not reflecting on Django-based web server.

2021-08-19 Thread Hasan Baig
Yes systemctl stop and start httpd, i verified by checking the web page. How can i check pid? Regards Hasan > On Aug 19, 2021, at 8:55 AM, Ryan Nowakowski wrote: > > I'd verify that the systemctl commands are actually starting and stopping > httpd. Does the pid change? > >> On August 18,

Re: Python code changes are not reflecting on Django-based web server.

2021-08-19 Thread Abeer Eltanawy
I have been using the apachectl command instead and it works without an issue. sudo apachectl stop sudo apachectl start sudo apachectl restart On Thu, Aug 19, 2021 at 2:54 PM Ryan Nowakowski wrote: > I'd verify that the systemctl commands are actually starting and stopping > httpd. Does the

Re: Python code changes are not reflecting on Django-based web server.

2021-08-19 Thread Ryan Nowakowski
I'd verify that the systemctl commands are actually starting and stopping httpd. Does the pid change? On August 18, 2021 11:04:07 AM CDT, Hasan Baig wrote: >Hi, > >I have been hosting a django-based web server (httpd with mod_wsgi package) on >Linux CentOS 7. I used to reflect the changes made

Python code changes are not reflecting on Django-based web server.

2021-08-18 Thread Hasan Baig
Hi, I have been hosting a django-based web server (httpd with mod_wsgi package) on Linux CentOS 7. I used to reflect the changes made in my code by restarting the web server using the following commands: sudo systemctl stop httpd sudo systemctl start httpd and it would reflect the changes