How to install php5.2 under linux

藏色散人
Release: 2021-11-23 09:44:52
Original
3049 people have browsed it

How to install php5.2 under Linux: 1. Execute "tar -zxvf php-5.2.5.tar.gz"; 2. Use configure to configure the installation information; 3. Install through "make install" php; 4. Just add php support in apache.

How to install php5.2 under linux

The operating environment of this article: linux5.9.8 system, php5.2, Dell G3 computer.

How to install php5.2 under Linux?

Install PHP 5.2.5 under Linux

① tar -zxvf php-5.2.5.tar.gz

How to install php5.2 under linux

② cd php-5.2.5

How to install php5.2 under linux

③ Use configure configuration Installation information (the most important)

./configure \ --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs :指定Apache目录 --with-mysql=/usr/local/mysql :指定MySQL目录
Copy after login

How to install php5.2 under linux

##④ make

⑤ make install

After the installation is completed, in the virtual host htdocs directory, write php code

How to install php5.2 under linux

#Why is the current program not running?

Answer: Because php support has not been added to apache.

⑥ Set apache to support php running

How to install php5.2 under linux

Check whether 53 has loaded the php module

How to install php5.2 under linux

If there is no such line of code, you must reset apache and php, and add the following code in line 310:

How to install php5.2 under linux

Remember: After we modify the configuration file, we must re- Setting up the Apache server

How to install php5.2 under linux

Recommended learning: "

PHP Video Tutorial"

The above is the detailed content of How to install php5.2 under linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!