分类: LINUX
2005-10-18 10:38:21
Solaris(Linux)下安装 APACHE+PHP+MYSQL
文件信息:
APACHE版本:apache_1.3.33
PHP版本:php-4.3.11
MYSQL版本:暂定
安装mysql:
./configure --prefix=/home/mysql
make
make install
安装完毕后,进入 mysql 安装目录(cd /home/mysql)
./mysql_install_db (初始化数据库)
./mysqld_safe & (启动mysql)
./mysqladmin -uroot password '新密码' (给root用户设定密码)
STEP 1:[CONFIG APACHE]
cd apache_1.3.33
./configure --enable-module=so --prefix=/home/fm974-apache #动态安装APACHE的各模块
make
make install
STEP 2:[CONFIG PHP]
cd ../php-4.3.11
./configure --prefix=/home/fm974-apache/php --with-mysql=/home/mysql --with-apxs=/home/fm974-apache/bin/apxs --with-config-file-path=/home/fm974-apache/php --enable-track-vars
make
make install
STEP 3:[修改APACHE配置文件 httpd.conf]
vi apache/conf/httpd.conf
DirectoryIndex index.html index.php
LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php .phtml
STEP 4:[修改PHP配置文件 php.ini]
vi php.ini global =On