Server can't restart error...

Events happening in the community are now at Drupal community events on www.drupal.org.
qbnflaco's picture

This might not be MAMP specific, but I was wondering is anyone else has come across this issue. I've been able to install aegir locally using MAMP on my mac, however once installed and it tries to verify the aegir site it fails with with this error...

Web server could not be restarted. Changes might not be available until this has been done. (error: [Sun Jan 10 20:13:26 2010] [warn] module env_module is already loaded, skipping (13)Permission denied: make_sock: could not bind to address [::]:80 no listening sockets available, shutting down Unable to open logs httpd not running, trying to start)

I had to switch the MAMP port to 80 since 8888 was giving aegir issues. I made sure apple's installation of apache wasn't running. Any pointers in the right direction?

Comments

It seems on OS X, I had to

qbnflaco's picture

It seems on OS X, I had to give sudo rights to nobody instead of aegir in order to get it work right.

It seems on OS X, I had to

mig5's picture

It seems on OS X, I had to give sudo rights to nobody instead of aegir in order to get it work right.

This sounds terrifyingly bad :) many programs use 'nobody' and it should not be a privileged account by any means..

Did you know that there's documented MAMP instructions contributed by some in the community? They seem to achieve this with dscl and not have to resort to giving 'nobody' sudo. Maybe that's worth a read. Although the entry in sudoers is relatively the same there: aegir ALL=NOPASSWD: /usr/sbin/apachectl 

Could you post the line you

kepford's picture

Could you post the line you added to your sudoers list that got it to work?

Thanks, I was following

kepford's picture

Thanks, I was following ghankstef's instructions from his web site but these instructions may be different. Thanks for the heads up on the nobody user. That didn't sound right to me.

I followed the insstruction

qbnflaco's picture

I followed the instruction to create the aegir user on http://geoffhankerson.com/node/109 , but when I login to the aegir user, I see nobody as the user name instead of aegir like I usually see on linux. I noticed on the groups.drupal.org page, there's something about UID that wasn't on the other article.

Did you ever get Aegir and

kepford's picture

Did you ever get Aegir and MAMP to play nice. I can't get Aegir to verify either. I followed the same instructions you did, I am running MAMP on OS X 10.5 I have installed Aegir on Ubuntu and RHEL. I am also confused about the nobody user and how that works on OS X.

Screen capture -> http://img.skitch.com/20100115-rmkk4jnfc95y9xe2g2j9bb1mrh.jpg

Everything works now! :-)

qbnflaco's picture

I added the UID thing and changed things from nobody to aegir...

  1. change visudo from nobody back to aegir
  2. chown -R /var/aegir to aegir
  3. go into mysql and change user from nobody to aegir
    (UPDATE 'aegir'.'hosting_web_server' SET 'script_user' = 'aegir' WHERE 'hosting_web_server'.'script_user' ='nobody';)
  4. su as aegir and rerun drush hosting setup to setup cron again

After this, everything works fine! Thanks for the help guys!

In the instructions, there is

socialnicheguru's picture

In the instructions, there is a line:

ln -s /var/aegir/config/apache.conf /etc/apache2/conf.d/aegir.conf

I am using MAMP.

where would I place either the include file or this sym link?

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: