LAMP平台的构建
#!/bin/sh #Install LAMP in RHEL5 INSTALL_DIR=`pwd` tar -zxf httpd- cd httpd- ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite; make; make install; cd $INSTALL_DIR tar -zxf mysql- rm -rf /etc/my.cnf cd /usr/local ln -s mysql- adduser mysql cd /usr/local/mysql ./scripts/mysql_install_db chown -R mysql.mysql /usr/local/mysql- ./bin/mysqld_safe --user=root & > /dev/null cd $INSTALL_DIR tar -zxf php- cd php- ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php;make;make install; cp php.ini-production /usr/local/php/php.ini cd $INSTALL_DIR echo "AddType application/x-httpd-php .php" >> /usr/local/apache2/conf/httpd.conf echo "DirectoryIndex index.php" >> /usr/local/apache2/conf/httpd.conf killall -9 httpd /usr/local/apache2/bin/apachectl start
|
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |