The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. January 08, 2009, 11:18:16 PM

Login with username, password and session length


Pages: 1 [2] 3 4 ... 7
  Print  
Author Topic: Got my Mac Mini, Now What?  (Read 3404 times)
nutballs
Administrator
Lifer
*****
Online Online

Posts: 3525


View Profile
« Reply #15 on: July 21, 2008, 10:38:53 AM »

First gotcha.

started up apache, and is seems to be running from /etc/apache2/
the httpd.conf file in there has all the correct paths, for the files that seem to be getting served from localhost.
which is : /Library/WebServer/Documents

so it seems to not be using the conf file at /usr/local/apache2/conf/

all the rest I think I understand, and I think I have it all setup, except for this issue.
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 5326


:sniffle: Humor was so much easier before.


View Profile
« Reply #16 on: July 21, 2008, 10:43:46 AM »

/etc/apache2 is the default install that came with the Mac. You are fine to use that one - when I first started all of this, OS-X came with Apache 1.4.something and PHP was 4.3.4, so I had to rebuild it all. Since the default install is 2.0 you should be fine. And since the default install comes ready to run PHP, it's been configured OK for you as well.

However, having not done the install yourself, you may find it more challenging to see where Apache is pointing for PHP and other stuff... this is simply research and Advil, but nothing more voodoo than that. Also, having moved php and installing your own, yet using the default Apache instance, you'll just want to make sure you have all of your ducks in a row.
Logged

If I can't be Mr. Root then I don't want to play.
nutballs
Administrator
Lifer
*****
Online Online

Posts: 3525


View Profile
« Reply #17 on: July 21, 2008, 10:48:52 AM »

ok, then how would I completely uninstall the original apache, php, etc?

I want to start clean, and control it fully. If I am going to do this, I dont really want to do it halfway. I will start over, and nuke all the original stuff, I just dont know how?
Logged
nutballs
Administrator
Lifer
*****
Online Online

Posts: 3525


View Profile
« Reply #18 on: July 21, 2008, 10:50:13 AM »

BTW, i forgot how much I hate VI. lol
I remember in college, how many programs I wrote that wouldnt compile because I had a stupid :w somewhere in the code... seem to be suffering the same problem again... lol
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 5326


:sniffle: Humor was so much easier before.


View Profile
« Reply #19 on: July 21, 2008, 10:56:37 AM »

You don't need to uninstall. Go to System Preferences | Sharing and turn Web Sharing off. This will make it so that the box does NOT auto start the original Apache.

Then after you've configure, make and make install your own copy, starting it will make more sense. And I agree, given the path you are on, this is the best thing to do, simply so that you understand the mechanics of it all.
Logged

If I can't be Mr. Root then I don't want to play.
nutballs
Administrator
Lifer
*****
Online Online

Posts: 3525


View Profile
« Reply #20 on: July 21, 2008, 11:11:40 AM »

web sharing is off, and has been off... lol

let the conspiracy theories begin!
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 5326


:sniffle: Humor was so much easier before.


View Profile
« Reply #21 on: July 21, 2008, 11:22:46 AM »

k, but if you went to /etc/apache2/bin and started apache then the old apache would be running.
Logged

If I can't be Mr. Root then I don't want to play.
nutballs
Administrator
Lifer
*****
Online Online

Posts: 3525


View Profile
« Reply #22 on: July 21, 2008, 11:28:03 AM »

nope, never did that. only ever tried to run from /usr/local/apache2/bin/
Logged
jairez
Expert
****
Offline Offline

Posts: 109


JTFC!


View Profile
« Reply #23 on: July 21, 2008, 11:58:13 AM »

Quote
But it seems the mac has some magic password for the root user which I don't know about?
Something to know about OSX is that the "root" account is initially disabled when the OS is installed.  The user you set up at the beginning (most likely the account you log in with) is granted Admin rights on the machine while in the UI.  To enable the genuine root account, run

Applications -> Utilities -> Directory Utility

