Specific configuration of LAMPJT's most practical web Development System

Source: Internet
Author: User
Export shellcd/usr/mysqlshellln-s/PATH-t

Linux installation clarification (not described here)
Mysql installation clarification
This document uses mysql4.0.14
Shell> groupadd mysql
Shell> useradd-g mysql
Shell> tar xvf XXXXmysql.tar.gz
Shell> cd/usr/mysql
Shell> ln-s/PATH-to-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 clarification
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
Modify Listen 80 to Listen: 80.
Change ServerName to ServerName: 80
Add index. jsp to 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, visit Port 80 of the local machine, and check whether the port is normal.
Shell>./apachectl stop
Php Installation Instructions
Php4.4.0 is used for this installation.
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
AddType application/x-httpd-php. php
AddType application/x-httpd-php-source. phps
Shell & gt; cp-rf/PAHT-to-php4.4.0/php. ini. dist/usr/php/lib/php. ini
Shell> vi php. ini
Corrected register_globals = On
Restart apache server
Write a php test document under/usr/apache/htdocs
If the installation accuracy can be clarified properly
Phpmyadmin database tool installation
PhpMyAdmin2.6.4 is used for this installation.
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 user name and password
$ Cfg ['servers'] [$ I] ['port'] = '80'; (port)
$ Cfg ['servers'] [$ I] ['user'] = 'root'; (user name)
$ Cfg ['servers'] [$ I] ['password'] = ''; (password)
Control user access permissions
Shell> vi/usr/apache/conf/httpd. conf
Correction
AllowOverride All
Shell> cd/usr/apache/bin
Shell> htpasswd-c/usr/apache/htdocs/phpAdmin/. htpasswd luodexing (clarify that luodexing is the username used to log on to phpmyadmin)
Shell> cd/usr/apache/htdocs/phpAdmin
Shell> vi. htaccess
Add
AuthName 'user login'
AuthType Basic
AuthUserFile/usr/apache/htdocs/phpAdmin/. htpasswd

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.