search
Homephp教程php手册以动态模块的方式安装apache2.0.44+PHP4.3.0

经过一天的努力,终于装完了apache2.0.44+PHP4.3.0呵呵, 不禁佩服自己的愚蠢 :( 以前安装都是用php静态模块的方式,似乎在apache2以上的版本上行不通(猜测而已:)) 安装过程简述如下: mysql以前已经用rpm安装完成(rpm -ivh mysql-3.23.i386.rpm) 1.取得apache2.0.44和php-4.3.0的tarball. 放在/下 #tar zxvf apache2.0.44.tar.gz 解开目录为httpd-2.0.44 #tar zxvf php-4.3.0.tar.gz 2安装apache2.0.44 #cd /httpd-2.0.44 #./configure --prefix=/usr/local/apache #make #make install apache2.0.44安装完成,大约需要半个小时 3安装php4.3.0 #cd /php-4.3.1 #./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-versioning --disable-debug --enable-track-vars #make #make install --with-mysql 表示支持mysql 其中--with-apxs2=/usr/local/apache/bin/apxs 一定不能少,这个参数把php以动态模块的方式安装到apache下 #cp /php-4.3.0/php.ini-dist /usr/local/lib/php.ini #vi /usr/local/lib/php.ini 修改 register_globals=On 至此,php安装完成,大约半小时, 4.配置httpd.conf #cd /usr/local/apache/conf #vi httpd.conf 加入两行: LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php 修改Listen 192.168.0.1:80 5.启动: /usr/local/apache/bin/apachectl start 5。测试: 在/usr/local/apache/htdocs下 编辑index.php 在ie 中输入http://192.168.0.1/index.php 可以看见熟悉的php的表以及信息。 ----------------- 〈完〉

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools