Re: Dual Apache Installations on a Mac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux