Re: [modwsgi] apache doesn't respond when LoadModule added

49 views
Skip to first unread message

Gery Herbozo

unread,
Sep 17, 2012, 10:10:52 AM9/17/12
to mod...@googlegroups.com
Hi,

what do you get after running "service httpd restart"?

On 17 September 2012 14:27, gmailuser <galikhan...@gmail.com> wrote:
> Hi all
> apache doesn't respond when I add
>
> LoadModule mod_wsgi modules/mod_wsgi.so
>
> to httpd.conf. There nothing in error_log.
> I am using VPS ,rhel5, apache(2.0.64), mod_wsgi-3.4, python2.7
> compilation of mod_wsgi was ok.
>
>
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/modwsgi/-/Y9HzkfeOTwEJ.
> To post to this group, send email to mod...@googlegroups.com.
> To unsubscribe from this group, send email to
> modwsgi+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/modwsgi?hl=en.

gmailuser

unread,
Sep 18, 2012, 1:17:39 AM9/18/12
to mod...@googlegroups.com
Is there any difference between 'apachect restart' and your suggestion?
Effect same as before apache doesn't respond. Nothing in error_log.
Httpd.conf contains configurations for another hosts and when i try to call for example mysite.com (which is in httpd.conf)
my browser loads but doesnt show anything.



понедельник, 17 сентября 2012 г., 14:10:53 UTC пользователь Gery написал:

Graham Dumpleton

unread,
Sep 18, 2012, 2:20:02 AM9/18/12
to mod...@googlegroups.com
Define doesn't respond?

You mean it is not contactable? You mean it will not even respond to a
request for a static file?

With what WSGI application are you testing? The WSGI hello world or
some big framework dependent application?

What mod_wsgi configuration have you used to configure your WSGI application?

Are you also loading mod_python or mod_php into same Apache?

Have you tried running Apache explicitly as:

httpd -M

to see if Apache can even start and dump out list of modules it is loading?

Note that on some systems 'httpd' may actually need to be 'apache2'.

Graham

Galikhan Khamitov

unread,
Sep 18, 2012, 3:03:26 AM9/18/12
to mod...@googlegroups.com
I mean that it is working but when I call some php site (that works normally before i add loadModule) 
my browser gets loaded and doesnt give some feedback. httpd.conf generated by cpanel may be beacuse of this 
there is inconsistensy.
errorlog shows number of rows:
[notice] child pid 94## exit signal segmentation fault(11)

About testing as i said a just only add 'loadModule' and this problem starts.
rows with hello wsgi app are commented , for now i dont use them 

I dont use mod_python and mod_php

Seems like this version of apache(2.0.64) doesnt have this command 'http -M'

--
Galikhan Khamitov
Picture

Graham Dumpleton

unread,
Sep 18, 2012, 3:06:28 AM9/18/12
to mod...@googlegroups.com
If you aren't using mod_php, how are you hosting the PHP site within the same Apache?

Galikhan Khamitov

unread,
Sep 18, 2012, 3:24:26 AM9/18/12
to mod...@googlegroups.com
mm... i used 'http -l' and i didn't see mod_php,
seems like by use of <ifmodule> it loads mod_php5, 

Gery Herbozo

unread,
Sep 18, 2012, 4:21:49 AM9/18/12
to mod...@googlegroups.com
I use rhel 32-bit, apache 2 (httpd-2.2.3-43.el5 RPM), mod_wsgi-3.3 (source) and this is what I get after running httpd -M:

[root@localhost gery]# httpd -M
Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_file_module (shared)
 authn_alias_module (shared)
 authn_anon_module (shared)
 authn_dbm_module (shared)
 authn_default_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 authz_owner_module (shared)
 authz_groupfile_module (shared)
 authz_dbm_module (shared)
 authz_default_module (shared)
 ldap_module (shared)
 authnz_ldap_module (shared)
 include_module (shared)
 log_config_module (shared)
 logio_module (shared)
 env_module (shared)
 ext_filter_module (shared)
 mime_magic_module (shared)
 expires_module (shared)
 deflate_module (shared)
 headers_module (shared)
 usertrack_module (shared)
 setenvif_module (shared)
 mime_module (shared)
 dav_module (shared)
 status_module (shared)
 autoindex_module (shared)
 info_module (shared)
 dav_fs_module (shared)
 vhost_alias_module (shared)
 negotiation_module (shared)
 dir_module (shared)
 actions_module (shared)
 speling_module (shared)
 userdir_module (shared)
 alias_module (shared)
 rewrite_module (shared)
 proxy_module (shared)
 proxy_balancer_module (shared)
 proxy_ftp_module (shared)
 proxy_http_module (shared)
 proxy_connect_module (shared)
 cache_module (shared)
 suexec_module (shared)
 disk_cache_module (shared)
 file_cache_module (shared)
 mem_cache_module (shared)
 cgi_module (shared)
 version_module (shared)
 wsgi_module (shared)
 auth_kerb_module (shared)
 mysql_auth_module (shared)
 auth_pgsql_module (shared)
 authz_ldap_module (shared)
 nss_module (shared)
 perl_module (shared)
 php5_module (shared)
 proxy_ajp_module (shared)
 python_module (shared)
 ssl_module (shared)
 dav_svn_module (shared)
 authz_svn_module (shared)
Syntax OK
[root@localhost gery]#

I installed everything from rpm, the only source is mod_wsgi-3.3. The "apachect restart" seems to me that doesn't do anaything "relevant" in my system, only "service httpd restart" does the job.

HTH,

Gery

Graham Dumpleton

unread,
Oct 2, 2012, 2:29:35 AM10/2/12
to mod...@googlegroups.com
Did you sort this out. Been on holiday for almost a month and so couldn't keep up with various email discussions. Trying to catch up now.

Any chance you can upgrade to Apache 2.2 and not use 2.0?

Graham

Galikhan Khamitov

unread,
Oct 2, 2012, 3:35:47 AM10/2/12
to mod...@googlegroups.com
Problem is found, the cause was incorrect installation of python, so for now its ok, 
thanx for help 
Reply all
Reply to author
Forward
0 new messages