易截截图软件、单文件、免安装、纯绿色、仅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基于事件驱动的程序框架(转载)

[转]Linux 2.6 内核Epoll用法举例说明
epoll用到的所有函数都是在头文件sys/epoll.h中声明的,下面简要说明所用到的数据结构和函数:
所用到的数据结构:
 
typedef union epoll_data {
void *ptr;
int fd;
__uint32_t u32;
__uint64_t u64; ......

解决linux耳机和喇叭同时发音的问题


装完
NeoShine
Linux 4.0
后,插上耳机后,耳机和喇叭同时发声。
要解决这个故障, 关键问题在于找到文件
ALSA-Configuration.txt

这个文件里有声卡类型与
model
(模块)的对照表。
下面是操作的正确步骤:
1
、下载声卡驱动程序、库文件、工具,下面是目前最新的驱动程序,下载网址:
驱动程序:
ftp: ......

linux tinyxml删除任意给定节点

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

Linux入门笔记二

 1.关机
init 0或者 halt poweroff
重新启动
init 6或者 reboot
关机的时候通知下其他用户 Shutdown
shutdown -r +5 (五分钟之后关机)
2.在Linux下可以使用长文件或目录名,需要遵循的规则
  / 禁止使用
  后缀是没有实际意义的
3.touch a  建立一个文件
4.shell命令的一般格式
  $cmd ......

linux tinyxml插入节点

bool InstertNode(string& szFileName)
{
 
  TiXmlDocument myDocument(szFileName);   
   bool loadOkay = myDocument.LoadFile();
   if(loadOkay == false)
    return false;
   //获得根元素
  TiXmlElement *r ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号