1: Error when running Nginx
./configure:error:the HTTP Rewrite module requires the PCRE library.
Solve:
[Email protected] nginx-1.2.0]# Rpm-qa | Grep-i Pcre
Pcre-7.8-6.el6.x86_64
[Email protected] nginx-1.2.0]# yum-y install Pcre-devel
2:./CONFIGURE:ERROR:SSL modules require the OpenSSL library.
Solve:
[Email protected] nginx-1.2.0]# Rpm-qa | Grep-i OpenSSL
Openssl-1.0.0-27.el6.x86_64
Pyopenssl-0.10-2.el6.x86_64
[Email protected] nginx-1.2.0]# yum-y install Openssl-devel
3: Error when running MySQL
Remove CMakeCache.txt and rerun CMake. On Debian/ubuntu
Solve:
[Email protected] mysql-5.5.13]# yum-y install Ncurses-devel
[Email protected] mysql-5.5.13]# RM-RF CMakeCache.txt
4: Error while running PHP
Configure:error:xml2-config not found. Please check your LIBXML2 installation
Solve:
[Email protected] php-5.4.9]# yum-y install Libxml2-devel
Configure:error:Please Reinstall the Libcurl distribution-
Solve:
[Email protected] php-5.4.9]# Rpm-qa | Grep-i Libcurl
Libcurl-7.19.7-35.el6.x86_64
[Email protected] php-5.4.9]# yum-y install Libcurl-devel
Configure:error:jpeglib.h not found
Solve:
[Email protected] php-5.4.9]# yum-y install *jpeg*
Configure:error:png.h not found.
Solve:
[Email protected] php-5.4.9]# yum-y install *png*
Configure:error:freetype.h not found.
Solve:
[Email protected] php-5.4.9]# yum-y install *freetype*
Configure:error:Cannot Find Ldap.h
Solve:
[Email protected] php-5.4.9]# yum-y install *ldap*
Configure:error:Cannot Find LDAP Libraries In/usr/lib
Solve:
ln-sv/usr/local/lib/libmcrypt*/usr/lib/
ln-sv/usr/local/lib/libmhash.*/usr/lib/
ln-sv/usr/local/lib/libiconv.*/usr/lib/
[[email protected] Desktop] #ldconfig
[Email protected] php-5.4.9]# yum-y install *ldap*.i686
If you also prompt for LDAP errors
cp-frp/usr/lib64/libldap*/usr/lib/
MySQL Startup error
If MySQL does not come up, perform
Chown-r Mysql:mysql/usr/local/mysql
/usr/local/mysql/scripts/mysql_install_db--user=mysql--basedir=/usr/local/mysql--datadir=/usr/local/mysql/data &
Go to/usr/local/mysql/data/directory to delete ib_logfile0 and ib_logfile1 files
Common mistakes in LNMP construction