mysql4.0.20 + apache2.0.50 + php5.0.0 for rh9 installation notes

zhaozj2021-02-16  64

mysql4.0.20 apache2.0.50 php5.0.0 for rh9 installation notes

1, install MySQL official site: http://www.mysql.com # tar zxvf mysql-4.0.20.tar.gz -c / setup # cd /setup/mysql-4.0.20 # GroupAdd MySQL # UserAdd MySQL -G mysql -m -s / bin / false # ./configure --prefix = / web / mysql / specified installation directory --without-debug / removal Debug mode --with-extra-charsets = GB2312 / Add GB2312 Chinese Character Support - -ENABLE-Assembler / Using Some Character Functions Compilation Version --without-ISAM / Remove ISAM Table Type Support Now ISAM Table is a table with a platform --without-innodeb / Removal INNODB table Support InnoDB is one A table that supports transaction processing, suitable for enterprise applications --with-pthread / forced use PTHREAD library (POSIX thread library) --enable-thread-safe-client / compiled client -with-client-ldflags = -all-static / --with-mysqld-ldflags = -all-static / with pure static manner compiles server and client --with-raid / activation RAID support # make # Make Install # Scripts / MySQL_INSTALL_DB / Generate MySQL User Database And Table File # cp support-files / my-medium.cnf /etc/my.cnf / copy profile, there is Large, Medium, SMALL three environments, depending on the machine performance selection, if the load is large, can be modified Some variables of memory usage value # cp support-files / mysql.server /etc/init.d/mysqld / copy started mysqld file # chmod 700 /etc/init.d/mysqld # CD / Web # chmod 75 0 mysql -r # chgrp mysql mysql -r # chown mysql mysql / var -r # cd / web / mysql / libexec # cp mysqld mysqld.old # Strip mysqld # chkconfig --add mysqld # chkconfig --level 345 mysqld on # Service mysqld start # netstat -atln Take a look at the port of 3306 open, if mysqld can't start, see the error log under / web / mysql / var, generally direct directory permissions no problem # ln -s / web / mysql / bin / mysql / sbin / mysql # ln -s / web / mysql / bin / mysqladmin / sbin / mysqladmin # mysqladmin -uroot password "youpassword" # Set the password of the root account # mysql -uroot -p # Enter you setting Password mysql> use mysql; mysql> delete from user where password = ""; "Delete an empty password account for this anonymous connection

A little experience: If Mysql does not start normally, most of them are caused by mysql installation directory. Try a few times, you will succeed, if you are unsuccessful, you don't have to swear your own palace, the RPM package is installed :) Anyway, the first time compiled Source for a long time or not successfully, go directly to the mysql official website to download the following 2 rpm The package is installed with mysql-server-4.0.20-0.i386.0.20-0.0.20-0.rpm # rpm -ivh mysql-server-4.0.20-0.i386.rpm # rpm -ivh MySQL-Client-4.0.20-0.i386.rpm Run the mysql client and open the ROOT user's remote access. To debug # mysql # use mysql # Update user set host = `%` Where user = `root` and host <>` localhost`; # EXIT or this simple, personal feelings don't have to die, Source Compile

2, install Apache official website: http://www.apache.org # tar zxvf httpd-2.0.50.tar.gz # cd httpd-2.0.50 # ./configure --prefix = / web / apache --enable -Module = SO # make # make install installation! This should generally don't have any errors. Before installation, pay attention to check the old version of your own machine, and if you have unloaded the old version first. There is also the default maximum number of Apache under Linux. No matter how httpd.conf cannot exceed this limit, no matter how httpd.conf is modified. If you want to increase this limit, edit /Home/tmp/apache/src/include/httpd.h before compiling Apache, change the #define hard_server_limit 256 and then compile Apache.

3. Install the official website of the PHP: http: www.php.net PHP5 official version last month is finally a thousand calls, experience one # TAR ZXVF PHP-5.0.0.tar.gz # CD PHP-5.0 .0 # ./configure --prefix = / web / php --with-apxs2 = / Web / apache / bin / apxs --with-config-file-path = / usr / local / lib --enable-track-TRACK- Vars --with-xml --with-mysql

Under normal circumstances, if there is no accidental compilation failure :) Error message: Checking WHETAL TO ENABLE LIBXING LIBXML2 Install Dir ... no configure: error: libxml2 version 2.5.10 or greater required. Php5 requires libxml2 Version To view libxml2 information # rpm -qa | grep libxml2 libXML2-2.5.4-1 libXML2-Devel-2.5.4-1 libXML2-Python-2.5.4-1 Go to find the latest libXML2 RPM Package http://www.rpmfind.net Uninstall the old version, install a new version, the latest seems to be 2.6.11-1 and then in ./configure should have no problem with it # Make # make install # cp php.ini-dist / usr /LOCAL/LIB/PHP.INI4, configure httpd.conf

Edit Apache's httpd.conf See if there is 2 sentences; loadModule php5_module modules / libphp5.so addtype application / x-httpd-php .php .phtml .php3 .inc is not added. OK, basically talked, build a PHP document containing the following: Viewing the PHP information should be seen in the browser.

转载请注明原文地址:https://www.9cbs.com/read-18918.html

New Post(0)