2012/6/26 ehgonzalez <[email protected]>:
> José this is my configuration,
>
> db.py:
> from gluon.contrib.login_methods.ldap_auth import ldap_auth
>
> If mod_php is on:
> ERROR:root:missing ldap, try "easy_install python-ldap" (apache log error)
>
> If mod_php is off, the application works OK.
>
> mod_php  5.3.3
> mod_wsgi 3.3
> I've installed web2py from source.


I can not tell you where the problem is . It looks like php mod is
changing something in the way the directories are seen by
wsgihandler.py, thus it can not find gluon or gluon.contrib.
I think you should add gluon to your python path, so you avoid this problem.
That's why using the Debian package python-gluon in a Debian (or
Debian derivative distribution) helps, because the package allows you
doing
import gluon
at any directory in your machine.
You can do it even manually placing gluon dir from web2py sources in
the directory where your python modules are stored in your
distribution.




>
> Apache:
> <VirtualHost *:80>
>   ServerName web2py-test.foo.com
>   WSGIDaemonProcess web2pytest user=www-data group=www-data \
>                            display-name=%{GROUP}
>   WSGIProcessGroup web2pytest
>   WSGIScriptAlias / /var/www/web2pytest/wsgihandler.py
>
>   <Directory /var/www/web2pytest>
>     AllowOverride None
>     Order Allow,Deny
>     Deny from all
>     <Files wsgihandler.py>
>       Allow from all
>     </Files>
>   </Directory>
>
>   AliasMatch ^/([^/]+)/static/(.*) \
>            /var/www/web2pytest/applications/$1/static/$2
>   <Directory /var/www/web2pytest/applications/*/static/>
>     Order Allow,Deny
>     Allow from all
>   </Directory>
>
>   <LocationMatch ^/([^/]+)/appadmin>
>       Deny from all
>   </LocationMatch>
>
>   LogLevel info
>   CustomLog /var/log/apache2/web2pytest_access.log common
>   ErrorLog /var/log/apache2/web2pytest_error.log
> </VirtualHost>



I can not see any diferences in this configuration with the one I'm
using and I've sent in a previous email.


>
> Eduardo.
>
> El martes, 26 de junio de 2012 13:07:43 UTC-4:30, Bill Thayer escribió:
>>
>>
>> Hi Jose,
>>
>> Not to hijack your thread but quickly....
>>
>> Your are probably as busy as the rest of us but I'd love to see a recipe
>> or tutorial on how you got php MyAdmin to run with web2py.
>>
>> Regards,
>> Bill
>
> --
>
>
>

-- 



Reply via email to