Did you run the httpd executable with the -M option as described in
the documentation?

If you want us to help you are going to have to start providing us
more information than "it doesn't work".

So, start with running:

  APACHE_RUN_USER=www-data APACHE_RUN_GROUP=www-data /usr/sbin/apache2 -M

The setting of the two variables on command line may be required
because of non standard changes Ubuntu makes to ASF Apache
distribution.

If you truly did that apt-get command then on Ubuntu 10.10, you should
straight away see that wsgi_module is being loaded.

This is because the mod_wsgi binary package puts in place the file
/etc/apache2/mods-available/wsgi.load and seems to automatically link
it into /etc/apache2/mods-enabled as well.

Check your installation and make sure the original wsgi.load file is
in the mods-available directory and that a symlink exists to it is in
the mods-enabled directory.

Ensure you show the results of your checks, ie., do 'ls -las' on those
directories and post what is in them so we can separate verify their
contents. Also post the contents of the wsgi.load file.

Graham

On 3 May 2011 02:23, tan3 <[email protected]> wrote:
> The thing is I use Ubuntu, I did install apache2 and wsgi by the
> command
>
> sudo apt-get install apache2 libapache2-mod-wsgi
>
> then following the configuration i enabled a Django project under it,
> which is giving this error !!! :|
>
> On May 2, 5:35 pm, Graham Dumpleton <[email protected]>
> wrote:
>> Follow instructions in:
>>
>> http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Apache...
>>
>> Specifically, find the Apache httpd executable (which could be named
>> different on your system) and run it with the -M option.
>>
>> If you are using standard binary distribution packages and have done
>> the correct command to enable the module and it still doesn't show
>> wsgi_module in the list then you have broken somehow your Apache
>> installation.
>>
>> What manual changes have you made to Apache configuration files? Are
>> you using the originals or have you replaced them in whole or in part?
>>
>> Graham
>>
>> On 2 May 2011 21:56, tan3 <[email protected]> wrote:
>>
>>
>>
>>
>>
>>
>>
>> > Hello,
>>
>> > I did that command also. But too the error :(
>>
>> > Thank you
>>
>> > On May 1, 10:18 pm, Bo Daley <[email protected]> wrote:
>> >> in ubuntu you should be able to do something like:
>>
>> >>    sudo a2enmod wsgi
>> >>    sudo /etc/init.d/apache2 reload
>>
>> >> and it will set up the apache configuration for you.
>>
>> >> bo.
>>
>> >> On Mon, May 2, 2011 at 12:14 PM, tan3 <[email protected]> wrote:
>> >> > Hello,
>>
>> >> > I installed it using "apt-get install libapache2-mod-wsgi " in ubuntu.
>> >> > So need i still add the Load module command?
>>
>> >> > Thank you,
>>
>> >> > On May 2, 4:28 am, Graham Dumpleton <[email protected]>
>> >> > wrote:
>> >> >> Your post came through lacking additional content. Did you intend
>> >> >> there to be anything in it?
>>
>> >> >> Graham
>>
>> >> >> On 1 May 2011 22:17, Nagaraj Tantri <[email protected]> wrote:
>>
>> >> >> > On Fri, Apr 29, 2011 at 7:45 AM, tan3 <[email protected]> 
>> >> >> > wrote:
>>
>> >> >> >> Hi,
>>
>> >> >> >> I installed apache2 and mod-wsgi in ubuntu. I even entered the 
>> >> >> >> config
>> >> >> >> details for WSGI in defualt of apache2
>>
>> >> >> >>        Alias /media/ /home/nagaraj/ghar/templates/media/
>>
>> >> >> >>        <Directory /home/nagaraj/ghar/templates/media>
>> >> >> >>        Order deny,allow
>> >> >> >>        Allow from all
>> >> >> >>        </Directory>
>>
>> >> >> >>        WSGIScriptAlias / /home/nagaraj/ghar/apache/django.wsgi
>>
>> >> >> >>        <Directory /home/nagaraj/ghar/apache>
>> >> >> >>        Order allow,deny
>> >> >> >>        Allow from all
>> >> >> >>        </Directory>
>>
>> >> >> >> Which here is my Django project related path.
>>
>> >> >> >> But i got an error saying
>> >> >> >> Syntax error on line 50 of /etc/apache2/sites-enabled/000-default:
>> >> >> >> Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by 
>> >> >> >> a
>> >> >> >> module not included in the server configuration
>> >> >> >> Action 'configtest' failed.
>> >> >> >> The Apache error log may have more information.
>> >> >> >>   ...fail!
>>
>> >> >> >> Can anyone tell, what is wrong here? Please
>>
>> >> >> > --
>> >> >> > Regards,
>> >> >> > Nagaraj Tantri
>> >> >> > (Cell : +919743232150)
>>
>> >> >> > --
>> >> >> > You received this message because you are subscribed to the Google 
>> >> >> > Groups
>> >> >> > "modwsgi" group.
>> >> >> > To post to this group, send email to [email protected].
>> >> >> > To unsubscribe from this group, send email to
>> >> >> > [email protected].
>> >> >> > For more options, visit this group at
>> >> >> >http://groups.google.com/group/modwsgi?hl=en.
>>
>> >> > --
>> >> > You received this message because you are subscribed to the Google 
>> >> > Groups "modwsgi" group.
>> >> > To post to this group, send email to [email protected].
>> >> > To unsubscribe from this group, send email to 
>> >> > [email protected].
>> >> > For more options, visit this group 
>> >> > athttp://groups.google.com/group/modwsgi?hl=en.
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups 
>> > "modwsgi" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to 
>> > [email protected].
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/modwsgi?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/modwsgi?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to