Get the App
SLTechnology News&Howtos  ›  Database  › 

How to optimize Ann mysql+apache+php

Shulou Source: shulou.com Published: 2022-05-31 16:53:58 09月14日 Update

In this issue, the editor will bring you about how to optimize Ann mysql+apache+php. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Of course, mysql,apache,php is the first choice for optimizing the installation of mysql+apache+php [@ more@] to set up a web server. After selecting the software, we downloaded mysql (2.23.37), apache (1.3.19) and php (4.0.5) from the download center of this site.

To install.

The installation order I chose is: 1) mysql 2) apache 3) php

You can start the installation, and it's important to get into the habit of looking at. / configure-help before installing the software, as there will be new feature installation methods available.

I) installation of mysql

1. Download the package to / usr/local/src

two。 Decompression package tar-zvxf mysql-2.23.37.tar.gz

3. Enter the decompressed directory / usr/local/src/mysql-2.23.37

4. Run installation configuration

#. / configure-prefix=/usr/local-with-charset=gb2312-with-extra-charsets=big5,latin1

Needless to say, because we use simplified Chinese, we need to optimize the query in simplified Chinese. We also need to use traditional Chinese and English.-- with-charset and-- with-extra-char-charsets configure these needs. OK, you can press enter!

5. Compile mysql

# make

The process is long, and you can take a break or do something else until the compilation is complete.

6. Install mysql

# make install

7. Install the mysql library

# cd / usr/local/lib

#. / mysql_install_db

8. Start the test mysql

# / usr/local/share/mysql/mysql.server start

9. Run mysql

# / usr/local/bin/mysql

10. To run mysql by typing mysql in any directory, you need to move / usr/local/bin/mysql to the / usr/bin and / usr/sbin directories

# cp / usr/local/bin/mysql / usr/bin

# cp / usr/local/bin/mysql / usr/sbin

Mysql installation is complete. ^ o ^

two。 Install apache

1. Download the package to / usr/local/src

two。 Decompression package

3. Set up an apache directory

# cd / usr/local

# mkdir apache

4. Enter the unzipped directory location

# cd / usr/local/src/apache-1.3.19

5. Run installation configuration

#. / configure-prefix=/usr/local/apache-enable-module=most-enable-shared=max

Note that unlike the installation method described in most books and articles, there is no need to cross-configure php and apache, and the installation method of php will be described later! The configuration here means that apache installs maximum and maximum module support.

6. Compile apache

# make

7. Install apache

# make install

Installation of apache is complete

three。 Install php

1. Download the package to / usr/local/src

two。 Decompression package

3. Create a directory for php

# cd / usr/local

# mkdir php

4. Enter the unzipped directory location

# cd / usr/local/src/php-4.0.5

5. Run installation configuration

The configuration here is more complex:

#. / configure-prefix=/usr/local/php-with-apxs=/usr/local/apache/bin/apxs-with-mysql=/usr/local-enable-track-vars-disable-debug

In particular, it is pointed out that this is configured with apache automatic loading php module function and mysql database support function.

6. Compile php

# make

7. Install php

# make install

Php installation completed

The above is the editor for you to share how to optimize Ann mysql+apache+php, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Configuration software directory software package run compile function method support location content that is articles modules analysis different complex maximum long important Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Microsoft Apple Huawei OPPO Reno