LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to use AOLServer and Apache on same machine at different ports (https://www.linuxquestions.org/questions/linux-server-73/how-to-use-aolserver-and-apache-on-same-machine-at-different-ports-864464/)

tkmsr 02-23-2011 02:48 AM

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?

corp769 02-23-2011 03:01 AM

Before you initially stopped apache, was it running and fully configured to run?

tkmsr 02-23-2011 04:17 AM

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.

tkmsr 02-24-2011 12:32 AM

What worked is putting RUN_DAEMON=no in /etc/default/aolserver4 file.

corp769 02-24-2011 11:42 AM

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


All times are GMT -5. The time now is 09:29 AM.