Over 3 million internet website administrators around the world are using PHP, making it one of the most popular server-side scripting languages. It features fast running, stable and reliable, cross-platform, and open source software. With your application level, no more than 3 million internet website administrators are using PHP, making it one of the most popular server-side scripting languages. It features fast running, stable and reliable, cross-platform, and open source software. Different from your application, PHP can be very simple or complex. you can only use it to send HTML table elements, and integrate Java and XML in PHP application programs.
If you have a certain understanding of PHP or have read some preliminary teaching materials, these skills can expand your familiarity with PHP, so that you can grasp some common and advanced PHP functions.
1. install PHP as a DSO of Apache PHP is often used with Apache on Linux/Unix platforms. when installing PHP, there are three installation methods available: static mode, dynamic mode (DSO), and CGI binary mode.
Due to the ease of protection and upgrade, I strongly recommend using DSO to install PHP. For example, for the first installation, if the installed PHP only supports the database, and then you want to install the module supporting encryption, you only need to run "make clean" and add new configuration options, then run "make" and "make install". a new PHP module will be installed in an appropriate position in Apache, and then restart Apache without re-compiling Apache.
The following steps will install a brand new Apache and install PHP using DSO:
1. obtain the latest Apache source code from the Apache Software Foundation;
2. put the obtained source code in the/usr/local/or/opt/directory, or any directory you specified;
3rd. run gunzip' to uncompress the file and get the file suffixed with .tar;
4. run the following command to install the file in the apache _ [version] Directory:
Tar-xvf apache_{version}.tar
5. enter the/usr/local/apache _ [version] Directory (or install the compressed file directory in step 4 );
6. press the following command to prepare for compiling Apache. replace the [path] in your own path, for example,/usr/local/apache [version]. now the new value of mod_so has been set, and it will promise to apply the DSO module to Apache;
7. after returning to the prompt state, press make and wait until the prompt state is returned again;
8. execute the "make install" command.
Now that Apache has been installed, the system will return to the prompt state. Next we start to install PHP:
1. find the link to the latest version in the download area of the PHP homepage;
2. download the file to an appropriate directory, such as/usr/local/or/opt/or any directory you specified;
3rd. run gunzip' to uncompress the file and get the file suffixed with .tar;
4. execute the following command to install the file in the php-[version] Directory:
Tar-xvf php-[version]
5. enter the/usr/local/php-[version] directory or the directory specified in step 4;
So far, you have prepared to install PHP using the DSO method. the only configuration option to be corrected is with-apxs (this is a file in the Apache bin directory ). To achieve high performance, I have not installed a Support Module for MySQL.
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.