Install apache + php + mysql + JDK + RESIN in Redhat Linux 7.3

zhaozj2021-02-17  48

Author: Gong Tianyi installation environment C466 128M memory installed RH Linux7.3 kernel when the attention of selected Chinese.

Apache download address: http://httpd.cgi download httpd-2.0.48.tar.gz php download address: http://www.php.net/downloads.php Download PHP 4.3.4 ( TAR.GZ) mysql download address: http://www.mysql.com/downloads/mysql-4.0.html Download Linux (x86, libc6) Standard 4.0.16 JDK Download Uix Address: http://java.sun.com/ J2SE / 1.4.2 / Download.html Download Linux Self-extracting file SDK file resin download address: http://www.caucho.com/download/index.xtp Download resin-3.0.4.tar.gz Now Upload the above file to / usr / local / src /// Install MySQL CD / USR / local / srctar zxvf mysql-standard-4.0.16-pc-linux-i686.tar.gz MV MySQL-Standard-4.0. 16-pc-linux-i686 / usr / local / mysql cd / usr / local / mysql groupadd mysql useradd -g mysql mysql s cripts / mysql_install_db chown -R root chown -R mysql data chgrp -R mysql bin / mysqld_safe.. - -user = mysql & // mysql should be able to start / / install Apache CD / USR / local / src tar zxvf httpd-2.0.48.tar.gz cd httpd-2.0.48 ./configure --with-apache = / usr / local / apache --enable-so make make install // Apache installation complete // Installation PHP CD / USR / Local / SRC TAR ZXVF PHP-4.3.4.Tar.gz CD PHP-4.3.4 ./configure - WITH-APXS2 = / usr / local / apache / bin / apxs --with-mysql = / usr / local / mysql make make install cp php.ini-dist /usr/local/lib/php.ini // PHP installation completion CD / USR / local / apache / Conf modify the httpd.conf file, join the loadModule php4_module modules / libphp4.so addtype application / x-httpd-php .php Save CD / USR / local / apache / bin ./apachectl start launch Apache, you can test it through your browser, You can do a phpinfo () PHP file, put it in / usr / local / apache / htdocs / under, check whether PHP is correct to stop apache ./apachectl stop Continue to install / / installation JDK CD / USR / local / src chmod X J2SDK-1_4_2_02-linux-i586.bin ./j2sdk-1_4_2_02-linux-i586.bin After reading License, select "Y", file will self-extract MV J2SDK-1_4_2_02-linux-i586 / usr / local / jdk vi / etc / profile is finally added java_home = / usr / local / jdk classpath =

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

New Post(0)