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


Click here to return to the '10.4: Install Apache 2.2.3, PHP 5.1.15, and MySQL 5.0.24' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Install Apache 2.2.3, PHP 5.1.15, and MySQL 5.0.24
Authored by: Tetonne on Aug 25, '06 12:02:27PM

this will only work if you have XCode installed - get it for free at Apple's Developer website

In Terminal...

Download

wget http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-max-5.0.24-osx10.4-powerpc.tar.gz/from/http://mirrors.dotsrc.org/mysql/
wget http://www.apache.org/dist/httpd/httpd-2.2.3.tar.gz
wget http://www.php.net/distributions/php-5.1.5.tar.gz

<!-- you can replace wget by curl -O >

Decompress
gnutar -xzf mysql-max-5.0.24-osx10.4-powerpc.tar.gz
gnutar -xzf httpd-2.2.3.tar.gz
gnutar -xzf php-5.1.5.tar.gz

Backup mysql data and install mysql
cp -Rp /usr/local/mysql/data /Users/your_user_name/
rm -rf /usr/local/mysql
mv mysql-max-5.0.24-osx10.4-powerpc /usr/local/mysql
rm -rf /usr/local/mysql/data
mv data /usr/local/mysql/data

Compile Apache
cd httpd-2.2.3
./configure --prefix=/Library/Apache2 --enable-access --enable-actions --enable-alias --enable-asis --enable-auth --enable-auth_dbm --enable-auth_digest --enable-autoindex --enable-cache --enable-cgi --enable-dav --enable-dav_fs --enable-deflate --enable-dir --enable-disk_cache --enable-dumpio --enable-env --enable-expires --enable-fastcgi --enable-file_cache --enable-headers --enable-imap --enable-include --enable-info --enable-log_config --enable-log_forensic --enable-logio --enable-mem_cache --enable-mime --enable-mime_magic --enable-negotiation --enable-perl --enable-rewrite --enable-setenvif --enable-speling --enable-ssl --enable-status --enable-suexec --enable-unique_id --enable-userdir --enable-usertrack --enable-version --enable-vhost_alias --enable-so --enable-module=all --enable-shared=max
make
make install

Compile php
cd php-5.1.5
mkdir /usr/local/php
./configure --prefix=/usr/local/php --with-zlib --with-xml --with-xsl --with-mysql=/usr/local/mysql --with-apxs2=/Library/Apache2/bin/apxs
make
make install
cp php.ini-dist /usr/local/php/lib/php.ini

Add in httpd.conf (Library/Apache2/conf)
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

sudo /Library/Apache2/bin/apachectl start

Thanks to bofh

[ Reply to This | # ]

10.4: Install Apache 2.2.3, PHP 5.1.15, and MySQL 5.0.24
Authored by: comforteagle on Aug 30, '06 08:30:41AM

Followed this a few times, even reinstalled dev tools just in case, but get this error:

/Library/Apache2/bin/apachectl: line 102: 22898 Segmentation fault $HTTPD -k $ARGV


Help!?
Thanks in advance.



[ Reply to This | # ]