Installation configuration of PHP5 and MYSQL5

xiaoxiao2021-04-01  211

Select the dynamic add module of Apache2, compile on Redhat Linux 9, install PHP non-CGI version

The package I used:

Apache 2.0.54PHP 5.1.4ZLIB 1.2.3mysql 5.0.22libxml2 2.6.26

Issued questions:

1. MySQL has been installed locally

Countermeasure: rpm -e --nodeps mySQL-VERSION-NUMBER. The rest of the software is similar

2. Zlib version is too low

Countermeasure: Download the new version installation, such as Zlib-1.2.3.tar.tar

3. MySQL version cannot be a installation version mysql-standard-5.0.22-linux-i686.tar.gz with a static library, otherwise PHP cannot be configured

Countermeasure: Download the source code compile, such as mysql-5.0.22.tar.gz

4. Don't compile, especially NTFS format, otherwise you will have an inexplicable mistake in Mount.

5. MySQL's configure command is taken from the install file in mysql-5.0.22.tar.gz

Cflags = "- O3" CXX = GCC CXXFLAGS = "- O3-Felide-Constructors / -FNO-Exceptions -fno-RTTI" ./configure / --prefix = / usr / local / mysql --enable-assembler / - WITH-MySQLD-LDFLAGS = -All-Static

6. PHP's configure command

./configure / - with-apxs2 = / usr / local / Apache2 / bin / apxs / - with-mysql = / usr / local / mysql / - with-xml / - with- DOM / - with-zlib / - use-use-type-option / - enable-track-vars / - enable-trans-zars / - enable-trans-sid / - enable- XML / - Enable-LibXML / - Enable-SO

7. Since the LIB library on each machine is different, there may be some Symbol Undefined when loading libphp5.so in Apache2.

Countermeasure: Change the option in Configure --Nable and --With. If necessary, add -disable-all. Note that - disable-all does not install the PHP5-Extension and Perl's compatible libraries, many functions will not be able to run

The rest of the attention can be found in the installation package of the installation package and online article, for example

web server-apache2 php5 mysql5 for linux :: Apache web server-apache2 php5 mysql5 for linux OS :: Php web server-apache2 php5 mysql5 for linux :: Mysql web server-apache2 php5 mysql5 for windows OS

转载请注明原文地址:https://www.9cbs.com/read-131261.html

New Post(0)