易截截图软件、单文件、免安装、纯绿色、仅160KB

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 systems.
Contents:

MySQL 5 Installation

Apache 2 Installation
Prerequisites

Download Source

Unpack, Configure, Compile
Edit httpd.conf

Set up Access Privileges
Start and Stop Apache Server

Automatic Startup
PHP 5 Installation

apache 2 installation
prerequisites
Before you begin, it is highly recommended (though not inevitable) to create
a system user and user group under which your Apache server will be
running.
# groupadd www
# useradd -g www apache2
What is it good for? All actions performed by Apache (for instance your PHP
scripts execution) will be restricted by this user's privileges. Thus you can
explicitly rule which directories your PHP scripts may read or change. Also all
files created by Apache (e.g. as a result of executing your PHP scripts) will be
owned by this user (apache2 in my case), and affiliated with this user group
(www in my case).
download source
Get the source from http://httpd.apache.org/download.cgi

( httpd-2.2.4.tar.gz
). These instructions are known
to work with all 2.x.x Apache versions.
unpack, configure, compile
Go to the directory with the downloaded file and enter:
# tar -xzf
httpd-2.2.4.tar.gz
# cd httpd-2.2.4
# ./configure
--prefix=/usr/local/apache2 --enable-so --with-included-apr
The configure options deserve a little bit more of detail here. The most
important --prefix
option specifies the location
where Apache is to be installed. Another commonly used option --enable-so
turns on the DSO
support, i.e. available modules
compiled as shared objects can be loaded or unloaded at runtime. Very handy.
To compile some modules statically (they are


相关文档:

关于linux下make文件连接静态库的问题

问题:
gcc -c main.c -L ./include libmmgr.a
的时候,总是报错,
正确的做法是
gcc -c main.c -L ./include  -lmmgr
有一个误区是,
gcc -c main.c -L. libmmgr.a
有时候也是对的,但这是特例,是main.c和libmmgr.a在同一个路径下,这时的-L.不起作用,即使删除也可以。 ......

一天学会php(下)

SESSION的使用
SESSION的作用很多,最多用的就是站点内页面间变量传递。在页面开始我们要session_start();
开启SESSION;
然后就可以使用SESSION变量了,比如说要赋值就是:$_SESSION['item']="item1";要得到值就
是$item1=$_SESSION['item'];,很简单吧。这里我们可能会使用到一些函数,比如说判断是不是
某SESSION变 ......

linux tinyxml删除任意给定节点

bool RemoveNode(string& szFileName)
{
  TiXmlDocument myDocument(szFileName);   
   bool loadOkay = myDocument.LoadFile();
   if(loadOkay == false)
    return false;
   //获得根元素
  TiXmlElement *rootElemen ......

在linux命令行下切换到vesa模式, 使用VBE进行绘图


这是一个在linux命令行下使用VBE进行绘图的测试程序
用libx86实现在real mode下的vesa模式设定和图形显示功能
实现在linux的保护模式, 文本命令行下切换到vesa模式,再画个十字的坐标,再几个圆圈^_^
修改自vbespy
安装运行:
    直接运令行运行 "make", 编译成功后
    ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号