Home  >  Article  >  Backend Development  >  Detailed configuration of LAMPJT’s most suitable web development system_PHP tutorial

Detailed configuration of LAMPJT’s most suitable web development system_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:32:46954browse

linux安装说明(于此不作说明)
MySQL(和PHP搭配之最佳组合)安装说明
  本说明采用MySQL(和PHP搭配之最佳组合)4.0.14
  shell>groupadd MySQL(和PHP搭配之最佳组合)
  shell>useradd  -g MySQL(和PHP搭配之最佳组合) MySQL(和PHP搭配之最佳组合)
  shell>tar xvf XXXXMySQL(和PHP搭配之最佳组合).tar.gz
  shell>cd /usr/MySQL(和PHP搭配之最佳组合)
  shell>ln -s /PATH-to-MySQL(和PHP搭配之最佳组合) MySQL(和PHP搭配之最佳组合)
  shell>cd MySQL(和PHP搭配之最佳组合)
  shell>scripts/MySQL(和PHP搭配之最佳组合)_install_db  --user=MySQL(和PHP搭配之最佳组合)
  shell>chown -R root .
  shell>chown -R MySQL(和PHP搭配之最佳组合) data
  shell>chgrp -R MySQL(和PHP搭配之最佳组合) .
  shell>bin/MySQL(和PHP搭配之最佳组合)d_safe --user=MySQL(和PHP搭配之最佳组合) &
apache(Unix平台最流行的WEB服务器平台)安装说明
  本说明采用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(Unix平台最流行的WEB服务器平台) --enable-module=so
  shell>make
  shell>make install
  shell>/usr/apache(Unix平台最流行的WEB服务器平台)/conf
  shell>vi ./httpd.conf
  将Listen 80 修改为Listen :80
  将ServerName 修改为ServerName :80
  在DirectoryIndex中添加 index.jsp(SUN企业级应用的首选)
  shell>cd /usr/apache(Unix平台最流行的WEB服务器平台)/bin/
  shell>./apache(Unix平台最流行的WEB服务器平台)ctl configtest
  若显示Syntax ok则表明安装成功
  shell>./apache(Unix平台最流行的WEB服务器平台)ctl start
  启动apache(Unix平台最流行的WEB服务器平台)服务,访问本机80端口,查看端口是否正常
  shell>./apache(Unix平台最流行的WEB服务器平台)ctl stop
php(做为现在的主流开发语言)的安装说明
  本安装采用版本php(做为现在的主流开发语言)4.4.0
  shell>tar zxvf php(做为现在的主流开发语言)4.4.0.tar.gz
  shell>cd php(做为现在的主流开发语言)4.4.0
  shell>./configure --prefix=/usr/php(做为现在的主流开发语言) --with-apxs2=/usr/apache(Unix平台最流行的WEB服务器平台)/bin/apxs --with-xml(标准化越来越近了) --with-MySQL(和PHP搭配之最佳组合)=/usr/MySQL(和PHP搭配之最佳组合)
  shell>make
  shell>make install
  shell>vi /usr/apache(Unix平台最流行的WEB服务器平台)/conf/httpd.conf
  添加
  AddType application/x-httpd-php(做为现在的主流开发语言) .php(做为现在的主流开发语言)
  AddType application/x-httpd-php(做为现在的主流开发语言)-source .php(做为现在的主流开发语言)s
  shell>cp -rf /PAHT-to-php(做为现在的主流开发语言)4.4.0/php(做为现在的主流开发语言).ini.dist /usr/php(做为现在的主流开发语言)/lib/php(做为现在的主流开发语言).ini
  shell>vi php(做为现在的主流开发语言).ini
  修改register_globals = On
  restart apache(Unix平台最流行的WEB服务器平台) server
Write a php(as the current mainstream development language)test document(As the current mainstream development language) php(As the current mainstream development language)info(); ?> If it can be normal, it means the installation is correctphp
(as the current mainstream development language)
Installation of myadmin database tool This installation uses version php(as the current mainstream development language)
MyAdmin2.6.4 shell> cd /usr/apache(The most popular WEB server platform on Unix platform)
/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 user access permissions
shell>vi /usr/apache
(the most popular WEB server platform on Unix platform)
/conf/httpd.conf Modification AllowOverride All
shell>cd /usr/apache
(The most popular WEB server platform on Unix platform)
/bin shell>htpasswd -c /usr/apache(The most popular WEB server platform on Unix platform)
/htdocs/php (as the current mainstream development language)Admin/.htpasswd luodexing (Note: luodexing is the user name when logging in to php(as the current mainstream development language) myadmin) shell>cd /usr/apache(The most popular WEB server platform on Unix platform)
/htdocs/php(as the current mainstream development language)Admin shell> vi .htaccess(favorite for small websites)
Add AuthName "user login"
AuthType Basic
AuthUserFile /usr/apache
(the most popular on Unix platform WEB server platform)
/htdocs/php(as the current mainstream development language)Admin/.htpasswd require user luodexing Restart apache
(Unix platform is the most popular WEB server platform)
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
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

truehttp: //www.bkjia.com/PHPjc/508695.htmlTechArticleLinux installation instructions (not explained here) MySQL (the best combination with PHP) Installation instructions This instruction adopts MySQL (The best combination with PHP) 4.0.14 shellgroupadd MySQL (The best combination with PHP...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn