LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Unable to start apache (https://www.linuxquestions.org/questions/linux-server-73/unable-to-start-apache-877802/)

Alex_Uconomy 04-29-2011 05:32 AM

Unable to start apache
 
Hi guys

I am very new (since yesterday) to Linux, so please bare with me ! Also new to web server set-up, so apologies for stupid questions here !

I have installed all LAMP components, including SSL as described here: http://www.ibualoy.net/blog/itech/li...ebian-50-lenny

I have added LISTEN 443

Wanted to restart the apache server -> no success ! stopped it, now doesn't start at all,
Warning msg=>
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:44 no listening sockets available, shutting down . .
FAILED
I tested Apache and my PHP earlier, and it worked, now after SSL and FTP installation it doesn't work any more !

Also I am wondering about my server name, it is the set IP of the web server, surly i should change that !? how and where and to what is the question ;)

Any help will be appreciated, thx in advanced
Regards
Alex

PS: only used link for SSL set-up, used diff links for apache php etc (also have java JRE installed as I will need that later for my app) also have GNOME available, but prefer command line

bathory 04-29-2011 05:58 AM

Check /etc/apache2/apache2.conf and /etc/apache2/ports.conf to see if you have a duplicate "Listen 443" directive

Alex_Uconomy 04-29-2011 06:13 AM

THX

Would you maybe also know how i can set permission for user xyz to access var content (apache folder)
As that user hold my transg=fered data via ftp, but does not have the permission rights to access that folder.

I have installed acl and tried the following:
setfacl -R -m user:xyz:6 var

it list file by file saying not supported !?

Maybe there is a better way ? I assume i can not set the user as a "admin" or similar ?

many thx for previous reply ! server starts again !! ;) hadn't seen the <if mode.. . ssl> . . listen ..<> statement

kind regards
alex

omgs 04-29-2011 06:15 AM

Usually, "address already in use" means that the port is in use ;)

Maybe you just tried to start instead of restarting the service? If you restarted, then the stop didn't work properly, so you have to check logs.

I'm not sure if, as you've been told, the duplicity of Listen clauses causes that behaviour, so check that out, too, but that would mean that SSL was working before. Also, you should *always* check your changes and definitions before restarting apache by running "apache2ctl -S", and see the ports defined (taking that you don't get an error).

bathory 04-29-2011 07:09 AM

Quote:

Would you maybe also know how i can set permission for user xyz to access var content (apache folder)
As that user hold my transg=fered data via ftp, but does not have the permission rights to access that folder.
Usually a ftp user is jailed into his homedir (/home/xyz), so if you want that user to access /var/www, you should create a symlink in his homedir. You should also make sure that the user has read (and write if you want) permissions on /var/www (you can add user in the www-data group)

SL00b 04-29-2011 08:52 AM

Check your apache config files, because it looks like you've got a typo. You set up a TCP listener for port 443, but apache is looking for port 44.


All times are GMT -5. The time now is 02:53 AM.