lamp 安装过程

包的下载地址:

http://www.verycd.com/topics/2843130/ 

  
  
  
  
  1. cd ~ 
  2. cd /lamp/libxml2-2.6.30 
  3. ./configure --prefix=/usr/local/libxml2/ 
  4. make  
  5. make install 
  6.   
  7. cd /lamp/libmcrypt-2.5.8 
  8. ./configure --prefix=/usr/local/libmcrypt/ 
  9. make  
  10. make install 
  11.   
  12. cd /lamp/libmcrypt-2.5.8/libltdl 
  13. ./configure --enable-ltdl-install 
  14. make 
  15. make install 
  16.   
  17. cd /lamp/zlib-1.2.3 
  18. ./configure 
  19. make 
  20. make install  
  21.   
  22. cd /lamp/libpng-1.2.31 
  23. ./configure --prefix=/usr/local/libpng/ 
  24. make 
  25. make install 
  26.   
  27. mkdir /usr/local/jpeg6 
  28. mkdir /usr/local/jpeg6/bin 
  29. mkdir /usr/local/jpeg6/lib 
  30. mkdir /usr/local/jpeg6/include 
  31. mkdir -p /usr/local/jpeg6/man/man1 
  32. cd /lamp/jpeg-6b 
  33. ./configure --prefix=/usr/local/jpeg6/ --enable-shared --enable-static 
  34. make 
  35. make install 
  36.   
  37. cd /lamp/freetype-2.3.5 
  38. ./configure --prefix=/usr/local/freetype/ 
  39. make 
  40. make install 
  41.   
  42. cd /lamp/autoconf-2.61 
  43. ./configure 
  44. make  
  45. make install 
  46.   
  47. cd /lamp/gd-2.0.35 
  48. ./configure --prefix=/usr/local/gd2/ --with-jpeg=/usr/local/jpeg6/ --with-freetype=/usr/local/freetype/ 
  49. make 
  50. make install 
  51.   
  52. cd /lamp/httpd-2.2.9 
  53. ./configure --prefix=/usr/local/apache2/ --sysconfdir=/etc/httpd/ --with-included-apr --disable-userdir --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-static-support 
  54. make 
  55. make install 
  56.   
  57. /usr/local/apache2/bin/apachectl start 
  58. echo "/usr/local/apache2/bin/apachectl start" >> /etc/rc.d/rc.sysinit 
  59.   
  60. cd /lamp/ncurses-5.6 
  61. ./configure --with-shared --without-debug --without-ada --enable-overwrite 
  62. make  
  63. make install 
  64.   
  65. groupadd mysql 
  66. useradd -g mysql mysql 
  67. cd /lamp/mysql-5.0.41 
  68. ./configure --prefix=/usr/local/mysql/ --with-extra-charsets=all 
  69. make 
  70. make install 
  71.   
  72. cp support-files/my-medium.cnf /etc/my.cnf 
  73. /usr/local/mysql/bin/mysql_install_db --user=mysql 
  74. chown -R root /usr/local/mysql 
  75. chown -R mysql /usr/local/mysql/var 
  76. chgrp -R mysql /usr/local/mysql 
  77.   
  78. /usr/local/mysql/bin/mysqld_safe  --user=mysql & 
  79.   
  80. cp /lamp/mysql-5.0.41/support-files/mysql.server /etc/rc.d/init.d/mysqld 
  81. chown root.root /etc/rc.d/init.d/mysqld 
  82. chmod 755 /etc/rc.d/init.d/mysqld 
  83. chkconfig --add mysqld 
  84. chkconfig --list mysqld 
  85. chkconfig --levels 245 mysqld off 
  86.   
  87. cd /lamp/php-5.2.6 
  88. ./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/local/libxml2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-freetype-dir=/usr/local/freetype/ --with-gd=/usr/local/gd2/ --with-mcrypt=/usr/local/libmcrypt/ --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets  
  89. make 
  90. make install 
  91.   
  92. cp php.ini-dist /usr/local/php/etc/php.ini 
  93. echo "Addtype application/x-httpd-php .php .phtml" >> /etc/httpd/httpd.conf 
  94. /usr/local/apache2/bin/apachectl restart 
 
 
 

你可能感兴趣的:(职场,休闲,lamp安装过程)