问题1:
httpd: apr_sockaddr_info_get() failed for localhost.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1
for ServerName
httpd not running, trying to start
[iyunv@localhost ~]# cd /usr/local/httpd/conf/
[iyunv@localhost conf]# vi httpd.conf
97 #ServerName crushlinux.example.com:80
98 ServerName localhost:80
[iyunv@localhost mysql-5.1.55]# service mysqld restart
Shutting down MySQL. [确定]
Starting MySQL. [确定]
如果报错:(没有略过)
[iyunv@localhost mysql-5.1.55]# service mysqld restart
MySQL manager or server PID file could not be found! [失败]
Starting MySQL.Manager of pid-file quit without updating fi[失败]
问题:
启动MYSQL报错Starting MySQL.Manager of pid-file quit without updating fi[失败]
rm -rf /var/lib/mysql
/usr/local/mysql/bin/mysql_install_db --user=mysql
1.源代码安装libmcrypt
[iyunv@localhost ~]# tar xf libmcrypt-2.5.8.tar.gz -C /usr/src/
[iyunv@localhost ~]# cd /usr/src/libmcrypt-2.5.8/
[iyunv@localhost libmcrypt-2.5.8]# ./configure && make && make install
[iyunv@localhost libmcrypt-2.5.8]# ln -s /usr/local/lib/libmcrypt.* /usr/lib/
2.源代码安装mhash
[iyunv@localhost ~]# tar xf mhash-0.9.9.9.tar.gz -C /usr/src/
[iyunv@localhost ~]# cd /usr/src/mhash-0.9.9.9/
[iyunv@localhost mhash-0.9.9.9]# ./configure && make && make install
[iyunv@localhost mhash-0.9.9.9]# ln -s /usr/local/lib/libmhash* /usr/lib/
3.源代码安装mcrypt
[iyunv@localhost ~]# tar xf mcrypt-2.6.8.tar.gz -C /usr/src/
[iyunv@localhost ~]# cd /usr/src/mcrypt-2.6.8/
[iyunv@localhost mcrypt-2.6.8]# ./configure && make && make install
编译安装mcrypt报错:
configure: error: *** libmcrypt was not found
环境变量问题:gcc编译的时候根据自身定义的变量寻找相关函数库等文件
libmcrypt在环境变量中没有定义出来:所以需要手动添加:
export LD_LIBRARY_PATH=/usr/local/lib:$ LD_LIBRARY_PATH
继续编译安装吧!
4.源代码安装PHP
[iyunv@localhost ~]# tar xf php-5.3.6.tar.gz -C /usr/src/
[iyunv@localhost ~]# cd /usr/src/php-5.3.6/
[iyunv@localhost php-5.3.6]# ./configure --prefix=/usr/local/php5 --with-mcrypt --with-
11、部署应用案例
tar xf phpMyAdmin-3.3.10-all-languages.tar.gz
mv phpMyAdmin-3.3.10-all-languages /usr/local/httpd/htdocs/phpMyAdmin
cd /usr/local/httpd/htdocs/phpMyAdmin/
cp config.sample.inc.php config.inc.php
vi config.inc.php
$cfg['blowfish_secret'] = 'pwd@123'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */