Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm installing Apache2 on Debian Wheezy. After the file's mod /etc/apache2/sites-available/default-ssl, I wrote apache2 for running the service. Sadly, the Linux shell back this string:

*

(98)Address already in use: make_sock: could not bind to address [::]:443
(2)No such file or directory: apache2: could not open error log file /etc/apache2/${APACHE_LOG_DIR}/error.log.
Unable to open logs

*

How I resolve this problem? Thanks (and sorry for my bad English, I'm italian :P)

share|improve this question

2 Answers 2

How about checking if http is already running because it shows 'Address already in use message'

Check

ps -ef | grep http

Kill PIDs of http if listed

kill -9 <PID>

Now try to start http service.

share|improve this answer
    
Error when i write the kill command: "bash: syntax error near unexpected token `newline'" –  Francesco Guarneri Mar 27 '13 at 17:12
    
@francesco-guarneri You should use kill command without < >. It should be kill -9 2345 Not kill -9 <2345> I hope this is clear –  friendyogi Apr 4 '13 at 8:18

Address already in use is your clue. Try this as root:

# netstat -anp | grep :443 | grep LISTEN

The output will look something like this:

tcp        0      0 11.22.33.44:443         0.0.0.0:*               LISTEN      2511/apache2    

The last column gives you the PID and name of the process listening on port 443. You'll have to get rid of that process before Apache will be able to bind to the port.

share|improve this answer
    
I haven't an output when I write these strings. –  Francesco Guarneri Mar 27 '13 at 17:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.