???????????????
???????apr???????
# tar -xf apr-1.5.0.tar.bz2
# cd apr-1.5.0
#./configure  --prefix=/usr/local/apr   //??????λ??
# make && make install
???apr-util
# tar -xf apr-util-1.5.3.tar.bz2
# cd apr-util-1.5.3
# ./configure  --prefix=/usr/local/apr-util  --with-apr=/usr/local/apr
# make && make install
???pcre???????
# tar -xf pcre-8.35.tar.gz
# cd pcre-8.35
# ./configure  --prefix=/usr/local/pcre
# make && make install
?????apache
# tar -xf httpd2.4.9.tar.gz
# cd <span style="font-family: Arial?? Helvetica?? sans-serif;">httpd2.4.9</span>
# ./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-modules=most
# make && make install
????????????м??????????????????????????????????????????apr?????
???????????apr?????????????????--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util ??????????????Apache?????????????apr????????
???????http
????/usr/local/apache/bin/apachectl start
?????????????http://IP/??????? It Works??
??????apache????service????
????cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
????????????service httpd start/stop??????http????
?????????MySQL
????MySQL?????????????http://blog.csdn.net/zqtsx/article/details/9378703??????????д??????
????????mysql?????http://dev.mysql.com/downloads/mysql/???????????????5.6.19?汾???http://www.kuaipan.cn/file/id_671818784440506.htm?
????????????
????groupadd mysql
????useradd -r -g mysql mysql
??????????????
tar zxvf mysql-5.6.12.tar.gz
cd mysql-5.6.12  ??????????? ????????????????????д?????????????????????????? ?? " "?????cmake
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql    #???·??
-DMYSQL_DATADIR=/usr/local/mysql/data           #??????????λ??
-DSYSCONFDIR=/etc                                                #my.cnf·??
-DWITH_MYISAM_STORAGE_ENGINE=1           #???MyIASM????
-DWITH_INNOBASE_STORAGE_ENGINE=1      #???InnoDB????
-DWITH_MEMORY_STORAGE_ENGINE=1         #???Memory????
-DWITH_READLINE=1                                             #????????(????ù?)
-DMYSQL_UNIX_ADDR=/tmp/mysqld.sock         #?????????socket·??
-DMYSQL_TCP_PORT=3306                                 #port
-DENABLED_LOCAL_INFILE=1                            #??????????????
-DWITH_PARTITION_STORAGE_ENGINE=1     #??????????????
-DEXTRA_CHARSETS=all                                     #?????????????
-DDEFAULT_CHARSET=utf8                                 #??????
-DDEFAULT_COLLATION=utf8_general_ci
make
make install
????????????????????????????2?????
????cd /usr/local/mysql
????chown -R mysql:mysql . (????????????????????root???)
????scripts/mysql_install_db --user=mysql (????????????????????????????)
????chown -R root:mysql .  (??????????root????????????mysql?顣 ?????????????д?????????????mysql "rx"???????????????????????????)
????chown -R mysql:mysql ./data   (?????????????????ó?mysql???mysql?顣??????chmod -R ug+rwx  ??д????????????????????????????mysql??????)
??????mysql????????????????????
????cp support-files/mysql.server /etc/init.d/mysql
????#????????????μ????????mysql
????service mysql start
????#??mysql????
????service mysql stop
????#???????mysql????
????service mysql restart
??????????root???password?????password???
???????password cd ?л???mysql?????????
????cd /usr/local/mysql
????#./bin/mysqladmin -u root password
???????????????????????????password?????
????#???MySQL??????
????# 1????????н???mysql
????ps -ef | grep mysql
????# 2????port??????
????netstat -tnl | grep 3306
????# 3?????mysql?汾?????
????mysqladmin version
???????????mysql?????п?????????????????′???
????The server quit without updating PID f[???]var/lib/mysql/
??????????????????????????mysql???£???rpm??????????mysql???????е?????ж????????????????????????????mysql?????
?????????PHP
????# tar -xf php-5.5.12.tar.gz
????# cd php-5.5.12
????# ./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-apxs2=/usr/local/apache/bin/apxs  --enable-fastcgi --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --disable-debug --disable-ipv6 --with-iconv-dir --with-freetype-dir --with-jpeg-dir=/usr/local/jpeg --with-zlib --with-libxml-dir=/usr/local/libxml2 --enable-xml=/usr/local/libxml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl=/usr/local/curl --enable-mbregex --enable-fpm --enable-mbstring  --with-gd --enable-gd-native-ttf --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap
????# make && make install
????????????м??????????????????????????????????????????apr?????
?????????????????php????У?
????# cp php.ini-production /usr/local/php5/etc/php.ini
????PHP??Apache????
??????apache???????httpd.conf????apache???php??
???????????apache??????????壬?apache???????php??β????? ????????AddType??Σ????????????
????[root@Spg-RedHat htdocs]# vi /usr/local/apache/conf/httpd.conf
????AddType application/x-httpd-php  .php
????AddType application/x-httpd-php-source  .phps
???????DirectoryIndex??????index.php??
????DirectoryIndex  index.php  index.html
????<Directory /data/bbs/admin>
????Options FollowSymLinks
????AllowOverride None
????Order deny??allow
????Allow from all
????</Directory>
?????????????棺
????[root@Spg-RedHat htdocs]# vim /usr/local/apache/htdocs/index.php
???????????
????<?
????phpinfo();
?????
????>
???????????http??
????service httpd stop
????service httpd start
???????????

?????????PHP????????