Centos Webmin install
Forum » WikiPBX / Technical Support » Centos Webmin install
Started by: umnganeumngane
On: 1262452789|%e %b %Y, %H:%M %Z|agohover
Number of posts: 6
rss icon RSS: New posts
Summary:
All seems OK, but no webpage
Centos Webmin install
umnganeumngane 1262452789|%e %b %Y, %H:%M %Z|agohover

I am running Centos5, which has Webmin installed. I bypass the Webmin/Apache stuff by putting "VirtualDocumentRoot /etc/apache2/sites-enabled" in httpd.conf.

Installed wikipbx precisely as specified, using Python2.6.

Have made error log level on Apache "info" so getting detailed information in the log file.

Everything seems to be perfect - says mod_wsgi is configured and attaching interpreters, initialising Python etc.

I then start Freeswitch (5pre10)

But when I point my browser at wikipbx.mydomain.com I get a directory listing (disabled security for that) only.

Various errors on Freeswitch console all related to mod_xml_curl stating "Received HTTP error 404 tring to fetch http://wikipbx.mydomain.com:80/xml_dialplan/

As I said all configs, including xml_curl, were done by the book.

Could anyone point me in a direction I can go to look for the problem?

Reply  |  Options
Unfold Centos Webmin install by umnganeumngane, 1262452789|%e %b %Y, %H:%M %Z|agohover
Re: Centos Webmin install
tleydentleyden 1262461347|%e %b %Y, %H:%M %Z|agohover

It sound's like the webserver isn't configured correctly. Even before starting freeswitch, you should be able to navigate to wikipbx.mydomain.com and see the wikipbx home page / login screen.

If you see a directory listing when you go to wiibpx.mydomain.com .. that's the first thing that needs to be fixed.

Can you post the relevant snippet of your apache configuration?

Also I'm a little confused by this ..

I bypass the Webmin/Apache stuff by putting "VirtualDocumentRoot /etc/apache2/sites-enabled" in httpd.conf.

Why is this needed and what exactly is it supposed to accomplish?

Reply  |  Options
Unfold Re: Centos Webmin install by tleydentleyden, 1262461347|%e %b %Y, %H:%M %Z|agohover
Re: Centos Webmin install
umnganeumngane 1262505375|%e %b %Y, %H:%M %Z|agohover

In my configuration the entire server can be managed remotely using Webmin. This includes Apache2, so there is a facility in Webmin to create virtual servers via its web interface management console. But it doesn't seem to store the details in files like regular Apache (probably database?). So there is a way to force the normal directory structure by putting the line:

VirtualDocumentRoot /etc/apache2/sites-enabled

in httpd.conf - which is all I've done there. Then I can create all the files and links required under the Wikipbx installation instructions. I can use the configured vserver wikipbx.mydomain.com to point at the site (although this may be only as a result of the DNS config)

Is there a known way to configure the virtual server using Webmin? I really don't want to rebuild the entire system if possible:)

Reply  |  Options
Unfold Re: Centos Webmin install by umnganeumngane, 1262505375|%e %b %Y, %H:%M %Z|agohover
Re: Centos Webmin install
umnganeumngane 1262523960|%e %b %Y, %H:%M %Z|agohover

Ok, took the plunge, deinstalled Webmin. Apache version is 2.2.6 (HTTPD).

Modified httpd.conf as follows:

AddHandler wsgi-script .wsgi
WSGIPythonPath /usr/src/wikipbx:/usr/src/django:/usr/local/src/freeswitch-1.0.5pre10/libs/esl/python
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.mydomain.com
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/error_log
CustomLog /var/log/httpd/access_log common
</VirtualHost>
<VirtualHost *:80>
ServerName wikipbx.mydomain.com
ErrorLog /var/log/httpd/wikipbx.error_log
CustomLog /var/log/httpd/wikipbx.access_log common
</VirtualHost>

After restarting httpd I get a 500 internal server error with the error log tail showing various info lines about mod_wsgi loading wikipbx, django and freeswitch, and the following error:

[error] /usr/src/django/django/middleware/common.py:4: DeprecationWarning: the md5 module is deprecated: use haslib instead

I thought perhaps I had too new a version of Django so re-downloaded revision 5024 but no change.

Reply  |  Options
Unfold Re: Centos Webmin install by umnganeumngane, 1262523960|%e %b %Y, %H:%M %Z|agohover
Re: Centos Webmin install
tleydentleyden 1262590701|%e %b %Y, %H:%M %Z|agohover

Your httpd.conf snippet is missing some crucial variabes, for example the WSGIScriptAlias variable. Please check the mod_wsgi configuration section carefully.

DeprecationWarning: the md5 module is deprecated: use haslib instead

This is just a warning so I don't think its the root of the problem. Please fix your httpd.conf and retry, and look for errors in the /var/logs/apache2/error.log and post them along with any errors that appear in the browser. If the errors are huge please use pastebin

Reply  |  Options
Unfold Re: Centos Webmin install by tleydentleyden, 1262590701|%e %b %Y, %H:%M %Z|agohover
Re: Centos Webmin install
tleydentleyden 1262590439|%e %b %Y, %H:%M %Z|agohover

But it doesn't seem to store the details in files like regular Apache (probably database?). So there is a way to force the normal directory structure by putting the line

Ah ok, that makes sense. I've used webmin but I'm not really all that familiar with what goes on under the hood.

Is there a known way to configure the virtual server using Webmin?

Probably but you'd have to do some trailblazing here .. I don't think anyone's tried that yet!

Reply  |  Options
Unfold Re: Centos Webmin install by tleydentleyden, 1262590439|%e %b %Y, %H:%M %Z|agohover
New Post
page_revision: 0, last_edited: 1226259295|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License