Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Apache-mySQL-PHP installation tutorial UNIX
[Editor's Note: This is the most detailed how-to I've received in six months' running this site! I have not used the tutorial, mainly because I already have this group of programs running, but this looks like a very good step-by-step on how to get them installed. -rob.]

[Second editor's note: I received a referral to another site with a step-by-step guide for compiling all three of these programs from source; I haven't used it, but it's a similar step-by-step tutorial, but it doesn't use any package files.]

Compiled and partly written by Vip Malixi with contributions from Scott Anguish, René Voorburg, Matthew Vaughn. The following tutorial is a comprehensive set of instructions for installing a new version of Apache (1.13.19), along with PHP 4.04 and mySQL 3.23.28. In order to follow these instructions, you will need to have (a) root access [detailed elsewhere on the site] and (b) the developer tools installed.

If you'd like to see how this is done, please read the rest of this article for a thorough, step-by-step guide to the process.
read more (837 words)   Post a comment  •  Comments (55)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[47,256 views] Email Article To a Friend View Printable Version
Running multiple proceses of the same Cocoa app UNIX
Not sure if this is by any means useful, but here you go:

You can run more than one instance of the same Cocoa app, for example two Clock apps running under the different process id, from the command line. It is pretty simple to do:
  1. Launch Terminal.app
  2. Using Finder, navigate to the app you want to run
  3. Control-click, then select the 'Show Package Contents' item
  4. Open ./Contents/MacOS folder. There is usually only one executable file.
  5. Drag and drop the file on the terminal window. This prints a path to the file.
  6. Put '&' at the end of the path and type return
  7. Repeat 5 and 6
Now, you have two processes of the app.
Caveat: GUI apps are not intended to be executed by this way. If more than one instances are running, they access the same configuration files, e.g. a preferences file. So, there is a chance to corrupt these files. Do it at your own risk and just for entertainment.
  Post a comment  •  Comments (0)  
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[3,125 views] Email Article To a Friend View Printable Version
Terminal 101 - Handy aliases UNIX
Warning - For new unix users only... this is intended for mac users new to unix who wish to make the terminal a bit more comfortable.

You can define any number of shortcuts (aliases) to start up applications. For example, to start up TextEdit from the command line and open a file, all you need to do is type:

te main.C &

where: te is the alias you specify, main.C is the name of the text file that you want to edit, and & backgrounds the process (which means you can continue working in the command line).

To learn how to set this up and add to your UNIX knowledge, read the rest of the article ... and thanks to 'anonymous' for sending this in!
read more (449 words)   Post a comment  •  Comments (9)  
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[20,011 views] Email Article To a Friend View Printable Version
Building mySQL for OS X v10.0 UNIX
mySQL is a free SQL database program that can work in conjunction with PHP (see PHP hint elsewhere here) to create dynamically generated web sites, such as this one. It's important to me, as I use mySQL and PHP locally to test new elements for this site, and it was getting to be a pain booting back to the Public Beta every time I had to work on something. I tried running the mySQL installer package from the PB, but it failed (not sure why). So I'd been waiting on a new installer package, to make things easy. Last night, I got tired of waiting :-).

I received an email stating that a new binary package was available on the iDisk of 'skribble', so I went and checked it out. Go to www.mac.com, click on the iDisk tab, sign on with your ID, and then enter 'skribble' in the box for "Open Public Folder" section to mount that folder. You'll see the binary for mySQL. I downloaded this and installed it, but couldn't quite get it running - but it may have been user error. It did not install the 'var' directory, where mySQL keeps the databases. You may have better luck than I, so it might be worth a shot.

After a few minutes of mucking around with it (without success), I "rm"ed the mysql directory, and decided to go straight to the source (literally), and grabbed the files from mysql.com to try and build it myself. I was successful, and now have a fully functional PHP 4.04 and mySQL 3.23.36 installation on my OS X machine! Read the rest of the article if you'd like instructions on how to build it yourself -- it's really not that hard!
read more (642 words)   Post a comment  •  Comments (15)  
  • Currently 1.80 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[5,124 views] Email Article To a Friend View Printable Version
