LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-23-2011, 02:48 AM   #1
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
how to use AOLServer and Apache on same machine at different ports


I am using a Ubuntu virtual machine.Where I installed OpenACS which depends upon AOLServer.To do so I had first shutdown Apache on this machine and then as per instructions given here

http://openacs.org/xowiki/ubuntu

Step 1)
Quote:
aptitude install postgresql
Step 2)
Quote:
aptitude install openacs
I had to shutdown Apache to do above installation.
Now the installation finishes.So I can access http://localhost:8000

but when ever I try to start Apache on this machine which was shutdown during installation I see the error
service apache2 start
Quote:
* Starting web server apache2 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
So I thought may be OpenACS installs AOLServer so Aolserver might be listening on port 80 I check
Quote:
/etc/aolserver4/conf.d/openacs.sh
and here

Quote:
AOL_USER=www-data
AOL_GROUP=www-data
AOL_ADDRESS=192.168.1.15
AOL_PORT=8000
RUN_DAEMON=yes
So AOLServer is not listening on port 80 upto here it is confirmed.

Code:
 netstat -tualp  | grep 80
tcp  0      0 somemachine.somedimain.:8000 *:*   LISTEN   21321/aolserver4-ns
so netstat shows only 8000 in use.
Then why am I unable to start Apache in this case?
 
Old 02-23-2011, 03:01 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Before you initially stopped apache, was it running and fully configured to run?
 
Old 02-23-2011, 04:17 AM   #3
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Yes before stopping apache I had one of my production websites running on it which needed LAMP environment.So that is no more accessible now.
 
Old 02-24-2011, 12:32 AM   #4
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
What worked is putting RUN_DAEMON=no in /etc/default/aolserver4 file.
 
Old 02-24-2011, 11:42 AM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Oh cool, nice to see you got it to work. Sorry I didn't reply any sooner, I've been really sick lately.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some log analyzer for aolserver/pound logs grzeslaw Linux - Server 0 11-28-2008 10:23 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
How do I know what ports are open on my linux machine? M$ISBS Linux - Security 13 10-29-2005 09:12 PM
List of unused ports on a machine linuxprogrammer Linux - Newbie 2 10-18-2004 02:20 PM
List of unused ports on a machine linuxprogrammer Linux - Newbie 4 10-18-2004 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration