LAMPJT most applicable Web development system detailed configuration _php tutorial

Source: Internet
Author: User
Tags myadmin
Linux installation instructions (not described here)
MySQL (and PHP collocation of the best combination) installation instructions
This note uses MySQL (and the best combination of PHP collocation) 4.0.14
Shell>groupadd MySQL (the best mix with PHP)
Shell>useradd-g MySQL (best combination with PHP) MySQL (the best combination of PHP collocation)
Shell>tar XVF Xxxxmysql (best combination with PHP). tar.gz
Shell>cd/usr/mysql (Best mix with PHP)
Shell>ln-s/path-to-mysql (best combination with PHP) MySQL (the best combination of PHP collocation)
SHELL>CD MySQL (the best mix with PHP)
Shell>scripts/mysql (best combination with PHP) _install_db--user=mysql (best combination with PHP)
Shell>chown-r Root.
Shell>chown-r MySQL (best combination with PHP) data
Shell>chgrp-r MySQL (and the best combination of PHP collocation).
Shell>bin/mysql (best combination with PHP) D_safe--user=mysql (best combination with PHP) &
Installation instructions for Apache (the most popular Web server platform on UNIX platforms)
This note 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 (the most popular Web server platform for UNIX platforms)--enable-module=so
Shell>make
Shell>make Install
Shell>/usr/apache (the most popular Web server platform for UNIX platforms)/conf
Shell>vi./httpd.conf
Modify Listen 80 to listen:80
Modify ServerName to Servername:80
Add index.jsp to DirectoryIndex (preferred for sun enterprise apps)
Shell>cd/usr/apache (the most popular Web server platform for UNIX platforms)/bin/
Shell>./apache (the most popular Web server platform for UNIX platforms) CTL configtest
If the display syntax OK indicates the installation is successful
Shell>./apache (the most popular Web server platform for UNIX platforms) CTL start
Launch Apache (Unix platform's most popular Web server platform) service, access the native 80 port to see if the port is healthy
Shell>./apache (the most popular Web server platform for UNIX platforms) CTL stop
Installation instructions for PHP (as the current mainstream development language)
This installation uses version PHP (as the current mainstream development language) 4.4.0
Shell>tar zxvf PHP (as the current mainstream development language) 4.4.0.tar.gz
SHELL>CD PHP (as the current mainstream development language) 4.4.0
Shell>./configure--prefix=/usr/php (as the current mainstream development language)--with-apxs2=/usr/apache (the most popular Web server platform for UNIX platforms)/bin/apxs-- With-xml (standardization is getting closer)--with-mysql (and PHP collocation of the best combination) =/usr/mysql (and PHP collocation of the best combination)
Shell>make
Shell>make Install
Shell>vi/usr/apache (the most popular Web server platform for UNIX platforms)/conf/httpd.conf
Add to
AddType application/x-httpd-php (as the current mainstream development language). PHP (as the current mainstream development language)
AddType application/x-httpd-php (as the current mainstream development language)-source. PHP (as the current mainstream development language) s
Shell>cp-rf/paht-to-php (as the current mainstream development language) 4.4.0/php (as the current mainstream development language). ini.dist/usr/php (as the current mainstream development language)/lib/php ( As the current mainstream development language). ini
Shell>vi PHP (as the current mainstream development language). ini
Modify register_globals = On
Restart Apache (the most popular Web server platform for UNIX platforms) server
Write a PHP (as current mainstream development language) test document on/usr/apache (the most popular Web server platform for UNIX platforms)/htdocs
If you can properly install the correct
PHP (as the current mainstream development language) MyAdmin Database Tools Installation
This installation uses version PHP (as the current mainstream development language) MyAdmin2.6.4
Shell>cd/usr/apache (the most popular Web server platform for UNIX platforms)/htdocs
Shell>tar zxvf PHP (as the current mainstream development language) myadmin2.6.4.tar.gz
SHELL>MV PHP (as the current mainstream development language) MyAdmin2.6.4 PHP (as the current mainstream development language) Admin
Shell>vi config.inc.php (as the current mainstream development language)
Modify user name and password
$cfg [servers][$i][port] = 80; (port)
$cfg [servers][$i][user] = root; (username)
$cfg [servers][$i][password] =; Password
Control permissions for user access
Shell>vi/usr/apache (the most popular Web server platform for UNIX platforms)/conf/httpd.conf
Modify
AllowOverride All
Shell>cd/usr/apache (the most popular Web server platform for UNIX platforms)/bin
Shell>htpasswd-c/usr/apache (the most popular Web server platform for UNIX platforms)/htdocs/php (as the current mainstream development language) ADMIN/.HTPASSWD luodexing (Note: Luodexing User name for login PHP (as the current mainstream development language) MyAdmin)
Shell>cd/usr/apache (the most popular Web server platform for UNIX platforms)/htdocs/php (as the current mainstream development language) Admin
Shell>vi. htaccess (favorite of Small website)
Add to
AuthName "User Login"
AuthType Basic
Authuserfile/usr/apache (the most popular Web server platform for UNIX platforms)/htdocs/php (as the current mainstream development language) ADMIN/.HTPASSWD
Require user luodexing
Re-starting Apache (the most popular Web server platform on UNIX platforms)
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 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

http://www.bkjia.com/PHPjc/508695.html www.bkjia.com true http://www.bkjia.com/PHPjc/508695.html techarticle Linux Installation instructions (not described here) MySQL (and the best combination of PHP) Installation instructions This note uses MySQL (and PHP collocation of the best combination) 4.0.14 shellgroupadd mysql (and PHP collocation of the most ...

  • 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.