Running terminal commands from the GUI UNIX
[Editor's note: See the comments for a discussion on a number of alternative methods to making this work]

I have a number of apps/scripts that I've built that can only be launched from the command line. Is there any way to either:

A) Make these double-clickable for launching

-or-

B) Create a simple app that basically executes the same commands I would type in the terminal window

For example, I have a bulletin-board client that I run locally. At present, the only way to run it is to either type the full path to it, put a link to it in a bin folder, or be in the same folder and type ./bbs . What I really want is an icon that I can double click which will open a terminal window and execute a file in a given path.
  Post a comment  •  Comments (5)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[6,843 views] Email Article To a Friend View Printable Version
mod_jk and OS X UNIX
I have Tomcat 3.2.1 Servlet engine running in standalone mode right now, but I want to integrate it with Apache. I can't figure out how to build mod_jk on OS X using the Jakarta docs. Also, when configuring tomcat, will it be able to find everything using JAVA_HOME given that things are in completely different places that a traditional JDK installation?
  Post a comment  •  Comments (4)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[4,928 views] Email Article To a Friend View Printable Version
Enabling sendmail in OS X final UNIX
'gdif,' who posted the Airport base station emulator page, has put together a little how-to on enabling 'sendmail' in OS X v10.0. You can find the article here:

http://homepage.mac.com/gdif/tipstricks.html

In addition, there are some other great UNIX tips on that page, including a "renice" command for the Window Manager that may potentially speed up your window redraw. I've added the site to the links section as well.
  Post a comment  •  Comments (3)  
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[6,330 views] Email Article To a Friend View Printable Version
Vim editor with syntax highlighting UNIX
I have managed to compile on Mac OS X final the "vim" editor from www.vim.org - version 5.7, but syntax highlighting is working WITHOUT COLORS - syntax elements are highlighted only by "underline" attribute, not by colors. Does anybody know:

a. how to activate colors in vim in Mac OS X?
b. how to run vim as gvim, i.e. in graphical mode?

--
jpzr.
  Post a comment  •  Comments (4)  
  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[12,059 views] Email Article To a Friend View Printable Version
Path statements when using the Bash shell UNIX
[Editor's note: See the comments for a good discussion and solution to this question]

I just managed to get bash compiled and running but I have a problem whenever I switch the shell in Terminal.app's preferences.

If I set it to bash, zsh or anything besides tcsh, it seems that I can only use commands from /bin. I mean, I'm missing basic stuff like ping and traceroute. I can su root and copy commands from /sbin or /usr/bin, but this doesn't seem like the right way to go about using my spiffy new shell.

Oddly enough, I can start Terminal with tcsh and then temporarily switch to bash, and everything works perfectly. Tried using chsh, but it launches vi, and vi and I are not on speaking terms.

Need help from someone who knows what the heck I'm doing wrong.

Thanks,
-Jeff K.
  Post a comment  •  Comments (10)  
  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,651 views] Email Article To a Friend View Printable Version
Installing SSH on OS X release version UNIX
I've purchased and installed Mac OS X on my Blue & White G3. Now I'm looking for ssh. Is it missing from this release? It was present in the Public Beta and I need secure telnet to be able to work from home.

Typing 'ssh' in a terminal session results in the shell trying to resolve my unknown command to 'sh' instead.

I have installed everything available on both the Mac OS X Installation CD and the Developer Tools CD. Any help would be greatly appreciated.

Steven M. Fish

[Editor's Note: See the comments for a couple of methods for installing SSH. The URL for the Stepwise how-to is:

http://www.stepwise.com/Articles/Workbench/2001-03-21.01.html

I haven't done this yet, but it's on today's project list!]
  Post a comment  •  Comments (10)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[7,014 views] Email Article To a Friend View Printable Version