Thread: Macintosh and PHP
jammaster82

I see some

mac

 intosh prompts in the forum,
what

php

  server/package/blahblah should i
install on the

mac

 intosh so i can read along
at home?

nOOb wOOt

perkiset

Assuming you are on

OS-X

 , just download the source and compile/make it (I can help you here...) however if you google

PHP

 

OS-X

  there is a guy who did this already and it's all done for you. I'll comment more when I am opn a reliable

net

 work

/p

vsloathe

I'd recommend installing a special package for

OS-X

  called

Linux

 . More specifically, LAMP.

jammaster82

Lol, yeah

linux

  rulz...  Okay you mean install

linux

  on a

mac

  instead of

os-x

 
or does it actually get emulated like wine or what?

So which

linux

  distro do you favor i just spent the xmas holiday installing/uninstalling
all the latest and fedora 8  made me

learn

  LILO/GRUB the hard way, favorite
was

Ubuntu

  7.10 (the gnome desktop looked like

os-x

  sorta with animations)  followed by opensuse 10.3..
honorable mention: Knoppix 5.1.1

Still wanna room full of pentiums and 20 copies of clusterknoppix....

perkiset

quote author=vsloathe link=topic=665.msg4552#msg4552 date=1199127192

I'd recommend installing a special package for

OS-X

  called

Linux

 . More specifically, LAMP.


Don't listen to VS, he suffers from terminal

Mac

  envy and

OS-X

  denial. It's really rather sad  Applause

vsloathe

I'm not sure if you can install

linux

  successfully on a

Mac

 . I heard you can do XP with bootcamp or something? Not sure about

linux

  though, I was just yanking your crank. Probably you could do it with a virtual

mac

 hine though.

I never run into the problem of where to install

Linux

  because I have a plethora of ancient

mac

 hines lying around.

perkiset

No you are correct VS - you can dump

OS-X

  completely and load virtually any variant of *nix on the box instead, although I would see this as the worst of all worlds since the drivers for it would clearly be fewer than any number of clone

mac

 hines. Under the hood it's a pretty straight up Intel box now, which is why BootCamp even works.

But I think the Parallels or VMWare option would be better if you really need

Linux

 ... although since it's all Unix/

Mac

 h I don't know why you'd need a different kernel at all - I find it wonderfully stable and pretty damn standard (from a config/make/install perspective)

nop_90

Recently I got a

mac

 book
Got rid of the shitty

OSX

  Applause
Installed

ubuntu

  on it.
https://wiki.

ubuntu

 .com/

Mac

 BookPro/SantaRosa
with a little bit of tweaking u can get the backlite,keyboard lite, wireless up and going.
supposedly u can get the remote thingie going too but i never bother.

Used to use vmware, but for shits and giggles decided to try http://www.virtualbox.org/wiki/innotek (i am not sure who recomend that i forget).
It seems to run alot quicker then vmware, and also has advantage u do not need to compile kernel drivers, which is pain in ass since every time kernel undate ......
Cool part about virtualbox is that you can hide the desktop. So that way your windows apps ap

pear

  to be native ones Applause.
One think to beware about on

mac

 book it does not have a right ctrl key, (which is used to jump in and out of virtualbook, so before u start it up makesure u remap it)

Same ole crap with virtualbox as vmware u can map virtual drives onto your

linux

  mounts.

jammaster82

ubuntu

  rulz..

mac

  fedora 8 too:

http://tofu.org/drupal/node/29

esrun

Paying the overpriced rate for a

mac

 book and then installing

ubuntu

  on it seems madness to me lol!


I use MAMP from http://www.living-e.de/en/index.

php

  which works perfect in OS  X auto installing and managing

php

 ,

apache

 , mysql

vsloathe

Yeah half of the price of a

Mac

  is the proprietary hardware and software licenses. If I were just going to install

Ubuntu

 , I'd get it from one of those companies that sells laptops with the latest distro pre-installed so I know I don't have to fuss with drivers and can get right down to pwning the intarwebz.

jammaster82

So is

ubuntu

  your flavor of

linux

  choice?
i have

ubuntu

  7.10 and love it ...

today i am installing the latest centOS
as it is supposedly 100% binary compatible
with red hat?  Trying to gear up for that
kylix walkthrough.

vs: what are you running now?

vsloathe

Depends on the day lol.

All my servers are FC6. I have

Ubuntu

 , Gentoo, and Slackware on various desktops at home. I don't often use a GUI (get enough of it from the windoze boxes @work and my laptop), but when I do it's usually Gnome or Compiz Fusion.

jammaster82

nice, maybe i can hit you up when i get stuck on some
sudo and etc/fstab/papercut/fleshwound stuff...

i couldnt get skype to install on openSuse for the death
of me, although that is gui as well...

vsloathe

Well I must confess that I'm a fan of Yum or apt-get for installations. Otherwise I typically try to find someone who has all the dependencies laid out for me so I can just compile all the necessary prerequisites. One thing I detest is unnecessarily bloated servers.

perkiset

quote author=esrun link=topic=665.msg4622#msg4622 date=1199277824

Paying the overpriced rate for a

mac

 book and then installing

ubuntu

  on it seems madness to me lol!


No lie - that's amazing! Well, he did get the magna-port for his power tho... Applause

jammaster82

OKay i got a p4 2.0ghz empty hard drive
and i want a LAMP server, what should i
install in your opinion?

perkiset

(I use FC 6)

Apache

  2.0
+ mod_rewrite, shared libs
MySQL 5.x
(stock)

PHP

  5.x
./configure
        --with-apxs2=/usr/local/

apache

 2/bin/apxs
        --with-mysql=/usr/local/mysql
        --with-gd
        --with-openssl
        --with-mcrypt
        --with-mhash
        --with-

pear

 
        --disable-cgi
        --with-gd
        --with-jpeg-dir
        --with-zlib-dir
        --with-freetype-dir
        --with-curl=/usr/local/include/curl/
        --enable-soap
        --enable-sockets
        --enable-sysvsem

Then install APC so you have caching
then

