![]() |
Using MacOS X, Apache, PHP, MySQL, Dreamweaver UltraDev, and Phakt |
|
|
|||
![]() |
Page 2 -- The Apache and PHP part MacOS X comes complete with an Apache web server and the PHP scripting engine. If you just recently updated your MacOS from version 10.0.x to 10.1.x, then it's possible that your Apache server isn't running properly or at all. This is a known issue as Apple slightly changed the Apache configuration. If you find that this is the case, then please read this article at stepwise.com to fix the problem before continuing. MacOS X version 10.1.2 comes with the latest version of the PHP scripting engine, v4.0.6., although it is not enabled my default. It is very lean installation and doesn't contain a lot of the features that a full-blown installation of PHP would have. However, this lean installation will most likely reduce the overhead involved in running a "fatter" version and make your Web server more efficient. However, if you need many of the features that a full installation of PHP offers, you may consider upgrading it to accommodate using the links in the next paragraph. One of the best resources that I have found for MacOS X-specific Web installations is Marc Liyanage's Web site at http://www.entropy.ch/. He has an amazing collection of articles and such to make your installations quick and painless. Marc creates his own OS X installation packages for the some of the most popular web applications, including PHP, MySQL, and PostreSQL. An installation package in MacOS X would be comparable to a RedHat RPM file or a Microsoft MSI file. If you need to install the latest of these products on your MacOS X computer, or require additional features that the stock installation doesn't have please click the links above for more information. Ya gotta be "root" Once you have updated your PHP installation (if necessary), you will need to enable it in your Apache configuration file. To do so, you will need to log in as the "root" user. The root user, for those who aren't Unix-savvy, is the God of all users. Even higher than your Mac's Administrator account. There is nothing that the root user can't do on the machine. This is why this user is also very dangerous. So you'll need to be very careful running the computer as the root user. You can irreparably harm your operating system if you do something that you aren't supposed to! By default the root user is disabled. In most cases, there is no need to go there, so Apple disabled it. However, if you must do this, then there is a set of steps to go through to do so:
Once you have created your root account, you'll need to log out and log back in as root. To do this, you'll need to change your log-in setting a little bit. By default, OS X lists the users who have accounts on the computer and a nice little picture beside the name that you would click on. Then you would be prompted for your password. The root user is not included in this list, however. To log in as root, you'll need to be able to type in the username and password yourself. To do this, set your Login options to allow name and password entry fields:
From the Apple menu, select Log Out... In a short period of time, you should be presented with a login screen. Use "root" (without the quotes) as the username and use the password you created above. Voilá! You're logged in as root! Update the Apache Configuration File Now we've got to make those updates to the Apache configuration file we talked about earlier:
For more information about the steps above outlining the configuration file, please refer to the article at stepwise.com mentioned above. Remain logged in as root, and we'll move on...
|
||
| Copyright ©2001 Christopher Owens. The logos above are copyrighted by their respective owners, organization, and corporations. |
|||