LAMPJT the most applicable PHP development system detailed configuration

Source: Internet
Author: User
Tags ini modify mysql phpmyadmin linux
Linux Fed core 4 installation instructions

Generally as long as the CD-ROM installation sequence to operate, such as personalized configuration installation, you can refer to the other relevant documents

MySQL Installation instructions

This note adopts 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 note adopts 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  /apache/conf  shell>vi./httpd.conf  Changes  Listen 80 to listen:80 to servername Add index.jsp shell>cd/usr/apache/bin/to DirectoryIndex  shell>./apachectl configtest  If the display syntax OK indicates that the installation is successful  Shell>./apachectl start  starts the Apache service, accesses the native 80 port and looks for the port to be normal  shell>./apachectl Stop
       
        

Installation Instructions for PHP

This installation takes 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  vi/usr/apache/conf/httpd.conf  Add  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  Modifies register_globals =  on restart Apache server  writes a PHP test document under/usr/apache/htdocs <?php phpinfo ()?>  If the proper instructions are properly installed
       
        

Installation of phpMyAdmin Database Tools

This installation takes 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  Modify username and password   $cfg [' Servers '] [$i] [' port '] = ';(' port)  $cfg [' Servers ' [$i] [' user '] = ' root ';(user name)  $cfg [' Servers '] [$i] [' password '] = '; (password)  Control permissions for user access    shell>vi/usr/apache/conf/httpd.conf  modify  allowoverride all  shell>cd/usr/ Apache/bin  shell>htpasswd-c/usr/apache/htdocs/phpadmin/.htpasswd luodexing (Note: Luodexing User name for login phpmyadmin)  shell>cd/usr/apache/htdocs/phpadmin  shell>vi. htaccess  Add  authname "User Login"  AuthType Basic  authuserfile/usr/apache/htdocs/phpadmin/.htpasswd  require user luodexing  back up Apache
       
        


Installation of Java

This installation takes the jdk1.5.0 version

       
        
         
        SHELL>CD/USR  shell>tar zxvf jdk1.5.0.tar.gz  shell>vi/etc/profile  add  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 you do not show command not found the installation of the Java installation oktomcat is installed  with the version tomcat5.5.9  shell>cd/usr  Shell>tar zxvf tomcat5.5.9.tar.gz  shell>ln-s/usr/tomcat5.5.9 tomcat5  tomcat5/bin/catalina.sh  Add  java_home=/usr/jdk1.5.0  shell>/usr/tomcat5/bin/start.sh start service
       
        

Installation of JK

This installation takes version 1.2.14src

       
        
         
        Shell>tar xvf xxxxxx1.2.14.src.tar.gz  shell>cd XXXXX1.2.14 shell>chmod 755  Shell >./buildconf.sh  shell>./configure--with-apxs=/usr/apache/bin/apxs  shell>make  shell> Make install  shell>vi/usr/apache/conf/httpd.conf  add LoadModule jk_module after the document  modules/mod_jk.so  jkworkersfile conf/workers.properties  Jklogfile logs/mod_jk.log  jkloglevel debug  jkmount/*.jsp worker1  writing 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 entire configuration process is complete, a set of LAMPJT system is out

Note: The Linux Fed core 4, so if you want to not modify the java_opts variable in Tomcat's startup script catalina.sh, please use jdk1.5.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.