httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blomstrom <david_blomst...@yahoo.com>
Subject Re: [users@httpd] Dual Apache Installations on a Mac
Date Mon, 26 Mar 2007 00:45:30 GMT
Thanks. I'm thinking of actually sticking with the default Apache installation. It appears
to be much simpler than reconfiguring to accommodate MAMP's version.

----- Original Message ----
From: Andre-John Mas <ajmas@sympatico.ca>
To: users@httpd.apache.org
Sent: Sunday, March 25, 2007 5:24:04 PM
Subject: Re: [users@httpd] Dual Apache Installations on a Mac

On 25-Mar-07, at 08:04 , David Blomstrom wrote:

> I've just discovered that the httpd.conf file I modified to enable  
> virtual hosts is not the same as the httpd.conf file in my newer  
> MAMP installation. In other words, my MacBook Pro is apparently  
> running off the original Apache installation, not the Apache that  
> came with the MAMP package; I assumed MAMP would automatically deal  
> with that issue.
>
> So I assume I need to somehow shut down the original Apache and at  
> the same time make the newer installation take over. I went into  
> System Preferences and disabled Web Sharing, thinking that would  
> shift everything to my newer Apache installation. Instead, my  
> websites simply died.
>
> Can anyone tell me what steps I have to do to fix this problem?  
> Ideally, I'd like to modify some file that would nix the original  
> Apache installation, so I don't have to fiddle with it every time I  
> reboot my computer...but I could un-modify it later, if I decide to  
> return to my original Apache program.
>

Generally control of Apache is via the apachectl command line tool.  
The one associated
with the default install is located in:

/usr/sbin/apachectl

calling that with the 'stop' parameter will shut down the default  
apache server. To start
your apache install, run the apachectl that corresponds to its  
installation.

Of course doing this will only deal with what's running now, not with  
what may run at
startup.

If you are running your install, then you will want to disable Web  
Sharing, but
at the same time ensure that port 80 in your firewall is open. The  
other thing you
will want to do is copy /System/Library/StartUpItems/Apache to / 
Library/StartUpItems
and then modify the scripts as necessary.

> If I understand correctly, once I have everything configured,  
> Apache shouldn't be running at all when I boot my computer - until  
> I open the MAMP icon and manually start the Apache and MySQL  
> servers. So I THINK that's the configuration I'm looking for.
>
> Also, could a dual Apache installation wreak havoc with connecting  
> to a MySQL database? I'm able to create databases and import and  
> modify tables, but I've been unable to create a working connection.

That all depends on what your application does, so the answer ranges  
from no to maybe
to yes. You will have to take a look at what your application does to  
decide whether
it can affect data consistency in your tables.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org








 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
Mime
View raw message