在FREEBSD 7.0 上安装apache+mysql+php+ZendOptimize 命令

echo make by ppabc E-mail:ppabc@qq.com QQ:5553557 www.zhank.com
echo starting install FAMP , please wait…
cp /etc/sysctl.conf /usr/www/etc]sysctl_1.conf;
cp /boot/loader.conf /usr/www/boot]loader_1.conf;
cp /etc/make.conf /usr/www/etc]make_1.conf;
cp /usr/share/examples/cvsup/ports-supfile /usr/www/ports-supfile_1;
cp /usr/home/ppabc1/FAMP/conf.files/etc]sysctl.conf /etc/sysctl.conf;
cp /usr/home/ppabc1/FAMP/conf.files/boot]loader.conf /boot/loader.conf;
cp /usr/home/ppabc1/FAMP/conf.files/etc]make.conf /etc/make.conf;
cp /usr/home/ppabc1/FAMP/conf.files/ports-supfile /usr/share/examples/cvsup/ports-supfile;
cd /usr/share/examples/cvsup;
cvsup -g -L 2 ports-supfile;
cp -R /usr/home/ppabc1/FAMP/soft/* /usr/ports/distfiles/;
cd /usr/ports/ftp/axel;
make install clean;
rehash;
cd /usr/ports/lang/perl5.8;
make deinstall;
make install clean ;
rehash;
cd /usr/ports/databases/mysql51-server/;
make WITH_CHARSET=gbk WITH_XCHARSET=all WITH_PROC_SCOPE_PTH=yes BUILD_OPTIMIZED=yes BUILD_STATIC=yes SKIP_DNS_CHECK=yes WITHOUT_INNODB=yes install clean;
rehash;
cp /usr/local/share/mysql/my-huge.cnf /etc/my.cnf;
rehash;
mysql_install_db –user=mysql;
cp /usr/local/etc/rc.d/mysql-server /usr/local/etc/rc.d/mysql.sh;
chmod 755 /usr/local/etc/rc.d/mysql.sh;
/usr/local/etc/rc.d/mysql-server start;
cd /usr/ports/www/apache22;
make WITH_MPM=worker WITHOUT_IPV6=yes WITH_THREADS=yes WITHOUT_SSL=yes install clean
cp /usr/local/etc/apache22/extra/httpd-mpm.conf /usr/home/ppabc1/FAMP/conf.files/httpd-mpm_1.conf;
cp /usr/local/etc/apache22/httpd.conf /usr/home/ppabc1/FAMP/conf.files/httpd_1.conf;
cp /usr/home/ppabc1/FAMP/conf.files/httpd-mpm.conf /usr/local/etc/apache22/extra/httpd-mpm.conf;
cp /usr/home/ppabc1/FAMP/conf.files/httpd.conf /usr/local/etc/apache22/httpd.conf;
mkdir /home/wwwroot;
chmod 777 /home/wwwroot;
cp /usr/home/ppabc1/FAMP/index.htm /home/wwwroot/;
cp /usr/home/ppabc1/FAMP/php.php /home/wwwroot/;
cp /usr/local/sbin/apachectl /usr/local/etc/rc.d/apache22.sh;
/usr/local/etc/rc.d/apache22.sh start;
cd /usr/ports/lang/php5;
make config;
make install clean;
cd /usr/ports/lang/php5-extensions/;
make config;
make install clean;
cp /usr/local/etc/php.ini-recommended /usr/home/ppabc1/FAMP/conf.files/php_1.ini
cp /usr/home/ppabc1/FAMP/conf.files/php.ini /usr/local/etc/php.ini;
cd /usr/ports/devel/ZendOptimizer/;
make install clean;
cd /usr/ports/www/eaccelerator;
make install clean;
mkdir /home/wwwroot/phpmyadmin;
cp -R /usr/home/ppabc1/FAMP/phpmyadmin/* /home/wwwroot/phpmyadmin/;
chmod 777 /home/wwwroot/phpmyadmin;
chmod 777 /home/wwwroot/phpmyadmin/libraries;
chmod 777 /home/wwwroot/phpmyadmin/libraries/*;
cp /usr/home/ppabc1/FAMP/conf.files/etc]ipfw.rules /etc/ipfw.rules;
cp /usr/home/ppabc1/FAMP/conf.files/etc]rc.conf /etc/rc.conf;
echo The FAMP install completed

]]>

© 版权声明
THE END
喜欢就支持以下吧
点赞0 分享