MySQL + APACHE + PHP Linux Installation Guide

xiaoxiao2021-03-06  69

installation steps:

1.mysql

Download Mysql for Linux RPM Packages in the following page

http://www.mysql.com/downloads/down...3.52-1.i386.rpm

http://www.mysql.com/downloads/down...3.52-1.i386.rpm

Save the / home / TMP directory command list:

CD / Home / TMP rpm -ivh mysql-3.23.52-1.i386.rpm # Install mysql server rpm -ivh mysql-client-3.23.52-1.i386.rpm # Install MySQL Client / USR / MYSQL / SAFE_MYSQLD & # Start MySQL Server MySQL # Run the mysql client and open the ROOT user's remote access. In order to debug USE MySQL Update User Set Host = '%' Where User = 'root' and host <> 'localhost'; flush privileges; quit

To this mysql installation

2.Apache download Apache's For Linux source code package http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz to / home / tmp directory command list:

CD / home / tmp tar -zxvf apache_1.3.26.tar.gz mv apache_1.3.3.26.tar.gz apache cd apache ./configure --prefix = / usr / local / apache --enable-module = SO Make Make Install

Install apache to / usr / local / apache and configure Apache Support DSO

3.php downloads PHP for Linux source package http://www.php.net/get_download.php?df=php-4.2.2.Tar.gz to / home / TMP directory command list:

CD / home / tmp tar -zxvf php-4.2.3.tar.gz mv php-4.2.3.tar.gz php cd php ./configure --prefix = / usr / local / php --with-apxs = / USR / local / apache / bin / apxs --with-config-file-path = / usr / local / lib --enable-track-vars --with-xml --with-mysql make make install cp php.ini- Dist /usr/local/lib/php.ini

Installing the PHP to / usr / local / php settings in DSO settings to / usr / local / lib opens mysql, XML support

4. Configuration

Vi /usr/local/apache/conf/httpd.conf Do the following configuration # 将 s s q q q 地址 地址 地址 地址 地址 地址 地址 地址 地址 地址 地址 为 为 为 地址 为 为 为 为 为 为table of Contents #

Equally

#Options Followsymlinks MultiViews For security, remove "INDEXES" #

# DirectoryIndex default.php default.phtml default.php3 default.html default.htm

#

# Set the default file name order #addtype application / x-httpd-php .php .phtml .php3 .inc #addtype application / x-httpd-php-source .phps # Set the PHP file suffix store exit

Vi /usr/local/lib/php.ini # register-golbals = on

Deployment

5. Startup service / usr / local / apache / bin / apachectl start

6. Remarks Apache's default maximum number of processes under Linux is 256, no matter how httpd.conf cannot exceed this limit. If you want to increase this limit, edit /HOME/TMP/apache/src/include/httpd.h before compiling Apache, change the #define hard_server_limit 256 and compile Apache after compiling Apache,

MOD_SO in Apache 1.3.26 seems to be no default module. When you need to add --Nable-module = so, I first compiled did not add this parameter, and the result could not find APXS when PHP compile.

The default configuration file path in PHP 4.2.3 seems to be changed. To compile --with-config-file-path = / usr / local / lib parameters, I used to compile PHP.INI and put it N places. No. Can only add this parameter.

P.S. Do not guarantee the steps described herein to apply to other versions

Attachment: related files download address php: http://www.php.net/get_download.php?df=php-4.2.3.tar.gz apache: http://www.apache.org/dist/httpd/apache_1 .3.26.tar.gz mysql server: http://www.mysql.com/downloads/down...3.52-1.i386.rpm mysql client: http://www.mysql.com/downloads/down .. . 3.52-1.i386.rpm

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

New Post(0)