Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure apache1.3.37+mysql5.0.22+php4.4.4 under rh9

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces how to configure apache1.3.37+mysql5.0.22+php4.4.4 under rh9. The content is very detailed. Interested friends can refer to it for reference. I hope it can help you.

apache1.3.37+mysql5.0.22+php4.4.4 configuration under rh9 [@more@] mysql configuration has been introduced earlier

This configuration is apache 1.3.37, originally used apache 2.2.3 later found that 1.3.37 is better

After getting the original code of apache 1.3.37

tar xzvf apache-1.3.37

cd apache-1.3.37

./ configure --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite --enable-shared=max --htdocsdir=/var/www && make && make install

#Here we tell the setup script through the enable-module parameter that we need to start the so and rewrite modules. The so module is used to provide DSO support for the apache core module, while the rewrite module is intended to implement the address rewriting module. Since the rewrite module requires DBM support, if it is not compiled into apache during the initial installation, it is necessary to recompile the entire apache when it is needed later. For this reason, unless you can be sure that you won't need the rewrite module in the future, it is recommended that you compile the rewrite module the first time.

enable-shared=max When compiling apache, compile all apache standard modules except so into DSO modules. Instead of compiling into apache core.

Then modify the/usr/local/apache/conf/httpd.conf file to remove the comment before Servername and add localhost:80 after it

The requested URL/usr/local/apache/bin/apachectl was not found on this server.

2. Install PHP-4.4.4

tar xzvf php-4.4.4

cd php-4.4.4

./ configure --prefix=/usr/local/php

--with-mysql=mysql5 #Later I reinstalled the mysql directory under/mysql5

--enable-force-cgi-redirect

--with-freetype-dir=/usr

--with-png-dir=/usr

--with-gd --enable-gd-native-ttf

--with-ttf

--with-gdbm

--with-gettext

--with-iconv

--with-jpeg-dir=/usr

--with-png

--with-zlib

--with-xml #The xml library of the system must match the php version, otherwise it will not compile successfully

--enable-calendar

--with-apxs=/usr/local/apache/bin/apxs

make && make install

vi /usr/local/apache/conf/httpd.conf

find

;

Add to this range

AddType application/x-httpd-php .php #Remember.php has spaces oh

AddType application/x-httpd-php-source .phps

CPOPY PHP Configuration Files

cp ../ php4.4.4/php.ini.dist /usr/local/php/lib/php.ini

Modify php.ini file

register_globals = On

OK! restart Apache

Write another phpinfo test page

Laugh when you're done ^-^

This is even the first time in rh9 workstation configuration success oh on how to rh9 apache1.3.37+mysql5.0.22+php4.4.4 configuration shared here, I hope the above content can have some help for everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report