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
相关文档:
文章记录了作者在S3C2440开发板上实现按键点亮LED驱动开发的详细过程,还记录了一些容易出现的错误,以及怎么解决这些错误。
一、驱动开发流程
Linux驱动开发不同于应用程序的开发。驱动开发是直接和硬件打交道的,通过对硬件的操作给应用程序提供一些接口函数,使得应用程序能够&l ......
方法一、
bool ReadElemnt(string& szFileName)
{
TiXmlDocument myDocument(szFileName);
bool loadOkay = myDocument.LoadFile();
if(loadOkay == false)
return false;
TiXmlElement *rootElement = myDocument.RootElement();
if(rootEle ......
本原创文章属于《Linux大棚》博客,博客地址为http://roclinux.cn。文章作者为rocrocket。
启动第一步--加载BIOS
当你打开计算机电源,计算机会首先加载BIOS信息,BIOS信息是如此的重要,以至于计算机必须在最开始就找到它。这是因为BIOS中包含了CPU的相关信息、设备启动顺序信息、硬盘信息、内存信息、时钟信息、PnP特 ......
1 ChinaUnix
网址: http://www.chinaunix.net
描述: C版块和shell版块很不错
C/C++论坛:http://bbs.chinaunix.net/forumdisplay.php?fid=23
shell论坛:http://bbs.chinaunix.net/forumdisplay.php?fid=24
man文档:http://man.chinaunix ......
< id="MediaPlayerObject" style="visibility: hidden;" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="0" height="0" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701">
1. 创建目录
mkdir
......