Linux installation instructions (not explained here)
mysql installation instructions
This description uses mysql4.0.14
shell>groupadd mysql
shell>useradd -g mysql mysql
shell>tar xvf XXXXmysql.tar.gz
shell>cd /usr/mysql
shell>ln -s /PATH-to-mysql mysql
shell>cd mysql
shell>scripts/mysql_install_db --user=mysql
shell>chown -R root .
shell>chown -R mysql data
shell>chgrp -R mysql .
shell>bin/mysqld_safe --user=mysql &
apache installation instructions
This description uses http2.0.54
shell>cd /usr/
shell>tar xvfz httpd-2.0.54.tar.gz
shell>cd httpd-2.0.54
shell>./configure --prefix=/usr/apache --enable-module=so
shell>make
shell>make install
shell>/usr/apache/conf
shell>vi ./httpd.conf
Change Listen 80 to Listen :80
Change ServerName to ServerName:80
Add index.jsp in DirectoryIndex
shell>cd /usr/apache/bin/
shell>./apachectl configtest
If Syntax ok is displayed, the installation is successful.
shell>./apachectl start
Start the apache service, access port 80 of the local machine, and check whether the port is normal
shell>./apachectl stop
php installation instructions
This installation uses version php4.4.0
shell>tar zxvf php4.4.0.tar.gz
shell>cd php4.4.0
shell>./configure --prefix=/usr/php --with-apxs2=/usr/apache/bin/apxs --with-xml --with-mysql=/usr/mysql
shell>make
shell>make install
shell>vi /usr/apache/conf/httpd.conf
Add to
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
shell>cp -rf /PAHT-to-php4.4.0/php.ini.dist /usr/php/lib/php.ini
shell>vi php.ini
Modify register_globals = On
restart apache server
Write a php test document under /usr/apache/htdocs <?php phpinfo(); ?>
If it works normally, it means the installation is correct.
Installation of phpmyadmin database tool
This installation uses version phpMyAdmin2.6.4
shell>cd /usr/apache/htdocs
shell>tar zxvf phpMyAdmin2.6.4.tar.gz
shell>mv phpMyAdmin2.6.4 phpAdmin
shell>vi config.inc.php
Change username and password
$cfg['Servers'][$i]['port'] ='80';(port)
$cfg['Servers'][$i]['user'] = 'root';(username)
$cfg['Servers'][$i]['password'] = ''; (password)
Control user access permissions
shell>vi /usr/apache/conf/httpd.conf
Revise
AllowOverride All
shell>cd /usr/apache/bin
shell>htpasswd -c /usr/apache/htdocs/phpAdmin/.htpasswd luodexing (Note: luodexing is the user name when logging in to phpmyadmin)
shell>cd /usr/apache/htdocs/phpAdmin
shell>vi.htaccess
Add to
AuthName "user login"
AuthType Basic
AuthUserFile /usr/apache/htdocs/phpAdmin/.htpasswd
require user luodexing
Restart apache
java installation
This installation uses jdk1.5.0 version
shell>cd /usr
shell>tar zxvf jdk1.5.0.tar.gz
shell>vi /etc/profile
Add to
JAVA_HOME=/usr/jdk1.5.0
CLASSPATH=/usr/jdk1.5.0/dt.jar:/usr/jdk1.5.0/tools.jar
export JAVA_HOME CLASSPATH
test
shell>javac
If command not found does not appear, the Java installation is ok.
Tomcat installation
This installation uses version tomcat5.5.9
shell>cd /usr
shell>tar zxvf tomcat5.5.9.tar.gz
shell>ln -s /usr/tomcat5.5.9 tomcat5
shell>vi /usr/tomcat5/bin/catalina.sh
Add to
JAVA_HOME=/usr/jdk1.5.0
shell>/usr/tomcat5/bin/start.sh starts the service
jk installation
This installation uses version 1.2.14src
shell>tar xvf XXXXXX1.2.14.src.tar.gz
shell>cd XXXXX1.2.14
shell>chmod 755 buildconf.sh
shell>./buildconf.sh
shell>./configure --with-apxs=/usr/apache/bin/apxs
shell>make
shell>make install
shell>vi /usr/apache/conf/httpd.conf
Add after document
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkMount /*.jsp worker1
Write workers.properties document (under conf)
ps=/
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
At this point, the whole process is completed, and a LAMPJT system comes out.
Note: The operating system I use is linux fed core 4, so if you don’t want to modify the JAVA_OPTS variable in tomcat’s startup script catalina.sh, please use jdk1.5