lamp
centos6.5 + apache/2.2.29 + php 5.3.29 + mysql5.6.20
apache(/usr/local/apache)
php(/usr/local/bin/php)
mysql(/usr/local/mysql)
yum install gcc zlib-devel -y
apache cat /usr/local/apache/build/config.nice
./configure --prefix=/usr/local/apache --enable-so --enable-modules=all --enable-mods-shared=all
make && make install
--enable-so 動態共享物件
mysql(mysql-advanced-5.6.20-linux-glibc2.5-x86_64)(二進位製包安裝)
yum install libaio-devel libaio -y
useradd -m -d /dev/null -s /sbin/nologin mysql
cd /usr/local
ln -s mysql-advanced-5.6.20-linux-glibc2.5-x86_64 mysql
cp mysql-advanced*/support-files/my-default.cnf /etc/my.cnf
cp mysql-advanced*/support-files/mysql.server /etc/init.d/mysqld
chmod 755 /etc/init.d/mysqld
cd mysql
chown -r mysql:mysql .
vim /etc/my.cnf
[client]
socket = /var/lib/mysql/mysql.sock #一定要加[client下] client連線時 預設以為mysql.sock在/tmp/mysql.sock下 所以報錯can't connect to local mysql server through socket '/tmp/mysql.sock'
datadir = /usr/local/mysql/data
port = 3306
socket = /var/lib/mysql/mysql.sock
user = mysql
pid-file = /var/run/mysql/mysqld.pid
[mysqld_safe]
log-error=/var/log/mysqld.log
mkdir /var/lib/mysql
chown mysql:mysql /var/lib/mysql
#安裝scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
#啟動mysql
#檢查apache是否有php模組
apachectl -m | grep php
#檢查php中是否有mysql模組
php -i | grep mysql
#檢視此lamp架構中的各個模組(ip 192.168.1.2)
192.168.1.2/phpinfo.php
LAMP原始碼安裝
原始碼安裝lamp環境 個人習慣 server tools 軟體包目錄 wget wget wget tar xf apr 1.6.5.tar.gz cd apr 1.6.5 configure prefix usr local apr make make install tar xf apr ut...
Ubuntu 8 04 搭建LAMP 全原始碼安裝
安裝apache2的文章在部落格裡面有,自己找找,linux類目下。mysql5.1.31的也有,也在部落格裡面有,mysql類目下 先裝完上面兩個再裝php5。configure prefix 安裝目錄 make make install 下面的引數說明乙個,prefix是指定安裝目錄,with ...
Linux環境配置之LAMP搭建 原始碼安裝
系統環境 cenos5 所用軟體 安裝步驟 注意 我所使用的軟體都存放在 root software資料夾下 第一步 mysql安裝 cd root software tar zxvf mysql cd mysql.more install source 檢視幫助文件 按照幫助文件進行安裝,安裝完成...