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
相关文档:
问题:
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 终于能调用我的C# dll 了.
该死的,我对C# COM注册一向不了解, PHP 文档上只给PHP那部分内容,没告诉我怎么弄dll
我还傻兮兮的用 Regsvr32 注册那个c# dll.
背景:
Windows xp sp3 ; apache 2.2.14 ; php 5.2.12 ;
VS2010 beta ;
语言:
PHP5 , C#
C#部分:
创建一个 C# Class Library . (dll) ......
1、MySQL常用命令
create database name; 创建数据库
use databasename; 选择数据库
drop database name 直接删除数据库,不提醒
show tables; 显示表
describe tablename; 表的详细描述
select 中加上distinct去除重复字段
mysqladmin drop databasename 删除数据库前,有提示。
显示当前mysql版本和当前� ......
< 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
......
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 ......