php

 MyAdmin to administer the DB (and to see some sweet

php

 Applause

Then SMF and create your own first forum
Then WordPress and create your own first blog
Then

php

 Collab and tear the thing apart to see how it works

nop_90

quote author=esrun link=topic=665.msg4622#msg4622 date=1199277824

Paying the overpriced rate for a

mac

 book and then installing

ubuntu

  on it seems madness to me lol!

See my post about buying a

mac

  book.
In a nutshell yah you pay more then average laptop.
Quality of

mac

 book makes it cheap compared to average laptop

jammaster82

Wow... as long as you finally have figured out
the whole sudoer thing, you can get lamp installed on

ubuntu

  in about 15minutes including webmin and

php

 myadmin
its fast as satan on this 2ghz p4 and totally sweet.

now off to 'make' the apc modules.... Applause

ow my eyes hurt from speed reading apt-get's

For the next guy on the path that I am
that wants an easy way into LAMP the following is for you:

http://www.

ubuntu

 geek.com/

ubuntu

 -710-gutsy-gibbon-lamp-server-setup.html

vsloathe

quote author=jammaster82 link=topic=665.msg4747#msg4747 date=1199731358

Wow... as long as you finally have figured out
the whole sudoer thing, you can get lamp installed on

ubuntu

  in about 15minutes including webmin and

php

 myadmin
its fast as satan on this 2ghz p4 and totally sweet.

now off to 'make' the apc modules.... Applause

ow my eyes hurt from speed reading apt-get's

For the next guy on the path that I am
that wants an easy way into LAMP the following is for you:

http://www.

ubuntu

 geek.com/

ubuntu

 -710-gutsy-gibbon-lamp-server-setup.html


I was going to mention that but I didn't want to preach

Ubuntu

  Love to you for fear of sounding like a pseudo-geek.

Ubuntu

  really is not a "hacker's" OS (for that matter neither is

OS-X

  though {cough cough perk cough}), but I do like using it, even for development. If you've got a fast laptop or even desktop and want a nice pretty OS to do development on that multitasks well and is fairly fuss-free out of the box,

Ubuntu

  is a good one.

perkiset

Applause

I am long off having to impress with my hax0r sk!llz... I love

OS-X

  because it combines *nix stability with a great GUI and it just flipping works easily. Great for empowering clients as well.

That being said, I have owned <>

OS-X

  for Hackers (Caruso, Hurley et al, Syngress) for a couple years now and there's still lots of fun that can be had. I mean, any book where chapter 4 is titled "Wardriving and Wireless P

enet

 ration Testing with

OS-X

 " clearly is not for your mother in law hehe...

jammaster82

im loving

ubuntu

  the more i go along..
server edition is even better than the
desktop edition i had before, you
couldnt ask for an easier system... for free.

RE: XP on a

mac

 ... sounds like shit on a sundae! haha

I think you can use xpostfacto to install whatever
you want on a

mac

 , like vmware or something i guess but
immediately look at how many extra things might
be in the way, im a string on the door pulls the silverware
off the table and wakes me up when somebody comes in
kind of guy, two moving parts.

i always wanted to see like a 4 ghz computer with a jillion
terrabyte drive emulate say a 400mhz computer ...
but have the monster computer taking flash pictures
of the state of the computer, you know, the entire ram
bank and all its data, the instructions on the processor at
that particular individual cycle, and save it in a processor
cycle by cycle database literally roll back the last 17,000
cycles or whatever...

So after you ran your program down to the assembly instruction
you would have forever the run down, better than any log....
could go and see where what went wrong and change a
few things and resume...  finally being able to point a
finger at the small holes that are left in unix/

linux

  based
kernels... 





ratthing

quote author=vsloathe link=topic=665.msg4752#msg4752 date=1199737411

I was going to mention that but I didn't want to preach

Ubuntu

  Love to you for fear of sounding like a pseudo-geek.

Ubuntu

  really is not a "hacker's" OS (for that matter neither is

OS-X

  though {cough cough perk cough}), but I do like using it, even for development. If you've got a fast laptop or even desktop and want a nice pretty OS to do development on that multitasks well and is fairly fuss-free out of the box,

Ubuntu

  is a good one.

Plenty of "real" geeks hate the hell of install and :vomit: RPM dependency nightmares.  *

ubuntu

  is just

Debian

  with a slick installer and some tree-huggers pimping good documentation and friendly support forums.  I use *

ubuntu

  as a base for my

Debian

  dev boxes because it's fast and easy to get built.  Change your repos in your apt sources, and badaboom,

Debian

  server.  There are plenty of

Linux

  geeks that think RH is the be-all end-all, and if you want 3rd party commercial support (read: "expensive"Applause applications, you're pretty well stuck with RH or SuSE.  But if you're just looking for a straight forward way to manage your own boxes, I think RPM hell ain't worth it.

You can also go the Gentoo route, if you like the haxxies, but the incompatibility issues if you need to work around bugs (e.g. keep some apps at one release level and others at later ones) is a total fscking pain.  Not to mention trying to build identical servers if you don't host your own repos, since people do commits hourly in some cases.  And I won't speak of the lack of QA on Gentoo.

The Gentoo forums are a good resource for

learn

 ing  how to build your own kernel and have lots of info that can be applied to

Linux

  in general.  Installing/using Gentoo is a good

learn

 ing  experience to get into the guts of

Linux

  if you've only ever installed something like *

ubuntu

  and aren't a developer.

If I had my druthers, I'd just colo a

Solaris

  box and be done with it.  Package mgmt is weak, but the OS is rock solid.  I once had a

Solaris

  box with a load of 42+ thanks to engineers with runaway processes.  I was still able to ssh in and gracefully kill the errant stuff--no rebooting necessary.  Stability and ease of use are also why I have a

Mac

  on my desktop--it "just works" for all the multimedia and assorted oddities I need (read: eye candy) that my server doesn't.

And if you don't think hardcore IT geeks don't use

Mac

  OS X, I'd bet dollars to donuts the #1

mac

 hine you find at IT conferences is some variant of

Apple

 .  Problems are for their employer's computers, not their own.  Applause

(Sorry this turned kinda soap boxy)
=RT=

perkiset

Badabing.

Solaris

  doesn't stop, it just slows down. It's the bedrock of all.

And you're right @

OS-X

  - at the recent pubcon LV, the vast majority of anyone that could afford a reasonable watch and shoes had a powerbook or ibook... polyester slacks and short-sleeve white button ups had XP Applause

vsloathe

I wear a Movado and Clarks, but tote a laptop running Slackware. What does that make me?

nutballs

gay  Applause

vsloathe

Well that has nothing to do with my watch or shoes though NBs.

nutballs

ah but it was with those shoes that you walked right into the open for a gay bomb.

jammaster82

Applause

what kind of socks?

vsloathe

argyles?


Perkiset's Place Home   Politics @ Perkiset's