Install Mysql + Apache + GD + PHP + Zend

xiaoxiao2021-03-06  22

Version: mysql-4.0.16

Apache-2.0.48

PHP-4.3.9

GD-2.0.27

Zendoptimizer-2.5.7-Linux-Glibc21-i386

Install sequential

First, install mysql

Configuration command

./configure --with-mysqld-user = root --prefix = / usr / local / mysql --with-unix-socket-path = / usr / local / mysql / var / mysql.sock

Attachment:

# prefix = / usr / local / mysql mysql installation target directory

# sysconfdir = / etc ini Path to Profile

# localstatedir = / var / lib / mysql data inventory Path

After Make Make Install

Then cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf

Initialization database / usr / local / mysql / bin / mysql_install_db

Cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/

chown -r mysql var /

/ usr / local / mysql / bin / mysql

Run OK

Second, install Apache

Configuration command

./configure --prefix = / usr / local / apache2 --enable-track-vars --enable-cgi --with-config-file-path = / usr / local / apache2 / conf --Nable-So - Enable-mods-shared = MOST

Attachment:

# prefix = / usr / local / apache2 Apache installation target directory

# - enable-track-vars Starting the cookie Get / POST function

# - Enable-CGI support CGI

# - with-config-file-path = / usr / local / apache2 / conf profile

# - enable-so --enable-mods-shared = MOST supports DSO dynamic loading

After Make Make Install

/ usr / local / apache2 / bin / apachectl start

Run OK

Attachment:

Main application of httpd.conf

Add PHP's HTTPD.CONF configuration

AddType Application / X-httpd-php .php .phtml .php3 .inc

AddType Application / X-httpd-php-source .phps

DocumentRoot home directory

DirectoryIndex Index.html Index.php

Serveralias www.chinae.com.cn alias

See:

ServerAdmin Webmaster@dummy-host.example.com

Documentroot / Home / HTDOCS

Servername 086biz.com.cn

Serveralias www.086biz.com.cn

ErrorLog logs / dummy-host.example.com-error_log

Customlog logs / dummy-host.example.com-access_log Common

AddDefaultCharset GB2312 default font

Third, install GD

Configuration command

./configure --prefix = / usr / local / gd2 four, install PHP

Configuration command

./configure --prefix = / usr / local / php --with-mysql = / usr / local / mysql --with-apxs2 = / usr / local / apache2 / bin / apxs --enable-track-vars - Enable-force-cgi-redirect --with-config-file-path = / usr / local / php / etc / php.ini

Attachment:

# - prefix = / usr / local / PHP PHP installation target directory

# - with-mysql = / usr / local / mysql mysql support path // I write the path has not been matched, not written is successful.

Application of APXS for # - with-apxs2 = / usr / local / apache2 / bin / apxs apache

# - enable-track-vars

# - enable-force-cgi-redirect

# - with-config-file-path = / usr / local / PHP / etc Profile path

V. Install Zend

Configuration command

./install.sh

It's easy to see English steps.

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

New Post(0)