PHP forum server architecture_PHP tutorial

WBOY
Release: 2016-07-13 17:33:13
Original
810 people have browsed it

Linux下php(做为现在的主流开发语言)服务器的安装与配置
分类:php(做为现在的主流开发语言)教程

1、#cp httpd-2.0.47.tar.gz 到/usr/local/
2、#tar zxvf php(做为现在的主流开发语言)-4.3.3.tar.gz
3、#cd php(做为现在的主流开发语言)-4.3.3
4、#./configure --with-MySQL(和PHP搭配之最佳组合) --with-apxs2=/usr/local/apache(Unix平台最流行的WEB服务器平台)/bin/apxs
   #./configure -with-apache(Unix平台最流行的WEB服务器平台)=/path/to/apache(Unix平台最流行的WEB服务器平台)/dir -with-MySQL(和PHP搭配之最佳组合)=/usr/local/MySQL(和PHP搭配之最佳组合)
5、#make
6、#make install  (一边等待一边保佑吧)
7 、#cp php(做为现在的主流开发语言).ini-dist /usr/local/lib/php(做为现在的主流开发语言).ini
8 、#vi /usr/local/apache(Unix平台最流行的WEB服务器平台)2/conf/httpd.conf
9 、在AddType application/x-tar.tgz下面,添加以下内容:
AddType application/x-httpd-php(做为现在的主流开发语言) .php(做为现在的主流开发语言)
LoadModule php(做为现在的主流开发语言)4_module /var/www/modules/libphp(做为现在的主流开发语言)4.so (如果没有的话加上)
10 、#vi /usr/local/apache(Unix平台最流行的WEB服务器平台)2/htdocs/test.php(做为现在的主流开发语言)
echo php(做为现在的主流开发语言)info();
?>
11 、浏览http://ip/test.php(做为现在的主流开发语言)。出现php(做为现在的主流开发语言)信息。恭喜这一步成功了。

php(做为现在的主流开发语言)和apache(Unix平台最流行的WEB服务器平台)安装后的基本配置
1.apache(Unix平台最流行的WEB服务器平台)的配置
apache(Unix平台最流行的WEB服务器平台)的配置文件是/usr/local/apache(Unix平台最流行的WEB服务器平台)2/conf/httpd.conf,编辑httpd.conf 文件,在文件结尾加上以下两行:
LoadModule php(做为现在的主流开发语言)4_module modules/libphp(做为现在的主流开发语言)4.so
AddType application/x-httpd-php(做为现在的主流开发语言) .php(做为现在的主流开发语言) .php(做为现在的主流开发语言)3
同时修改DirectoryIndex为:

DirectoryIndex index.htm
DirectoryIndex index.html
DirectoryIndex index.php(做为现在的主流开发语言)
DirectoryIndex index.php(做为现在的主流开发语言)3
DirectoryIndex index.php(做为现在的主流开发语言)4

apache(the most popular WEB server platform on the Unix platform) has rich configuration content. For other apache(the most popular WEB server platform on the Unix platform) related configurations, please refer to apache(The most popular WEB server platform on Unix platform) related documents. The configuration file of
2.php(as the current mainstream development language) is /usr/ local/lib/php
(as the current mainstream development language).ini, edit the php(as the current mainstream development language).ini file to configure php( As the current mainstream development language) option. Special note is that after the installation is complete, the register_globals variable is set to Off by default and needs to be changed to On. Otherwise, there will be a phenomenon where php(as the current mainstream development language) cannot read the post data. zlib.output_compression=On register_globals=On For other PHP
(as the current mainstream development language)
options, please refer to the relevant documents.
3. TestYou can write a simple php(as the current mainstream development language)
file to test the installation. The file contains the following line:
Save it as /usr/ local/apache(The most popular WEB server platform on Unix platform)2/htdocs/info.php
(as the current mainstream development language), start apache(Unix platform The most popular WEB server platform), and then browse in the browser.

http://www.bkjia.com/PHPjc/508619.html

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/508619.htmlTechArticlephp under Linux (as the current mainstream development language) Server installation and configuration classification: php (as the current mainstream development language) mainstream development languages) Tutorial 1. #cp httpd-2.0.47.tar.gz to /usr/local/ 2. #ta...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template