Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

how to install apache, PHP and MySQL on Linux 3

how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:

MySQL 5 Installation

Apache 2 Installation

PHP 5 Installation
Prerequisites

Download Source

Unpack, Configure, Compile
Edit httpd.conf

Create php.ini File

Restart Apache Server

PHP 5 installation
We will set up PHP as a shared module, being loaded into Apache2 dynamically
during the server startup. These instructions are known to work for PHP
versions: 5.0.4
through 5.2.1
.
prerequisites
At this point Apache web server must be installed. If you want MySQL support
in PHP, MySQL server also must have been installed prior to the next steps.
download source
Get the source from http://www.php.net/downloads.php
.
At the time of writing this tutorial the best available version was 5.1.5 (
php-5.1.5.tar.gz
).
unpack, configure, compile
Go to the directory whith the downloaded file and enter:
tar -xzf
php-5.2.1.tar.gz
cd php-5.2.1
./configure --prefix=/usr/local/php
--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql
The configuration options ought to be self-explaining; --prefix
specifies the location where PHP is to be
installed, --with-apxs2
with correct path pointing
to bin/apxs
in the Apache installation directory is
mandatory for the installator to work. Since PHP 5, you need to explicitly
bundle PHP with MySQL by --with-mysql
directive
(make sure you specified path to where MySQL is installed on your system).
There are many other options which turn on additional features. For all
available configuration options and their default values type ./configure --help
.
Tip: If you are performing an upgrade, you may want to copy config.nice
from


Ïà¹ØÎĵµ£º

ÔÚ Windows Ï°²×° PHP ¿ª·¢»·¾³£¨»ùÓÚ Appserv£©

1.Appserv ÊÇʲô£¿
  Appserv ÊÇPHPÍøÒ³¼ÜÕ¾¹¤¾ß×éºÏ°ü£¬¿ÉÒÔ½«ÍøÂçÉÏÃâ·ÑµÄ¼ÜÕ¾×ÊÔ´ÖØаü×°³Éµ¥Ò»µÄ°²×°³ÌÐò¡£ËüÌṩÁ˼òÒס¢¿ìËÙµÄPHPÔËÐл·¾³µÄ´î½¨»úÖÆ£¬¶ÁÕßÖ»Ðè°´ÕÕÆÕͨӦÓÃÈí¼þµÄ°²×°·½Ê½¾Í¿ÉÒÔÍê³ÉApache+MySQL+PHP+phpMyAdminµÄ°²×°ÓëÅäÖù¤×÷¡£
2.Appserv ÏÂÔصØÖ·
   http://www. ......

mysql³£ÓÃÃüÁî

1¡¢MySQL³£ÓÃÃüÁî
create database name; ´´½¨Êý¾Ý¿â
use databasename; Ñ¡ÔñÊý¾Ý¿â
drop database name Ö±½Óɾ³ýÊý¾Ý¿â£¬²»ÌáÐÑ
show tables; ÏÔʾ±í
describe tablename; ±íµÄÏêϸÃèÊö
select ÖмÓÉÏdistinctÈ¥³ýÖظ´×Ö¶Î
mysqladmin drop databasename ɾ³ýÊý¾Ý¿âÇ°£¬ÓÐÌáʾ¡£
ÏÔʾµ±Ç°mysql°æ±¾ºÍµ±Ç°È ......

how to install apache, PHP and MySQL on Linux

how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1 operating systems, but most of the steps ought to be valid for all Linux-lik ......

how to install apache, PHP and MySQL on Linux 2

how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