apache configuration

125 views
Skip to first unread message

Jake - USPS

unread,
May 16, 2011, 9:51:17 AM5/16/11
to openIPAM
Using ubuntu 10.04 and python 2.6.5 after issues with 11.04 and python
2.7.1.

I'm not sure how I should be configuring my apache conf files to get
this going. I've tried the one @ http://code.google.com/p/openipam/wiki/Deployment
and get a login screen. But after entering a username/pass I would get
an error about connection refused on localhost:8080. I'm wondering if
this was because of the backend not being up? So I tried instead to
add VirtualHost entries following http://code.google.com/p/openipam/wiki/Installation#apache_+_mod_wsgi
but am not sure if I am doing it correctly:

Listen 8080

<VirtualHost 127.0.0.1:80>
# For the web frontend, we use https://...:443
Alias /images/ /usr/local/openipam/openIPAM/openipam/web/media/
images/
Alias /styles/ /usr/local/openipam/openIPAM/openipam/web/media/
styles/
Alias /scripts/ /usr/local/openipam/openIPAM/openipam/web/
media/scripts/
Alias /yaml/ /usr/local/openipam/openIPAM/openipam/web/media/
styles/yaml/

# Be sure the user you choose here exists and has read access
to
# $OPENIPAM_HOME and read/write to the necessary directories
listed
# in the config (default locations are /var/log/openipam and
# /var/lib/openipam/*
WSGIDaemonProcess openipam_web user=openipam processes=2
threads=15 python-path=/usr/local/openipam/openIPAM display-name=%
{GROUP}
WSGIProcessGroup openipam_web

WSGIScriptAlias / /usr/local/openipam/openIPAM/scripts/wsgi/
openipam.wsgi
</VirtualHost>

<VirtualHost 127.0.0.1:8080>
# For the backend, we use https://...:8443
WSGIDaemonProcess ssl.xmlrpc.ipam.usu.edu user=openipam
processes=2 threads=6 python-path=/usr/local/openipam/openIPAM display-
name=%{GROUP}
WSGIProcessGroup ssl.xmlrpc.ipam.usu.edu

WSGIScriptAlias /api /usr/local/openipam/openIPAM/scripts/wsgi/
openipamd.wsgi
</VirtualHost>

Using this configuration I can get a login screen also, but when I try
to login it hangs ... probably because 8080 is now listening, but not
doing what 8080 is expected to be doing.

I'm basically trying to just check this out, so I'm not currently
worried about SSL. This is in a VM running everything locally. I
would then access the site from the same VM. If more information is
needed please let me know.

Thanks,
Jake

Eldon Koyle

unread,
May 17, 2011, 12:21:22 PM5/17/11
to open...@googlegroups.com
Have you copied $OPENIPAM_DIR/openipam_config.example to
$OPENIPAM_DIR/openipam_config ?

If so, you might want to check the values in openipam_config/frontend.py
and make sure the xmlrpc_* parameters are set correctly. Also, check
openipam_config/backend.py and make sure the database parameters are
correct (become the www-data user and try to connect with those
parameters and see if it works).

It can also be very helpful to get any tracebacks from your apache error
log (default is /var/log/apache2/error.log on debian/ubuntu).

--
Eldon Koyle
System Administration Operations
Information Technology
Utah State University
--
BOFH excuse #208:
Your mail is being routed through Germany ... and they're censoring us.

> --
> You received this message because you are subscribed to the Google Groups "openIPAM" group.
> To post to this group, send email to open...@googlegroups.com.
> To unsubscribe from this group, send email to openipam+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/openipam?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages