LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2009, 05:53 AM   #1
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Rep: Reputation: 15
apachessl start error


Hi,
when we installed the apache2.0.63 red hat 4.2 as a root user.
and we created the apache2 user .then change the permission and owner.

[apache2@ebs apache2]$ ll
total 112
drwxrwxrwx 2 apache2 root 4096 Nov 23 11:01 bin
drwxrwxrwx 2 apache2 root 4096 Nov 23 11:01 build
drwxrwxrwx 2 apache2 root 4096 Nov 23 11:01 cgi-bin
drwxrwxrwx 4 apache2 root 4096 Nov 23 11:26 conf
drwxrwxrwx 3 apache2 root 4096 Nov 23 11:01 error
drwxrwxrwx 2 apache2 root 4096 Nov 23 11:01 htdocs
drwxrwxrwx 3 apache2 root 4096 Nov 23 11:01 icons
drwxrwxrwx 2 apache2 root 4096 Nov 23 11:01 include
drwxrwxrwx 2 apache2 root 4096 Nov 23 11:01 lib
drwxrwxrwx 2 apache2 root 4096 Nov 23 11:45 logs
drwxrwxrwx 4 apache2 root 4096 Nov 23 11:01 man
drwxrwxrwx 14 apache2 root 12288 Nov 23 11:01 manual
drwxrwxrwx 2 apache2 root 4096 Nov 23 11:01 modules

We got the error when start the apache.
[apache2@ebs apache2]$ cd bin
[apache2@ebs bin]$ ./apachectl startssl
(13)Permission denied: make_sock: could not bind to address [::]:1008
no listening sockets available, shutting down
Unable to open logs

[apache2@ebs bin]$
 
Old 11-26-2009, 06:07 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,790

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
apache must be started as root and then it will switch to the user/group defined by the respective directives in httpd.conf.

Regards
 
Old 11-26-2009, 06:10 AM   #3
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
apache must be started as root and then it will switch to the user/group defined by the respective directives in httpd.conf.

Regards
Thanks for reply.
I tried as a apache user .i got the following errors.

[apache2@ebs apache2]$ sudo apachectl -k startssl
Password:
Sorry, try again.
Password:
apache2 is not in the sudoers file. This incident will be reported.
[apache2@ebs apache2]$
 
Old 11-26-2009, 06:21 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,790

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
You have to create an entry in /ets/sudoers for the apache user, or use su:
Code:
su - -c "/path/to/apache2/bin/apachectl start"
 
Old 11-26-2009, 06:59 AM   #5
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
You have to create an entry in /ets/sudoers for the apache user, or use su:
Code:
su - -c "/path/to/apache2/bin/apachectl start"
Thanks for reply.I tried to start what you said.i got the error

apache2@ebs /]$ su - apache2 -c /usr/local/apache2/bin/apachectl startssl
Password: Here I gave welcome123 which created for server.key
su: incorrect password
[apache2@ebs /]$
 
Old 11-26-2009, 07:10 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,790

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
You must su to root not to apache!!!
Just type the command exactly as I gave it to you above and use the root password when prompted.

Note also that for apache2 there is no need to use startssl for apachectl, if ssl support is compiled-in the apache binary. Using apachectl start should also start https.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] ./network start shows error RTNETLINK answers: File exists Error adding address [ip] FlatBallFlyer Linux - Networking 4 09-27-2010 07:15 PM
login error can's start session due to internal error wiisikke Fedora 3 05-11-2010 01:29 AM
Unable to start apache on CentOS Linux with error Starting httpd: Syntax error on lin pkumar2533 Linux - Newbie 9 08-26-2009 07:48 AM
boot up error on /var/log/messages [server.ERROR] cannot start systen DBus service junust Linux - General 0 08-04-2009 04:55 AM
RHL4 Partitioning + Rolling ApacheSSL/MySQL/PHP ceci2 Linux - Enterprise 7 03-23-2005 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:04 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration