Starting apache service

952 views
Skip to first unread message

Carlos Clavijo

unread,
Aug 31, 2012, 12:04:50 PM8/31/12
to as...@googlegroups.com
Hi,
 
I am installing ASTPP on centos 5.8 64bits following the installation guide I found in http://wiki.astpp.org/index.php?title=Installation_Guide at the "Start Services" I am trying to start Apache using command "service httpd start" I am getting this error:
 
[root@12347 ASTPP]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 0.0.48.59 for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:8081
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:8081
no listening sockets available, shutting down
Unable to open logs
How can I fix the problem?
 
Thank you!

Jagadish Thoutam

unread,
Aug 31, 2012, 12:08:32 PM8/31/12
to as...@googlegroups.com
hi,

  please edit your httpd.conf file ServerName = X.X.X.X   your machine ip

vi /etc/httpd/conf/httpd.conf

Thanks
Jagadish

Carlos Clavijo

unread,
Aug 31, 2012, 12:19:05 PM8/31/12
to as...@googlegroups.com
Hi,
 
#ServerName localshost:80
 
I changed to
 
ServerName X.X.X.X:80  wher x.x.x.x is my server IP and this is what I am getting now.
 
[root@12347 ~]# service httpd start
Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:8081

(13)Permission denied: make_sock: could not bind to address 0.0.0.0:8081
no listening sockets available, shutting down
Unable to open logs
 
Thank you!

Jagadish Thoutam

unread,
Aug 31, 2012, 12:34:49 PM8/31/12
to as...@googlegroups.com
ServerName 192.168.4.5   ----should be like this

#ServerName localshost:80Remove #  
and check

Thanks
Jagadish

Samir Doshi

unread,
Aug 31, 2012, 1:34:26 PM8/31/12
to as...@googlegroups.com
It looks like your server 8081 port is in use.

Please run below command to get which service is using 8081 portal.
netstat -pan | grep 8081

---
Thanks,
Samir Doshi

On 2012-08-31 18:34, Jagadish Thoutam wrote:
> ServerName 192.168.4.5   ----should be like this
>
> #ServerName localshost:80Remove #  
> and check
>
> Thanks
> Jagadish
>
> On 31 August 2012 21:49, Carlos Clavijo <carlo...@gmail.com [4]>
> wrote:
>
>> Hi,
>>  
>> #ServerName localshost:80
>>  
>> I changed to
>>  
>> ServerName X.X.X.X:80  wher x.x.x.x is my server IP and this is
>> what I am getting now.
>>  
>> [root@12347 ~]# service httpd start
>> Starting httpd: (13)Permission denied: make_sock: could not bind to
>> address [::]:8081
>>
>> (13)Permission denied: make_sock: could not bind to address
>> 0.0.0.0:8081 [3]
>> no listening sockets available, shutting down
>> Unable to open logs
>>  
>> Thank you!
>>
>> On Friday, August 31, 2012 12:08:51 PM UTC-4, jagan wrote:
>>
>>> hi,
>>>
>>>   please edit your httpd.conf file ServerName = X.X.X.X   your
>>> machine ip
>>>
>>> vi /etc/httpd/conf/httpd.conf
>>>
>>> Thanks
>>> Jagadish
>>>
>>> On 31 August 2012 21:34, Carlos Clavijo <carlo...@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>>  
>>>> I am installing ASTPP on centos 5.8 64bits following the
>>>> installation guide I found
>>>> in http://wiki.astpp.org/index.php?title=Installation_Guide
>>>> [1] at the "_Start Services"_ I am trying to start Apache using
>>>> command "service httpd start" I am getting this error:
>>>>  
>>>> [root@12347 ASTPP]# service httpd start
>>>> Starting httpd: httpd: Could not reliably determine the server's
>>>> fully qualified domain name, using 0.0.48.59 for ServerName
>>>> (13)Permission denied: make_sock: could not bind to address
>>>> [::]:8081
>>>> (13)Permission denied: make_sock: could not bind to address
>>>> 0.0.0.0:8081 [2]
>>>> no listening sockets available, shutting down
>>>> Unable to open logs
>>>>
>>>> How can I fix the problem?
>>>>  
>>>> Thank you!
>
>
>
> Links:
> ------
> [1] http://wiki.astpp.org/index.php?title=Installation_Guide
> [2] http://0.0.0.0:8081
> [3] http://0.0.0.0:8081
> [4] mailto:carlo...@gmail.com

Carlos Clavijo

unread,
Aug 31, 2012, 1:36:27 PM8/31/12
to as...@googlegroups.com
Hi,
 
I removed # and also :80
 
This is what I have
 
Listen X.X.X.X:80
Listen 80
 
ServerName X.X.X.X
 
[root@12347 ~]# service httpd start
Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address X.X.X.X:80

no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
 
X.X.X.X is my server IP
 
Thank you!

Carlos Clavijo

unread,
Aug 31, 2012, 1:39:55 PM8/31/12
to as...@googlegroups.com, sa...@astpp.org
I run the command but nothing happend.
 
[root@12347 ~]# netstat -pan | grep 8081
[root@12347 ~]#
 
Thank you!

Carlos Clavijo

unread,
Sep 1, 2012, 1:10:24 PM9/1/12
to as...@googlegroups.com, sa...@astpp.org
Hi,
 
I reinstalled all over again and now I am able to start Apache, the problem I have now is the astpp admin page does not display http://x.x.x.x:8081/
 
I run netstat -pan | grep 8081 and I am getting the following information
 
[root@12347 ~]# netstat -pan | grep 8081
tcp        0      0 10.1.4.12:8081              X.X.X.X:63217         SYN_RECV    -
tcp        0      0 :::8081                     :::*                        LISTEN      2423/httpd
 
Which this IP 10.1.4.12 is defferent form my public IP.
 
Thank you!
Reply all
Reply to author
Forward
0 new messages