Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the installation process of php5.4.45

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail how the installation process of php5.4.45 is, and the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Php5.4.45 installation method: 1, use yum to install httpd and compile and install php5.4.45;2, load libphp5.so module; 3, add apache to parse php file.

This article operating environment: linux5.9.8 system, php5.4.45 version, DELL G3 computer

Php5.4.45 installation tutorial

Compile and install php5.4.45

1.PHP download address http://www.php.net/releases/

2.HTTPD download address http://mirrors.hust.edu.cn/apache/

Since webtatic does not provide support services for php5.4 versions, manual compilation and installation is required

Https://webtatic.com/packages/php54/

There are two situations:

1.yum install httpd, compile and install php5.4.45

A. Yum install httpd httpd-devel

B. Tar zxvf php-5.4.45.tar.gz

Cd php-5.4.45

Note: before compiling and installing PHP, you must make sure that the php5.3 installed by the original yum has been removed, otherwise the libphp5.so file will not be generated.

. / configure-- with-apxs2=/usr/sbin/apxs-- with-mysqlmake & & make installcp php.ini-development / usr/local/lib/php.inised-I% date. Timezone =% date.timezone = Asia/Shanghai%' / usr/local/lib/php.ini

Verify that the / etc/httpd/conf/httpd.conf file has loaded the libphp5.so module

Grep "libphp5.so" / etc/httpd/conf/httpd.conf

Add apache to parse php files

Sed'/ .gz .tgz / a\ AddType application/x-httpd-php .php'/ etc/httpd/conf/httpd.conf

two。 Compile and install httpd2.2 php5.4.45

A. Tar zxvf httpd-2.2.31.tar.gz

Cd httpd-2.2.31 ls. / configure-- enable-so make & & make install / usr/local/apache2/bin/apachectl start lsof-iVIE80 / usr/local/apache2/bin/apachectl stop lsof-iVl80b. Cd.. / cd php-5.4.45. / configure-- with-apxs2=/usr/local/apache2/bin/apxs-- with-mysql make & & make install cp php.ini-development / usr/local/lib/php.inic. Sed-I's% date. Timezone =% date.timezone = Asia/Shanghai%' / usr/local/lib/php.ini

Verify that the / usr/local/apache2/conf/httpd.conf file has loaded the libphp5.so module

Grep "libphp5.so" / usr/local/apache2/conf/httpd.conf

Add apache to parse php files

Sed'/ .gz .tgz / a\ AddType application/x-httpd-php .php'/ usr/local/apache2/conf/httpd.conf

d. Verification

/ usr/local/apache2/bin/apachectl startecho "" > index.php

Check to see if the configuration of the php is displayed properly.

On how the installation process of php5.4.45 is shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report