mewbie
June 7th, 2009, 08:30 PM
Hello :D I post here as I saw a previous post about AjaxTerm (though different problem).
Sorry if long post; want to be complete. Thank you for your time :D
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 you can help or point to a place that can, thank you. Two days 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.p ort),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
Sorry if long post; want to be complete. Thank you for your time :D
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 you can help or point to a place that can, thank you. Two days 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.p ort),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