help configuring Ajaxterm


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers help configuring Ajaxterm
# 1  
Old 05-28-2009
Question help configuring Ajaxterm

Hello there,

I installed Ajaxterm on my Ubuntu 9.04 machine, and it's running ok if I use :
Code:
http://localhost:8022/

in my broswer. This is the problem , it can only be accessed localy. If I want to access it through internet from another computer, it fails. I've read the tutorials on how to modify the /etc/apache2/sites-available/default file, and what other things to do to make it work, but with no success. I want to be able to acces it using
Code:
http://localhost/

or http://my_ip , but how on earth ?I've tried all the possible ways of modifing the settings in the /etc/apache2/sites-available/default file, none of them worked.
Is there anyone out there who succeded in making this thing work ?If yes please show me the content of the configuration file (/etc/apache2/sites-available/default) .


With many thanks,
wosis
# 2  
Old 06-16-2009
CPU & Memory I also can't get it to work

Mew wosis.. I'm also having such a hard time. Maybe together this can be solved Smilie . I've tried posting on other forums as well with no replies so far. Paws crossed for us Smilie

I'm running: Linux Debian / apache2-mpm-prefork 2.2.9-10+lenny2
Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 Server at ********* Port 80

I just can not get this to work via browser:
"The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please try again."

Please if anyone can help or point to a place that can, thank you. Almost 2 weeks trying my best to solve this and just can't figure it out. I followed this https://help.ubuntu.com/community/AjaxTerm plus all sorts of other fixes I have read. I first tried the wget method using readme.txt and that was even more unsuccessful.

These are the steps I have done:
a2enmod proxy_http
apt-get install ajaxterm
/etc/init.d/ajaxterm start

It replied: Starting web based terminal: ajaxterm
pico /etc/ssh/ssh_config
//uncomment: PasswordAuthentication yes
cd /
mkdir /srv/ajaxterm
cd /srv/ajaxterm
htpasswd -cm /srv/ajaxterm/.htpasswd MyName
typed in pass...

pico /etc/apache2/sites-enabled/ssl

This section had this:
<VirtualHost *:443>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem

<Directory />

Changed it to:
<VirtualHost *:443>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
SetEnvIf Request_URI "^/u" dontlog
ErrorLog /var/log/apache2/error.log
Loglevel warn

ProxyRequests Off
<Proxy *>
AuthUserFile /srv/ajaxterm/.htpasswd
AuthName EnterPassword
AuthType Basic
require valid-user

Order Deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8022/
ProxyPassReverse / http://localhost:8022/

<Directory />

/etc/init.d/apache2 reload
loaded fine...
/etc/init.d/ajaxterm start

I try going to: https://mysite.com:8022 and get error: The connection to the server was reset while the page was loading.

I do this: netstat -antp
I think this is the ajaxterm that on the list:
tcp 0 0 127.0.0.1:8022 0.0.0.0:* LISTEN 25926/python

When I do cmd: ps x , I don't see it on the list of processes running, but I see many of these nmbd things that I don't think I saw before:

13587 ? Ss 0:07 /usr/sbin/nmbd -D
13589 ? Ss 0:08 /usr/sbin/smbd -D
13590 ? S 0:00 /usr/sbin/smbd -D
5333 ? S 0:00 [pdflush]
14779 ? S 0:00 /usr/sbin/smbd -D
25819 ? S 0:00 /usr/sbin/smbd -D
26146 ? S 0:00 /usr/sbin/smbd -D
26344 ? S 0:00 /usr/sbin/smbd -D

When I issue the cmd:
ajaxterm
Reply I get is:
AjaxTerm at http://localhost:8022/
Traceback (most recent call last):
File "/usr/share/ajaxterm/ajaxterm.py", line 571, in <module>
main()
File "/usr/share/ajaxterm/ajaxterm.py", line 565, in main
qweb.QWebWSGIServer(at,ip='localhost',port=int(o.port),threaded=0,log=o.log).serve_forever()
File "/usr/share/ajaxterm/qweb.py", line 1309, in __init__
BaseHTTPServer.HTTPServer.__init__(self, (ip, port), QWebWSGIHandler)
File "/usr/lib/python2.5/SocketServer.py", line 330, in __init__
self.server_bind()
File "/usr/lib/python2.5/BaseHTTPServer.py", line 101, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.5/SocketServer.py", line 341, in server_bind
self.socket.bind(self.server_address)
File "<string>", line 1, in bind
socket.error: (98, 'Address already in use')

And then I'm just left in this blank window... that I don't know how to quit.
----------
I read to do this: wget -O- -np https://localhost:8022
The reply I got was:
--2009-06-07 18:34:03-- https://localhost:8022/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8022... connected.
OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Unable to establish SSL connection.


I see in my /var/log/apache2/error.log
[Sun Jun 07 18:16:44 2009] [notice] mod_python: Creating 8 session mutexes based on 50 max processes and 0 max threads.
[Sun Jun 07 18:16:44 2009] [notice] mod_python: using mutex_directory /tmp
[Sun Jun 07 18:16:45 2009] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations


Also I noticed:
1.) That when I go to any URL on my site it brings me to the AjaxTerm login page! It seems the entire site has been redirected to the AjaxTerm.
2.) Furthermore I only got that to load when after several attempts of trying my normal name/pass for the site didn't work I thought to try the pass I set for AjaxTerm in steps above.. that worked.
3.) And when I do try to login to the AjaxTerm window I type in name, hit enter, it returns back to Login. Never ask for pass.. as if login name isn't correct..
4.) when I do: netstat -antp Instead of just one listing on port 8022 there are now many:
tcp 0 0 127.0.0.1:8022 0.0.0.0:* LISTEN 25926/python
tcp 0 0 127.0.0.1:8022 127.0.0.1:4991 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4990 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4989 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4988 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4987 TIME_WAIT -
tcp 0 0 127.0.0.1:4992 127.0.0.1:8022 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1032 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1031 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1030 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4998 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1029 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4997 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1028 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4996 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1027 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4995 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1026 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4994 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1025 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4993 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1024 TIME_WAIT -

And many listings with server ip on port 443

5.) I do this: /etc/init.d/ajaxterm stop
It replied: Stopping web based terminal: ajaxterm.
& then: /etc/init.d/apache2 reload
Entire site is still redirected to the AjaxTerm page

Though I still have error when I try to go http://mysite.com:8022

I've commented/hashed the new entries on pico /etc/apache2/sites-enabled/ssl and my site is working again. (still a ton of strange entries under netstat -antp)


So question is not only to get that to work
but to get it stop redirecting entire site to it.

Thank you so much for your time! Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Configuring vi / vim ?

Just got a new server running Oracle Linux 6 (a derivitive of RHEL, but I'm not sure the version correlation). This is my first hands on with this verision, having worked in the past with OL 5 (as well as some older Solaris, HPUX and AIX). Connected with putty. When I'm editing a file in... (10 Replies)
Discussion started by: edstevens
10 Replies

2. UNIX for Dummies Questions & Answers

Configuring DNS

Hi guys, I had Cpanel VPS hosting and switched to non managed VPS hosting. My nameservers are configured as follows ns1.mobz.ca 69.175.76.110 ns2.mobz.ca 69.175.76.111 Before switching my domain worked perfectly. Like webprofessionalsconnect.com with those settings worked. With new... (4 Replies)
Discussion started by: vahankh
4 Replies

3. OS X (Apple)

AjaxTerm wont work on Mac OS X

just downloaded Ajaxterm-0.10 on my Mac 10.5.8 and after a ./ajaxterm.py i get: AjaxTerm at http://localhost:8022/ which looks ok but as soon i go to the website: ./ajaxterm.py:418: DeprecationWarning: 'I' format requires 0 <= number <= 4294967295 fcntl.ioctl(fd,... (0 Replies)
Discussion started by: berot3
0 Replies

4. Web Development

Ajaxterm in a website on apache

Hi All, I'm trying to get ajaxterm hosted on a website. The site is already running. I just want to add ajaxterm link to it with SSL of course. So far I've not been successful. I kinda got it running but with out SSL. Not good enough! Also, I already have configured SSL and I can access some... (0 Replies)
Discussion started by: nitin
0 Replies

5. UNIX for Dummies Questions & Answers

Ajaxterm works, but I can't get correct settings :(

Thank you for your time and help! :o Please if you could look over my settings and see what's going wrong.. I've read so much and tried soooo many things for 1 month now. I'm running: Linux Debian / apache2-mpm-prefork 2.2.9-10+lenny2 Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch... (0 Replies)
Discussion started by: mewbie
0 Replies

6. UNIX for Dummies Questions & Answers

problem configuring Ajaxterm

Hello there, I installed Ajaxterm on my Ubuntu 9.04 machine, and it's running ok if I use : http://localhost:8022/ in my browser it works. The problem is that I wanted to be able to access it from somewhere else through the internet. I've read all the documentation and help that is available for... (1 Reply)
Discussion started by: wosis
1 Replies

7. Solaris

configuring network

Hello, I was trying to assign IP or Hostname to the system, but when I open any of the files: /etc/hosts /etc/inet/ipnodes the files open in read-only mode. Thus, I can't edit it. I am doing this under root. What is the problem and how to get rid? Any suggestion? (8 Replies)
Discussion started by: naw_deepak
8 Replies

8. AIX

configuring ntp

Hi, I want to configure ntp on aix server as per IST but isp option is not there,how can i configure as IST (0 Replies)
Discussion started by: manoj.solaris
0 Replies

9. UNIX for Dummies Questions & Answers

Configuring mail help

I'm trying to get my server (running SunOS 5.8) to be able to send mail. The mail administrator gave me the name of the mail server that I can use to relay the mail, but where/how do I configure this in Unix on my server? Thanks! (5 Replies)
Discussion started by: FredSmith
5 Replies

10. UNIX for Advanced & Expert Users

Configuring.....

Hi Folks, I would like to learn the basics of unix administration like configuring telnet, ftp, smtp,etc.. Could u suggest me a good site for learning it??? or the methodology that has to be followed for learning it??? TIA, Nisha :) (2 Replies)
Discussion started by: Nisha
2 Replies
Login or Register to Ask a Question