This is a utility for managing directory servers and services, but for some reason it's also where Apple put the Enable Root User under the Edit menu.  Authenticate yourself by clicking the lock in the lower-left corner first, then select Enable Root User from the Edit menu, give the account a password.  After that, if you'd like to SUDO or SU from the cli, this is the root/pw combo the system's looking for.

Hope this is finally a pertinent post on my part, and that it helps.

   /ja

Logged

Two wrongs don't make a right --- but three rights make a left.
jairez
Expert
****
Offline Offline

Posts: 109


JTFC!


View Profile
« Reply #24 on: July 21, 2008, 12:04:56 PM »

Perk -
Quote
The energy of the concert was rather static and I was bummed because I brought my 2 boys expecting them to hear more hits and famous stuff - they heard very little recognizeable stuff but were great sports.

Reminds me of when we went to see Elvis Costello at the Bren Event Ctr (UCI) many moons ago - decent concert for E.C. fans but probably not the best "first" show for th E.C. noob, huh?  Oh well, we'll always have "... suburban Tempe."

Feelin' it for ya   Cry
Logged

Two wrongs don't make a right --- but three rights make a left.
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 5326


:sniffle: Humor was so much easier before.


View Profile
« Reply #25 on: July 21, 2008, 12:56:55 PM »

ROFLMAO Forgot that one... and we were so hoping that at least we'd get Pump It Up when he spun the wheel and the teenybopper on the floor picked Alison. No worries, no lasting impact. He's Watching The Detectives at this very moment as a matter of fact Wink
Logged

If I can't be Mr. Root then I don't want to play.
nutballs
Administrator
Lifer
*****
Online Online

Posts: 3525


View Profile
« Reply #26 on: July 21, 2008, 04:23:41 PM »

ok. i got everything installed, set up etc.
I edited the httpd-vhosts.conf file

and somewhere along the way, the default apache instance started running again.
so i did some testing.
/usr/local/apache2/bin/apachectl start
starts the websharing of OSx...
and I cannot stop my instance now. lol
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 5326


:sniffle: Humor was so much easier before.


View Profile
« Reply #27 on: July 21, 2008, 04:29:43 PM »

... so when you start your new one, the OS-X GUI says that you're web sharing? That's a new one on me.

But I guess it doesn't really matter, unless with websharing on, and you restart, it starts the DEFAULT apache rather than yours. If it starts yours, then you don't need to worry about boot apache on startup Wink

try "pkill httpd" as root, ought to do you.


Logged

If I can't be Mr. Root then I don't want to play.
nutballs
Administrator
Lifer
*****
Online Online

Posts: 3525


View Profile
« Reply #28 on: July 21, 2008, 04:39:49 PM »

well now its just being pissy.

I just rebooted.
no httpd anywhere to be seen. yeay team...
then I did /usr/local/apache2/bin/apachectl start
waited...
now i get no daemons for httpd
i get these two processes

_www       109   0.0  0.1  2701044    688   ??  S     4:35PM   0:00.00 /usr/sbin/httpd -D FOREGROUND
root       108   0.0  0.4  2701044   3788   ??  Ss    4:35PM   0:00.24 /usr/sbin/httpd -D FOREGROUND

which is the default apache install.
wtf?

pkill btw is command not found

i should also mention, that I cannot seem to kill those processes. they just come back again.

and... I just did mv /usr/sbin/httpd /usr/sbin/httpd-leopard
to see if it would work if it couldnt find the original.
no joy,
I try to start my instance, and nothing actually happens. except that when I try to run start a second time, it says its already loaded. but i dont see it in the process list.
« Last Edit: July 21, 2008, 04:46:34 PM by nutballs » Logged
nutballs
Administrator
Lifer
*****
Online Online

Posts: 3525


View Profile
« Reply #29 on: July 21, 2008, 05:02:23 PM »

ok i figured something out.

apachectl is aliased or something. no matter where I type it, any path, it runs. so... it must be aliased to the default install.

thats why it keeps not running my instance.

how do I kill an alias then? or whatever its called.
Logged
Pages: 1 [2] 3 4 ... 7
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!