系统安装手记-Apache-PHP-Mysql

博客记录了MySQL、libiconv、Apache和PHP的安装配置过程。包含各软件的编译、安装命令,以及对Apache配置文件httpd.conf的修改,最后重启Apache服务并创建软链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[mysql]
$cd mysql-3.23.36
$./configure --prefix=/usr/local/mysql
$make
$make install
$cd ..
$mysql-3.23.36/scripts/mysql_install_db --force

[libiconv]
$./configure --prefix=/usr/local --enable-extra-encodings
$make
$make install

[apache]
$cd apache_1.3.27
$./configure --prefix=/usr/local/APACHE
$cd ..

$cd php-4.3.4
$./configure --with-oci8=/app/oracle/product/9.2.0 --with-apache=../apache_1.3.27 --with-mysql=/usr/local/mysql --enable-track-vars --with-zlib-dir=/usr/lib --with-iconv=/usr/local  --enable-mbstring=all
$make
$make install
$cp -f php.ini-dist /usr/local/lib/php.ini
$cd ..

$cd apache_1.3.27
$./configure --prefix=/usr/local/APACHE --activate-module=src/modules/php4/libphp4.a
$make
$make install
$cd ..

$vi /usr/local/APACHE/conf/httpd.conf:
/*---------------------------------httpd.conf modified begin---------------------------------------------------*/
AddType application/x-httpd-php .php .inc .cls .asp .wbx
AddType application/x-httpd-php-source .phps

DocumentRoot "/app/htdocs"

DirectoryIndex index.html index.htm default.htm default.php enter.php

<Directory "/app/htdocs">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

UseCanonicalName On
User test
Group test
/*---------------------------------httpd.conf modified end--------------------------------------------------*/
$/usr/local/APACHE/bin/apachectl restart
 
 ln -s /app /www

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值