Common mistakes in LNMP construction

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.