Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 3rd June 2010, 14:14
vtapas vtapas is offline
Member
 
Join Date: Apr 2010
Posts: 51
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Rapid2214 View Post
Code:
#
#Listen 12.34.56.78:80
Listen 80
#Listen 8080
I see that you are requesting a page on port 8080 but the webserver isn't listening on that port, try uncomment it and restart the web server, only a suggestion.

Good luck :D

Marty
Exactly even I thought what you just said.But when I restarted httpd I got error.
Code:
 service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:8080
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:8080
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
This error came when I uncomment that Listen 8080 line.

Let me know if you have any other suggestions.
Reply With Quote
Sponsored Links
  #12  
Old 3rd June 2010, 15:00
Rapid2214 Rapid2214 is offline
Senior Member
 
Join Date: Jun 2010
Posts: 105
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Awsome error, it means something else is listening on that port.
to find out what it is run:

Code:
netstat -tap
Your should get the service and pid on the right

Thanks

Marty
Reply With Quote
  #13  
Old 3rd June 2010, 15:19
vtapas vtapas is offline
Member
 
Join Date: Apr 2010
Posts: 51
Thanks: 1
Thanked 0 Times in 0 Posts
Default

webcache in following output is referring to port 8080
Code:
# netstat -tap 
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 site5.siteinquestion.:xprint-server *:*                         LISTEN      5224/python2.4      
tcp        0      0 *:hello-port                *:*                         LISTEN      1742/rpc.statd      
tcp        0      0 *:sunrpc                    *:*                         LISTEN      1706/portmap        
tcp        0      0 *:webcache                  *:*                         LISTEN      5229/python2.4      
tcp        0      0 site5.abc.com:smtp        *:*                         LISTEN      2036/sendmail: acce 
tcp        0      0 site5.siteinquestion:x11-ssh-offset *:*                         LISTEN      18012/0             
tcp        0      0 site5.siteinquestion.:xprint-server site5.abc.com:56072       ESTABLISHED 5224/python2.4      
tcp        0      0 192.168.1.5:webcache     192.168.1.19:60533        ESTABLISHED 5229/python2.4      
tcp        0      0 site5.abc.com:56072       site5.siteinquestion.:xprint-server ESTABLISHED 5229/python2.4      
tcp        0      0 192.168.1.5:webcache     serverA.siteinquestion.com:55012 ESTABLISHED 5229/python2.4      
tcp        0      0 192.168.1.5:webcache     serverA.siteinquestion.com:44424 ESTABLISHED 5229/python2.4      
tcp        0      0 192.168.1.5:38380        someserver.siteinquestion.com:domain TIME_WAIT   -                   
tcp        0      0 192.168.1.5:38381        someserver.siteinquestion.com:domain TIME_WAIT   -                   
tcp        0      0 192.168.1.5:38378        someserver.siteinquestion.com:domain TIME_WAIT   -                   
tcp        0      0 192.168.1.5:38379        someserver.siteinquestion.com:domain TIME_WAIT   -                   
tcp        0      0 192.168.1.5:webcache     blackberry-e63a.somdomain.:35588 ESTABLISHED 5229/python2.4      
tcp        0      0 *:http                      *:*                         LISTEN      18140/httpd         
tcp        0      0 *:ssh                       *:*                         LISTEN      1984/sshd           
tcp        0      0 localhost6.l:x11-ssh-offset *:*                         LISTEN      18012/0             
tcp        0      0 *:https                     *:*                         LISTEN      18140/httpd         
tcp        0      0 ::ffff:192.168.1.5:ssh   jishnub08:53195             ESTABLISHED 18012/0
Above 192.168.1.19 is my laptop
192.168.1.5 is Server B
192.168.1.1 is Server A
by default eduCommons uses a webserver known as Plone it is running on Port 8080.
Will it make sense If I try to make apache listen to port 8080.

Last edited by vtapas; 3rd June 2010 at 15:28.
Reply With Quote
  #14  
Old 4th June 2010, 12:37
Rapid2214 Rapid2214 is offline
Senior Member
 
Join Date: Jun 2010
Posts: 105
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Proberly not.
On the CentOS 5.5 Sever run
Code:
wget localhost:8080
If it doesnt download instantly its the sever, if it works quickly, its the bridge between server A & B.

Pls post the out put of the code

Good luck

Marty
Reply With Quote
  #15  
Old 4th June 2010, 15:24
vtapas vtapas is offline
Member
 
Join Date: Apr 2010
Posts: 51
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Here is the output as you said
Code:
wget localhost:8080
--2010-06-04 18:45:53--  http://localhost:8080/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2714 (2.7K) [text/html]
Saving to: `index.html'

100%[==============================================================================================================================>] 2,714       --.-K/s   in 0s      

2010-06-04 18:45:53 (185 MB/s) - `index.html' saved [2714/2714]
Apart from what you said here is what I did
Code:
ssh -L 8080:localhost:8080 root@servername
and in browser tested
Code:
http://localhost:8080/VirtualHostBase/http/site5.abc.com:80/eduCommons/VirtualHostRoot
This is what I is being served and makes my site slow.
By default some how this is the only thing which is being served to the users
on internet also.

So the site is slow.
Here is a snapshot of what I just said
and to prove what makes it slow I again loaded the website
in Chrome Developer Tools pressed Control+Shift+I
and was able to record the time page elements were taking to load they showed some css or jquery took more than 100ms
Here is another snapshot.

What is happening is eduCommons is using a server Zope.
Zope is running on port 8080 behind an Apache running on port 80.

The Virtual Host Manager doesn't do anything unless it sees one of the following special path elements in a URL: VirtualHostBase sets the protocol and host, while VirtualHostRoot sets the path root.
In the Proxy Pass directive I am passing the url to an internal IP
where I can access the website on LAN like this
http://IP:8080/eduCommons
some how the first snapshot I posted
is what is being served to the users on internet and that itself is taking time.
So the website is slow.

While on LAN where I can locally browse the website I am directly getting the response from Zope.
So it is not noticeable on LAN.
Reply With Quote
  #16  
Old 10th August 2011, 10:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
 
Default

I suggest you measure your site with http://gtmetrix.com/ and follow the advices given there to speed up your site.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeRadius + MySQL working, but I don't know how to customise SQL queries awe Installation/Configuration 4 4th April 2010 23:28
Default .htaccess/index.html getting restored? StrikerNL Installation/Configuration 11 1st July 2009 14:12
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 16:26
XEN on Centos 5.2 HOWTO problem bradley HOWTO-Related Questions 9 5th December 2008 21:31
/tmp filled with clamav files --> user over quota ArnOS Installation/Configuration 28 15th March 2008 09:19


All times are GMT +2. The time now is 13:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.