澳大利亚新闻 澳洲留学移民 澳洲留学移民精华 澳大利亚广播电台 澳大利亚英语讲座 雅思听力 雅思口语 雅思阅读 雅思写作 澳大利亚贴图 新西兰论坛 澳大利亚招聘 澳大利亚租房 澳大利亚旅游 澳大利亚黄页 澳大利亚宠物 澳大利亚文学 澳大利亚美食 堪培拉,Canberra论坛 悉尼,Sydney论坛 墨尔本,Melbourne论坛 布里斯本,Brisbane论坛 悉尼大学,USYD Forum 新南威尔士大学,UNSW CSA Forum 麦觉理大学,MQ Forum 悉尼科技大学,UTS Forum TAFE 澳洲高中,Taylors College论坛 墨尔本大学联盟 Adelaide大学联盟 昆士兰大学联盟

how to install Apache, PHP, Mysql (英文说明)(页 1) - 澳洲网页设计 -

澳洲中文网 » 澳洲网页设计 » how to install Apache, PHP, Mysql (英文说明)
澳大利亚免费贷款咨询!

2005-12-22 01:40 城市童话
how to install Apache, PHP, Mysql (英文说明)

Hello. This howto contains how to install Apache, PHP, Mysql.
First we need to install apache so let's start with this.
-------------------
Apache 2.0.54
-------------------
First, we need to download the latest version of Apache.
1) wget [url=http://apache.zone-h.org/httpd/httpd-2.0.54.tar.gz][color=#000020]http://apache.zone-h.org/httpd/httpd-2.0.54.tar.gz[/color][/url]
Now we need to ungzip it and cd to the apache's dir.
2) tar zxvf httpd-2.0.54.tar.gz
3) cd httpd-2.0.54.tar.gz
Now, let's configure the apache with using the most common options.
4) ./configure --prefix=/usr/local/apache2 --enable-info --enable-ssl --enable-module=so --enable-rewrite --enable-so
Let's compile it!
5) make
Now, let's install it.
6) make install
And that's it! Apache should be installed. Apache's dir is /usr/local/apache2
Conf file is located in /usr/local/apache2/conf/httpd.conf
You can start apache like this: /usr/local/apache2/bin/apachectl start
And please remember, you don't need to restart apache if your going to change the configfile, you can easily reload the config file

/usr/local/apache2/bin/apachectl graceful
-------------------
PHP 4.3.11
-------------------
Let's download the latest version of PHP4.
1) wget [url=http://ee.php.net/get/php-4.3.11.tar.gz/from/www.php.net/mirror][color=#000020]http://ee.php.net/get/php-4.3.11.tar...php.net/mirror[/color][/url]
Let's ungzip it and cd to the php dir.
2) tar zxvf php-4.3.11.tar.gz
3) cd php-4.3.11
Let's configure it with using the most common options.
4) ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl --with-zlib --with-bz2 --enable-ftp --with-gd --with-jpeg --with-png --with-gettext --with-mime-magic --with-mysql
And now compile it...
5) make
And after that, install it.
6) make install
Now were' going to copy the php conf file
7) cp php.ini-dist /usr/local/lib/php.ini
And now add one line to httpd.conf

8) echo "AddType application/x-httpd-php .php" > /usr/local/apache2/conf/httpd.conf
And apache should be installed with PHP support

-------------------
Mysql 4.1.12
-------------------
Ok, we need to first add the mysql user and group.
1)
groupadd mysql
useradd mysql -g mysql
on FreeBSD:
pw group add mysql
pw user add mysql -g mysql
Now, we need to download the latest version of Mysql4.1 ( Which is a recommended version. )
2) wget [url=http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.12.tar.gz/from/ftp://mirror.mcs.anl.gov/pub/mysql/][color=#000020]http://dev.mysql.com/get/Downloads/M...gov/pub/mysql/[/color][/url]
And now ungzip it and cd to the mysql sourcedir.
3) tar zxvf mysql-4.1.12.tar.gz
4) cd mysql-4.1.12
Now, we are going to configure the mysql using the default options.
5) ./configure --prefix=/usr/local/mysql
And now compile it.
6) make
Now install it.
7) make install
Now you need to copy the mysql conf file.
8) cp support-files/my-medium.cnf /etc/my.cnf
Now, we need to install the mysql database.
9) /usr/local/mysql/bin/mysql_install_db --user=mysql
And now chown it.
10)
chown -R root .
chown -R mysql var
chgrp -R mysql .
Okey, now we're going to try to start the mysqld.
11) /usr/local/mysql/bin/mysqld_safe --user=mysql &
And to set mysql's root password type this:
12) /usr/local/mysql/bin/mysqladmin -u root password "new-password"

2005-12-24 05:17 城市童话
装PHP的时候,如果不要GD支持,可以这样.

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl --with-zlib --with-bz2 --enable-ftp --with-mysql

2006-1-12 03:36 城市童话
如果装php4.4.1的时候有错,可以按照下面方法.
On a Fedora Core 4 box, I have installed Apache 2.2.0 as per:

$ ./configure --prefix=/www --enable-modules=all --enable-mods-shared=all
$ make
$ make install

Then, I installed PHP 5.1.1 as per:

$ ./configure  --with-regex=system --enable-dbase --with-apxs2=/www/bin/apxs
--with-freetype --with-pdflib --with-mysql=/usr/local/mysql
$ make
$ make install

Then added the following in my httpd.conf:

LoadModule php5_module libexec/libphp5.so
AddType application/x-httpd-php .php .phtml

2006-1-12 10:05 地域天使

2006-3-5 01:27 1361109
这对我有点难


2007-6-24 23:46 zhw11111
盗版WINXP 装不了 PHP
有个要下载的时候要正版WINXP

页: [1]


澳大利亚邮局 澳大利亚小提琴教学
Click Here 澳洲楼盘

Powered by 澳大利亚中文网 5.5.0  © 2005-2007 澳大利亚论坛