Home Backend Development PHP Tutorial PHP forum server architecture_PHP tutorial

PHP forum server architecture_PHP tutorial

Jul 13, 2016 pm 05:33 PM
linux php Down and mainstream Classification Install develop server Architecture now of forum language Configuration

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP and Python: Different Paradigms Explained PHP and Python: Different Paradigms Explained Apr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

Why Use PHP? Advantages and Benefits Explained Why Use PHP? Advantages and Benefits Explained Apr 16, 2025 am 12:16 AM

The core benefits of PHP include ease of learning, strong web development support, rich libraries and frameworks, high performance and scalability, cross-platform compatibility, and cost-effectiveness. 1) Easy to learn and use, suitable for beginners; 2) Good integration with web servers and supports multiple databases; 3) Have powerful frameworks such as Laravel; 4) High performance can be achieved through optimization; 5) Support multiple operating systems; 6) Open source to reduce development costs.

Choosing Between PHP and Python: A Guide Choosing Between PHP and Python: A Guide Apr 18, 2025 am 12:24 AM

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP: An Introduction to the Server-Side Scripting Language PHP: An Introduction to the Server-Side Scripting Language Apr 16, 2025 am 12:18 AM

PHP is a server-side scripting language used for dynamic web development and server-side applications. 1.PHP is an interpreted language that does not require compilation and is suitable for rapid development. 2. PHP code is embedded in HTML, making it easy to develop web pages. 3. PHP processes server-side logic, generates HTML output, and supports user interaction and data processing. 4. PHP can interact with the database, process form submission, and execute server-side tasks.

PHP and Python: A Deep Dive into Their History PHP and Python: A Deep Dive into Their History Apr 18, 2025 am 12:25 AM

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHP vs. Python: Use Cases and Applications PHP vs. Python: Use Cases and Applications Apr 17, 2025 am 12:23 AM

PHP is suitable for web development and content management systems, and Python is suitable for data science, machine learning and automation scripts. 1.PHP performs well in building fast and scalable websites and applications and is commonly used in CMS such as WordPress. 2. Python has performed outstandingly in the fields of data science and machine learning, with rich libraries such as NumPy and TensorFlow.

Linux Architecture: Unveiling the 5 Basic Components Linux Architecture: Unveiling the 5 Basic Components Apr 20, 2025 am 12:04 AM

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

PHP and the Web: Exploring its Long-Term Impact PHP and the Web: Exploring its Long-Term Impact Apr 16, 2025 am 12:17 AM

PHP has shaped the network over the past few decades and will continue to play an important role in web development. 1) PHP originated in 1994 and has become the first choice for developers due to its ease of use and seamless integration with MySQL. 2) Its core functions include generating dynamic content and integrating with the database, allowing the website to be updated in real time and displayed in personalized manner. 3) The wide application and ecosystem of PHP have driven its long-term impact, but it also faces version updates and security challenges. 4) Performance improvements in recent years, such as the release of PHP7, enable it to compete with modern languages. 5) In the future, PHP needs to deal with new challenges such as containerization and microservices, but its flexibility and active community make it adaptable.

See all articles