UNIX下的PHP环境配置,+apache
UNIX下的PHP环境配置
所需软件php-3.0.14-win32.zip
php-3.0.14-win32.zip
mysql-shareware-3.22.32-win.zip
所有软件均安装在/export/home/guoj/下,也可在其他目录。
安装mysql
gzip -dc mysql-3.22.30.tar.gz | tar xvf-
cd mysql-3.22.30
./configure -prefix= /export/home/guoj/mysql
make
make install
scripts/mysql_install_db
cd../mysql/bin
bin/safe_mysqld & 安装php+apache
gzip -dc apache_1.3.11.tar.gz | tar xvf-
gzip -dc php-3.0.11.tar.gz | tar xvf-
cd apache_1.3.11
./configure -prefix= /export/home/guoj/www
cd ../php-3.0.11
./configure -with-apache= /export/home/guoj/apache_1.3.11
-with-mysql= /export/home/guoj/mysql -enable-track-vars
make
make install
cd ../apache_1.3.11
./configure --prefix= /export/home/guoj/www
--activate-module=src/modules/php3/libphp3.aP
make
make install
cd ../php-3.0.11
cd ../php3.ini-dist php3.ini
vi php3.ini修改php3.ini
doc_root=/export/home/guoj/www/htdocs/
extension_dir=/export/home/guoj/php-3.0.11/
extension=php3_mysql.dllcp php3.ini/usr/local/lib/php3.inivi ../www/conf/httpd.conf
加上以下几句:
AddType application/x-httpd-php3 .php3
<Directory "/export/home/guoj/php-3.0.11/">
Options FollowSymLinks
AllowOverride None
</Directory>../www/bin/apachectl start(出处:CSDN.NET)
相关推荐
一个逗逗 2020-09-22
86530396 2020-06-12
patiencezzz 2020-05-16
死鱼喜欢猫 2020-05-12
书虫媛 2020-05-03
ffantastic 2020-03-17
JasonYeung 2020-03-08
SIMONDOMAIN 2020-02-25
服务器端攻城师 2020-02-24
SIMONDOMAIN 2020-02-03
zycglboy 2020-01-13
Jieen 2020-01-08
treasurelifelhf 2013-07-24
jadeball 2019-12-29
暗夜之城 2019-12-27
Hwaphon 2019-11-25
liuxingyuling 2019-11-18
walkerlee 2010-03-03