Why does the TM server need to install php~

"Imagination is more important than knowledge. For knowledge is limited, but imagination is infinite. It contains everything, drives progress, and is the source of human evolution." -- Albert Einstein

Why does the server need to install php~

Why Servers Install PHP (2023)

Guide: Today I will share with you the relevant content about why PHP is installed on the server. If it happens to solve the problems you are facing now, don’t forget to pay attention to this site, let’s start now! A list of the contents of this article: 1. The first step in learning PHP, is it necessary to install the php server w 2. What does the server in php mean? What is the function? What is it for?...,

 

The first step in PHP learning, is it necessary to install the php server w

1. Use the integrated environment to install the PHP environment, you must remember this, don't install it separately, especially for self-taught friends. Otherwise, you will find it very complicated, and you will not have the confidence to learn it. It should also be noted that any master is not achieved overnight, it is step by step, and the final precipitation is the result of different stages of experience.

2. First of all, you must configure the debugging environment. Without the environment for debugging PHP, it is meaningless how you learn. Then buy a book or read an e-book online to study systematically, while trying to understand simple examples, and then try to write simple programs by yourself and learn step by step.

3. There must be an environment for building a website, just like a house for decoration. How do you decorate without a house? A house is a house, and renovations are renovations. The house is the website environment, and the decoration is your own website. Just go online and find a visual panel to deploy the site building environment. Then you can easily deploy the php local environment inside.

4. PHP is a server-side language, that is, it must have server support. Now the most popular is the LAMP environment, that is, Linux, Apache, Mysql, Php.

5. Of course - PHP alone is meaningless unless you plan to run PHP from the command line.

 

What does the server in php mean? What is the function? What is it for?

1. Meaning: generally refers to the server/computer installed with the three software of apache&php&mysql. Role: One of the most basic frameworks for PHP website publishing. Uses: Allows PHP programs/websites to run. PHP is a server-side scripting language used to create dynamic web pages. You create pages with PHP and HTML.

2. The PHP server is a server that can run PHP programs. PHP is a language. The execution of this language requires PHP software, such as PHP.EXE. The downloaded PHP package contains program files, each with its own function. For example, PHP.EXE can run PHP program files under the console. If you don't use a UNIX server, no compilation is required.

3. PHP is a server-side scripting language used to create dynamic web pages.

4. PHP is a server-side, cross-platform, html-embedded scripting language. Fast execution speed: PHP is a powerful CGI scripting language whose syntax is a mixture of C, Java, Perl, and PHP-style new syntax. It executes web pages faster than CGI, Perl, and ASP. This is its first outstanding feature.

5. PHP is a dynamic language for web systems, most of which are used for websites; Apache is a web server that can parse php.

6. Introduction to PHP: PHP (Hypertext Preprocessor) is a general-purpose open source scripting language. PHP syntax absorbs the characteristics of C language, Java and Perl, which is conducive to learning and widely used, and is mainly applicable to the field of Web development. PHP's unique syntax mixes C, Java, Perl, and PHP's own syntax.

How to install PHP

Through cat/etc/redhat-release, the Centos2 version is used on this machine. Since it is an upgrade of php, in order to prevent conflicts, we use rpm_qa|grepphp to see if there is PHP in the system, and then we remove him yumremove_yphp*, so as not to affect conflicts.

The configuration of php itself is to be created by yourself. First, find the php.ini-development file in the decompressed php directory. This is the configuration template provided by php. Copy and modify the file name to php.ini.

Static installation will first install the programs that need to be installed before installing php, such as ftp, mhash, mcrypt... After the installation is complete, decompress the php installation package, execute ./configure --with-ftp --with-mhash --wth-mcrypt, etc.

There are two ways to check PHP Development Tools (the English abbreviation of PDT): programming language (gramming Languages) or web development-related software, and then click the [Next] button, as shown in the figure below.

For the method/step, please download the relevant tools first. Download the corresponding version according to your own system, all I downloaded are 64-bit. First install PHPManagerForIIS. After the installation is successful, there will be more PHPManager icons on the IIS interface, waiting for follow-up operations.

How to install PHP 17 in Windows7 environment? Most of the tutorials found on the Internet are for the installation of Zip archives. I intend to study why everyone does not use Installer here. It may be that the degree of freedom of the Installer is too high, so it is not easy to carry out subsequent manual configuration.

How to install PHP in the server space, I use wordpress blog program

You can’t install MYSQL. When you buy the space, the space provider should give you a MYSQL connection address, user name and password. You only need to upload Wordpress to your space, follow the installation prompts to install, and in the database setting step, fill in the access address, user name, and password, and it’s OK.

Unzip the WordPress compressed package to an empty folder and upload it to your space. Please use a text editor (notepad++) to manually open the wp-config-sample.php file and fill in the database information.

Just use iis directly, no need to download other servers. However, iis needs to be configured.

First use software such as phpstudy and pagoda to establish a local environment, then put the wp program in the root directory of the website, and the installation is complete. It is not difficult to build a website on the server. After a few tries, you will be familiar with it and know how to build it. Lao Wei has written some content about building a website for your reference.

First, download the WordPress program: Baidu WordPress, download the latest version of the program from the WordPress official website, and save it to your local computer. Secondly, put the WordPress program in the corresponding location: unzip the wordpress program, name the file wordpress, and place it in the htdocs file under the installed XAMPP (Phpnow) folder.

First of all, make sure that the website uses PHP language. WordPress only supports PHP. Then, those who know how to build a website can configure the server and put the decompressed WordPress website building program into the database, and then operate like a fool. In the end, if you don’t understand, you can use xampp to operate foolishly, but sometimes you will encounter the situation that the port is occupied.

What php environment does the server use now, and what is the function of installing the php environment on the server?

ad1b4fab09e8dc61a8d5531dbb4a6a5a.png

The relationship and role of php and apache is a matter of great concern to many friends who study php.

So why does the server need to install the php environment?

First, enter the URL in a browser on a client computer. For example, if our computer accesses the Internet, there will be a DNS server. Its function is to resolve the domain name into the corresponding IP address, such as IP address 192.168. This server is the base of the website.

Website programs and the like are all placed on this server, and a lot of software will be installed on this server. Such as MYSQL, WEB server (apache server), qq, etc. There is also a port number 80 in the address uploaded from the Internet. The function of the IP part of this address is to find this server, and the function of this port number is to find the specific application on this server. Because the default port of the web server is 80, this address is looking for the web server in this service area. Because we mainly talk about php here, we choose the apache server.

For example, if I enter the address in the client browser, he will find the server 192.168.1.100, and then find the apache server according to the port. Apache will return the code in index.html in a certain directory to the client's browser through the URL address, and then the browser will parse it into the webpage content we see according to the returned code. This is the case when we access the code of a web page. What if we are accessing a php file?

For example, if you input it in the client browser, it will also send this address to apache in 192.168.1.100. When apache sees that the file you sent is a Php file, if the server does not have php installed, it will also open this file and return all the codes inside to the client, but the client browser cannot parse the php file. So the front desk will display all the codes of this file, or there will be a situation of downloading this file. This situation is not what we want to see.

So we need to install a php service on the server side, so that apache sees that the file you sent is a php file, and it will pass the file to the php program first, and the php program will first interpret the file. Then he returns to apache, and apache returns to the client. In this way, the client can see the page effect after the PHP file is parsed.

 

 

Ma Xiaojing, I miss you~~~~~~~ 

Guess you like

Origin blog.csdn.net/s_sos0/article/details/131843313