You're still using mod_python.

If you read the error, you'll see it can't find django. Make sure you have
all the packages required for the version of Python that Apache is using.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Tue, Jun 26, 2012 at 4:52 AM, Nilesh Jaiswal <nileshj...@gmail.com>wrote:

> That solved my mod_python issue.
>
> Now i am getting "Review Board is taking a nap"
>
> After looking into the apache error.log
>
>  d = imp.find_module(parts[i], path)
> [Tue Jun 26 19:40:29 2012] [error] [client 58.49.104.138] PythonHandler
> django.core.handlers.modpython: ImportError: No module named django
> [Tue Jun 26 19:40:45 2012] [error] [client 14.140.41.162] PythonHandler
> django.core.handlers.modpython: Traceback (most recent call last):
> [Tue Jun 26 19:40:45 2012] [error] [client 14.140.41.162] PythonHandler
> django.core.handlers.modpython:   File
> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in
> HandlerDispatch\n    log=debug)
> [Tue Jun 26 19:40:45 2012] [error] [client 14.140.41.162] PythonHandler
> django.core.handlers.modpython:   File
> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 461, in
> import_module\n    f, p, d = imp.find_module(parts[i], path)
> [Tue Jun 26 19:40:45 2012] [error] [client 14.140.41.162] PythonHandler
> django.core.handlers.modpython: ImportError: No module named django
>
> But i am using python2.7 installed at /usr/local/ am i missing some thing
> here?
>
>
>
> On Tue, Jun 26, 2012 at 4:17 PM, Nilesh Jaiswal <nileshj...@gmail.com>wrote:
>
>> Thank you Chris !!
>>
>>
>> On Tue, Jun 26, 2012 at 12:48 AM, Christian Hammond 
>> <chip...@chipx86.com>wrote:
>>
>>> It looks like you're trying to use mod_python, which apparently isn't
>>> installed.
>>>
>>> You should be using mod_wsgi. mod_python is dead and not available on
>>> newer distros. You'll need to generate a site configuration with that.
>>>
>>> Christian
>>>
>>> --
>>> Christian Hammond - chip...@chipx86.com
>>> Review Board - http://www.reviewboard.org
>>> VMware, Inc. - http://www.vmware.com
>>>
>>>
>>> On Mon, Jun 25, 2012 at 11:15 AM, Nilesh Jaiswal 
>>> <nileshj...@gmail.com>wrote:
>>>
>>>> Hi All,
>>>>
>>>> Can anybody know what i am missing in the below configuration..any
>>>> pointer would really help us.
>>>>
>>>> Thanks in advance.
>>>>
>>>> Regards,
>>>> Nilesh
>>>>
>>>>
>>>> On Mon, Jun 25, 2012 at 5:46 PM, Nilesh Jaiswal 
>>>> <nileshj...@gmail.com>wrote:
>>>>
>>>>> Dear All,
>>>>>
>>>>> I have install latest version RB server.
>>>>>
>>>>> After installation i copied the apache_mod_python.conf to httpd.conf
>>>>>
>>>>> <VirtualHost *:80>
>>>>>         ServerName <some IP address>
>>>>>         DocumentRoot "/var/www/rbc/htdocs"
>>>>>
>>>>>         ErrorDocument 500 /errordocs/500.html
>>>>>         # Serve django pages
>>>>>         <Location "/rbc">
>>>>>                 # Error handlers
>>>>>                 *PythonPath "['/var/www/rbc/conf'] + sys.path"*
>>>>>                 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
>>>>>                 SetEnv PYTHON_EGG_CACHE "/var/www/rbc/tmp/egg_cache"
>>>>>                 SetEnv HOME "/var/www/rbc/data"
>>>>>                 SetHandler mod_python
>>>>>                 PythonHandler django.core.handlers.modpython
>>>>>                 PythonAutoReload Off
>>>>>                 PythonDebug Off
>>>>>                 # Used to run multiple mod_python sites in the same
>>>>> apache
>>>>>                 PythonInterpreter reviewboard_rbc
>>>>>         </Location>
>>>>>
>>>>>         # Serve static media without running it through mod_python
>>>>>         # (overrides the above)
>>>>>         <Location "/rbc/media">
>>>>>                 SetHandler None
>>>>>         </Location>
>>>>>         <Location "/rbc/errordocs">
>>>>>                 SetHandler None
>>>>>         </Location>
>>>>>
>>>>>         <Directory "/var/www/rbc/htdocs">
>>>>>                 AllowOverride All
>>>>>         </Directory>
>>>>>
>>>>>         # Alias static media requests to filesystem
>>>>>         Alias /rbc/media "/var/www/rbc/htdocs/media"
>>>>>         Alias /rbc/errordocs "/var/www/rbc/htdocs/errordocs"
>>>>> </VirtualHost>
>>>>>
>>>>>
>>>>> But after starting apache i am getting below error message, can you
>>>>> point me what i missing here
>>>>>
>>>>> *Invalid command 'PythonPath', perhaps misspelled or defined by a
>>>>> module not included in the server configuration*
>>>>>
>>>>>
>>>>  --
>>>> Want to help the Review Board project? Donate today at
>>>> http://www.reviewboard.org/donate/
>>>> Happy user? Let us know at http://www.reviewboard.org/users/
>>>> -~----------~----~----~----~------~----~------~--~---
>>>> To unsubscribe from this group, send email to
>>>> reviewboard+unsubscr...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/reviewboard?hl=en
>>>>
>>>
>>>  --
>>> Want to help the Review Board project? Donate today at
>>> http://www.reviewboard.org/donate/
>>> Happy user? Let us know at http://www.reviewboard.org/users/
>>> -~----------~----~----~----~------~----~------~--~---
>>> To unsubscribe from this group, send email to
>>> reviewboard+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/reviewboard?hl=en
>>
>>
>>
>  --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~----------~----~----~----~------~----~------~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en
>

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to