lnmp how to reinstall php

藏色散人
Release: 2023-03-04 09:44:01
Original
3440 people have browsed it

Lnmp method to reinstall php: First enter the ext directory of the php installation directory; then execute the command "cd /root/lnmp0.4-full/php-5.2.10/ext/"; then execute the command " make && make install" and modify php.ini.

lnmp how to reinstall php

Recommendation: "PHP Video Tutorial"

1. Installation library:

CentOS :yum install libc-client-devel
Debian:apt-get install libc-client-dev
Copy after login

2 , enter the ext directory of the php installation directory

For example, if the php installation directory is: /root/lnmp0.4-full/php-5.2.10/

, then execute: cd /root/lnmp0 .4-full/php-5.2.10/ext/

We need to install the imap module, execute cd imap/

and then execute /usr/local/php/bin/phpize. Return information:

Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
Copy after login

Execute the following command:

[root@vpser imap]# ./configure --with-php-config=/usr/local/php/bin/php-config
[root@vpser imap]# make && make install
Copy after login

Return:

Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/
Copy after login

has been successful, then modify /usr/local/php/etc/php.ini

Search: extension = then add extension = "imap.so" after the last extension=

Save and execute /root/lnmp restart to restart.

The above is the detailed content of lnmp how to reinstall php. 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
Popular Tutorials
More>
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!