FAQs about installing Apache and PHP in Linux

Source: Internet
Author: User
Tags gmp install openssl snmp openldap
Problem: Configure: Error: unable to find libgd. (A | so)
Solution: If Ubuntu or Debian is used, sudo apt-Get install apache2 directly.
Libapache2-mod-php5 PhP5 php5-gd is basically done, but with the source code installation is still very troublesome wget http://www.linuxidc.com/system/systemfiles/2010/5/gd-2.0.11.tar.gztar zxvf gd-2.0.11.tar.gzcd gd-2.0.11sudo./configure -- prefix =/usr/local/gd2sudo makesudo make install

PHP :~ /:./Configure ...... -- With-Gd =/usr/local/GD2 ......

Problem: Configure: Error:
The xml2-config not found. Please check your libxml2 installation solves:

#Yum-y installLibxml2Libxml2-devel

Problem: checking for PKG-config... /Usr/bin/PKG-configconfigure: Error: cannot find OpenSSL's <EVP. h>

Solution:

#Yum-y install OpenSSL-devel

Problem:Configure: Error: Please reinstall the Bzip2 Distribution

Solution:

#Yum-y install Bzip2 bzip2-devel

Problem:Configure: Error: Please reinstall the libcurl distribution-Easy. h shoshould be in <curl-dir>/include/curl/

Solution:

#Yum-y installCurlCurl-devel

Problem:Configure: Error: libjpeg. (also) not found.

Solution:

#Yum-y install libjpeg-devel

Problem:Configure: Error: LibPNG. (also) not found.

Solution:

#Yum-y install libpng-devel

Problem:Configure: Error: FreeType. h not found.Solution:

#Yum-y install FreeType-devel

Problem:Configure: Error: unable to locate GMP. h

Solution:

#Yum-y install GMP-devel

Problem:Configure: Error: cannot find MySQL header files under/usr. Note that the mysql client library is not bundled anymore!

Solution:

#Yum-y install mysql-devel

Problem:Configure: Error: Please reinstall the ncurses Distribution

Solution:

#Yum-y install ncurses-devel

Problem:Checking for unixodbc support... Configure: Error: ODBC header file '/usr/include/sqlext. H' not found!

Solution:

#Yum-y install unixodbc-devel

Problem:Configure: Error: cannot find pspell

Solution:

#Yum-y install pspell-devel

Problem:Configure: Error: mcrypt. h not found. Please reinstall libmcrypt.

Solution:

#Yum-y install libmcrypt-devel

Problem:Configure: Error: SNMP. h not found. Check your SNMP installation.

Solution:

# Yum install net-snmp-devel problem: Configure: Error:Cannot
Find LDAP. h

Solution: Yum install OpenLDAP openldap-devel


Problem:Error
While loading shared libraries: libmysqlclient. so.18: cannot open shared object file: no such file or directory

Solution:Vim
/Etc/lD. So. conf

Include lD. So. conf. d/*. conf
/Usr/local/lib
/Usr/local/MySQL/lib


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.