Macintosh10.4.8 apache2 php5.20 mediawiki1.8 …

2009-05-13 07:13:34来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


Macintosh10.4.8 apache2 php5.20 mediawiki1.8 install
[url=http://www.freebsdchina.org/forum/posting.php?mode=quote&p=183243][/url]

#install mysql
cd ~/mysql-5.027
./configure --prefix=/usr/local/mysql \
--with-unix-socket-path=/usr/local/run/mysql_socket \
--with-mysqld-user=mysql \
--with-comment \
--with-debug
make
sudo make install
sudo make clean
sudo /usr/local/mysql/bin/mysql_install_db --force
sudo mkdir /usr/local/mysql/run
sudo chgrp -R mysql /usr/lcoal/mysql
sudo chown -R mysql /usr/local/mysql/run /usr/local/mysql/var
sudo /usr/local/mysql/bin/mysqld_safe --user=mysql &
/usr/local/mysql/bin/mysqladmin -u root password picb
sudo mkdir /var/mysql
cd /var/mysql
sudo ln -s /usr/local/run/mysql_socket ./mysql.sock
#istall apache2
cd ~/httpd-2.2.3
./configure --prefix=/usr/local/apache2 \
--enable-module=most \
--enable-shared=max
make
sudo make install
sudo make clean
sudo /usr/local/apache2/bin/apachectl start
#install GD (before this we should have installed or have to install libxml2,zlib,libpngjpeg,
#freetype please check it, my OS no need to install libxml2 & zlib, but can install as follow: )
#install libxml2
cd ~/libxml2-2.6.27
./configure
make
sudo make install
sudo makeclean
#install zlib
cd ~/zlib-1.2.3
./configure
make
sudo make install
sudo makeclean
#install libpng
cd ~libpng-1.2.14
cp scripts/makefile.darwin Makefile
vi makefile
# Where the zlib library and include files are located
ZLIBLIB=/usr/local/lib
ZLIBINC=/usr/local/include
#ZLIBLIB=../zlib
#ZLIBINC=../zlib
make
sudo make install
sudo make clean
#install jpeg
cd ~/jpeg-6b/
ln -s /usr/bin/glibtool ./libtool
export MACOSX_DEPLOYMENT_TARGET=10.4
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure --prefix=/usr/local/jpeg6 \
--enable-shared
make
sudo mkdir /usr/localjpeg6
sudo mkdir /usr/localjpeg6/include
sudo mkdir /usr/localjpeg6/lib
sudo mkdir /usr/localjpeg6/bin
sudo mkdir /usr/localjpeg6/man
sudo mkdir /usr/localjpeg6/man/man1
sudo make install-lib
sudo make install
sudo make clean
#install freetype2
cd ../freetype-2.2.1
/*edit the file include/freetype/config/ftoption.h and uncomment line 439 to read:
#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
*/
./configure --prefix=/usr/local/freetype2
make
sudo make install
sudo make clean
#install GD
sudo ln -s /usr/X11R6/include/fontconfig /usr/local/include
cd ~/gd-2.0.33
./configure --prefix=/usr/local/gd2 \
--with-zlib \
--with-png=/usr/local/libpng2 \

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:发表主题: FreeBSD 6.2-BETA2 WebServer架设总结

下一篇:使用FreeBSD自带的ftpd程序搭建ftp服务器