Saturday, November 24. 2007php-5.2.5 on LeopardTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Why would you not want to simply install everything from MacPorts to make it all easier to update? If you're going to use MacPorts for Apache, you may as well go all out.
My port install command goes something like: sudo port install apache2 Then after it dies on awk: sudo port install apache2 && sudo port install sqlite && sudo port install mysql5 +server && sudo port install php5 +apache2+macosx+mysql5+pear+sqlite I usually also tack on subversion, curl, ruby, ImageMagik, and a variety of others, but that gets the general idea. From then on the latest versions are simply a "sudo port upgrade outdated" away.
Actually you can make it even shorter by just typing:
sudo port install php5 +apache2 +mysql5 +pear +sqlite That will actually install apache2, mysql5, and php5 in the proper order. Worked great for me.
You can also use the apache 2.2 64bit and php 5.2.4 version that comes with Leopard. Just customize the apache configs in /etc/apache2/. Works fine for me. Don't understand why you install it all twice. I use osx 10.5.1.
This helped me heaps, thanks Sean!
The only things I couldn't get it to compile with were iconv (Leopard problem?) and imap (MacPorts error with the cclient library). All my other extensions were fine.
I think using of MacPorts is the best way. I'm fan of MacPorts...
Hello,
thanks a lot for your informing tutorial on setting up a apache server on Leopard :) But me being new to the Terminal and the UNIX structures of my Mac i cetrainly did something wrong, because the info.php i put into /opt/local/apache2/htdocs/ givers me: Fatal error: Call to undefined function phpÊphpinfo() in /opt/local/apache2/htdocs/info.php on line 1 I really followed every line of your tutorial without any errors (except the awk problem, but after second command it worked as well) and still i get this error ! Any idea why this is happening ? Best regards, Christian
Hi Christian,
Looks like you have a weird character between ?php and phpinfo() "Ê" should simply be a space. (btw, if you get that error message, it means that PHP is working—congrats! (-: ) S
Thanks for a great how-to! Everything worked as expected and I found Macports to be really useful for some other stuff as well.
I have followed these instructions on 2 Macs and they worked perfectly. I am trying to do it again on a fresh install of Leopard on an iMac and it won't work for some reason. The apache install doesn't work correctly. It acts like it is still trying to start up Leopard's Apache. I have followed the instructions correctly. When I run sudo apachectl start, I get the following error"
httpd: apr_sockaddr_info_get() failed for ESJMac.local httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName I have gone in and edited my httpd.conf to add a ServerName and it still doesn't work. If I try to run sudo apachectl stop, I get a no pid error. Any ideas how I can fix this?
I've tried a couple of times to install php but its not creating half the files. I can't find the main php binary files or php.ini for example.
I'm a new user to Mac and have been familiar with unix commands for some time now, I found this tutorial to be very clear and concise Worked perfectly for me anyway!! Thanks for taking the time.
Also great comments on the macports suggestions, very informative!
Have done everything step by step so far:
- made sure I had the latest Xcode - downloaded and installed MySQL (from above link) - downloaded and installed MacPorts (from above link) - downloaded latest PHP distribution (from above link) - took care of the "strange MySQL install" with first three command line prompts ...now, I'm trying to do the "port" command line prompts, but my system is not recognizing the "port" command: -bash: port: command not found Any ideas about what's going on? Any help would be appreciated...
Seems port isn't in your path.
Try /opt/local/bin/port in place of port S
Thanks alot, everything went fine! :)
I'm finding someway to access mysql, seems I need something like mysqladmin >.
Hi, I'm having a issue with mysql. I followed all the steps but when configuring php I get:
checking for mSQL support... no checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... /tmp/mysql.sock checking for MySQL UNIX socket location... /tmp/mysql.sock checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. I can post some of the config.log if needed. Maybe I missed a part.
Same here on 10.4.11 client / MySQL 5.0.51 / PHP 5.2.6 ...Michael, did you ever figure out what went wrong?
This is driving me nuts. The libraries are sitting right there in /usr/local/mysql: -rwxr-xr-x 1 root wheel 2110319 Apr 17 06:50 libmysqlclient.15.0.0.dylib -rwxr-xr-x 1 root wheel 2110319 Apr 17 06:50 libmysqlclient.15.dylib -rw-r--r-- 1 root wheel 2851924 Apr 17 06:50 libmysqlclient.a -rwxr-xr-x 1 root wheel 2110319 Apr 17 06:50 libmysqlclient.dylib -rwxr-xr-x 1 root wheel 2118307 Apr 17 06:46 libmysqlclient_r.15.0.0.dylib -rwxr-xr-x 1 root wheel 2118307 Apr 17 06:46 libmysqlclient_r.15.dylib -rw-r--r-- 1 root wheel 2867452 Apr 17 06:46 libmysqlclient_r.a -rwxr-xr-x 1 root wheel 2118307 Apr 17 06:46 libmysqlclient_r.dylib |
Pay the bills...Calendar
QuicksearchArchivesMy PERSONAL BlogNote:
The contents of this blog are my own, PERSONAL opinion and do not represent the thoughts or opinions of the people I work with or for. If you have a beef with something I said, take it up with ME. Thanks (-: |
|||||||||||||||||||||||||||||||||||||||||||||||||