Here's how I installed (version 2.0.55) and (Standard 5.0.16 for Mac OS X 10.4) on OS X 10.4. robg adds: Note that I haven't tested this one, and I added some detail to the hint as submitted - so any mistakes are likely mine.
![]() ![]()
Read on for the step-by-step. Install Apache 2 into /Library/Apache2). Install MySQL5. This will automatically install in /usr/local.
Install PHP5 from entropy.ch. This version automatically installs in /usr/local). Create a folder named opt at the root of your hard drive. You can make it invisible with something like. In Terminal, create a symbolic link: ln -s /Library/Apache2/ /opt/apache2. Open the Apache2 Configuration file, which can be found in /Library - Apache2 - conf - httpd.conf.
![]()
Add the following lines (before Load module): # PHP5 configuration for Entropy PHPLoadModule php5module /usr/local/php5/libphp5.so AddType application/x-httpd-php.php AddType application/x-httpd-php-source.phps. Reboot, then start the Apache web server.This was tested on 10.4.3 with Developper tools 2.2. Might want to give people more info for an article named 'Install Apache2, PHP5, and MySQL5' than:1. Install Apache 22. Install MySQL53. Install PHP54.
Thank you for your detail explanation about OS X Server App. I have read your site for a long time from Mountain Lion version.
Make a folder (you might want to say why you want people to do this)5. Add the config lines (most helpful piece of info you've posted)6. Reboot and start the serverSeriously. The comment linking to phpmac had more useful info for people who haven't done this before. I have to agree with the problems for with this hint. It's all very well being grateful for the links, but a hint that involves doing something serious in 'guts' of your system had better be clear and correct.As far as I know, the php install from entropy.ch doesn't work with Apache2. Also, this hint doesn't seem to actually say how to start Apache or even to install it.
Certainly making Apache start up on boot if you have Apache 1.3 and Apache 2 both installed is not trivial, yet this hint doesn't mention it.Marc (entropy.ch) did heroic work in the early days of OS X in getting PHP working on the Mac, but nowadays a source install is probably a better idea. You get the latest version of PHP and you can get the settings you need.The opt alias seems to have no purpose. I've been running Apache, PHP and MySQL on my machine since 10.0 and I've never heard of a opt requirement for anything on OS X - yet alone for Apache. The title of this hint is kind of misleading.I believe this hint is for the users who want to use with their installation in OS X client.As you might know, current Entropy's PHP 5.0.4 package was complied for the OS X Server, not the client version. So the 'opt' folder comes in here to imitate the OS X Server directory structure. (the original Apache web server that comes with OS X Server is located in /opt/apache2)There are lots of options we can install A2P5M5 nowadays, but again, it is a good idea to check other resources available on the Web (including the link laurencewilks mentioned above) and understand exactly what you are doing before making any modifications to your precious system.
I also question the value of this hint and who it's really intended to serve. I think it's an unnecessary oversimplification and trivialization of what even some experienced admins consider a fairly complicated installation/configuration process. And linking directly to specific versions of this software is a poor practice since it's updated fairly frequently, sometimes with important security fixes. Pick your favorite 'handing a loaded gun to a child' analogy to describe how I generally feel about this hint.What miname wrote about about checking other resources and understanding what you're doing is good advice when setting up a web server, especially if it's going to be on the internet.
Same's generally true with other network services, too.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |