军哥,lnmp1.7升级php7.4.19错误,求解决办法
军哥,lnmp1.7升级php7.4.19错误,求解决办法
https://c.wss.pet/f/h9m0wb5kw0b 复制链接到浏览器打开
include/main.sh: line 706: /usr/local/php/bin/php-config: No such file or directory
include/main.sh: line 707: /usr/local/php/bin/php-config: No such file or directory
Current PHP Version:
You can get version number from http://www.php.net/
Please enter a PHP Version you want:
[0;32mPress any key to start...or Press Ctrl+c to cancel[0m
Notice: php-7.4.19.tar.bz2 not found!!!download now...
--2025-06-16 22:02:03--http://php.vpser.net/php-7.4.19.tar.bz2
Resolving php.vpser.net (php.vpser.net)... 43.138.112.190
Connecting to php.vpser.net (php.vpser.net)|43.138.112.190|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://175.6.32.4:88/php/php-7.4.19.tar.bz2
--2025-06-16 22:02:03--http://175.6.32.4:88/php/php-7.4.19.tar.bz2
Connecting to 175.6.32.4:88... failed: Connection refused.
--2025-06-16 22:02:03--https://www.php.net/distributions/php-7.4.19.tar.bz2
Resolving www.php.net (www.php.net)... 185.85.0.29, 2a02:cb40:200::1ad
Connecting to www.php.net (www.php.net)|185.85.0.29|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12810529 (12M)
Saving to: ‘php-7.4.19.tar.bz2’
100%[======================================>] 12,810,52924.8KB/s in 9m 18s
2025-06-16 22:11:23 (22.4 KB/s) - ‘php-7.4.19.tar.bz2’ saved
Download php-7.4.19.tar.bz2 successfully!
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx...done
Shutting down MySQL.. SUCCESS!
/usr/bin/lnmp: line 40: /etc/init.d/php-fpm: No such file or directory
mv: cannot stat ‘/etc/init.d/php-fpm’: No such file or directory
Installing Dependent for PHP...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package c-ares-devel-1.10.0-3.el7_9.1.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package libicu-devel-50.2-4.el7_7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
checking for libxml-2.0 >= 2.7.6... yes
checking whether to enable XMLReader support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking whether to build with XMLRPC-EPI support... yes
checking whether to build with expat support... no
checking iconv dir for XMLRPC-EPI... yes
checking for libxml-2.0 >= 2.7.6... yes
checking whether to enable XMLWriter support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking whether to build with XSL support... yes
checking for libxslt >= 1.1.0... yes
checking for libexslt... yes
checking whether to enable zend-test extension... no
checking for zip archive read/write support... yes
checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:
Requested 'libzip >= 0.11' but version of libzip is 0.10.1
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBZIP_CFLAGS
and LIBZIP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target `install'.Stop.
Copy new php configure file...
Modify php.ini......
include/php.sh: line 86: pear: command not found
include/php.sh: line 87: pecl: command not found
Downloading Composer...
--2025-06-16 22:12:39--https://soft.vpser.net/web/php/composer/composer.phar
Resolving soft.vpser.net (soft.vpser.net)... failed: Name or service not known.
wget: unable to resolve host address ‘soft.vpser.net’
Composer install failed, try to from composer official website...
include/php.sh: line 99: php: command not found
curl: (23) Failed writing body (0 != 16135)
Install ZendGuardLoader for PHP 7...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat ‘/root/lnmp1.7/src/php-7.4.19/sapi/fpm/init.d.php-fpm’: No such file or directory
chmod: cannot access ‘/etc/init.d/php-fpm’: No such file or directory
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Starting LNMP...
Starting nginx...done
Starting MySQL.. SUCCESS!
/usr/bin/lnmp: line 26: /etc/init.d/php-fpm: No such file or directory
[0;31m======== upgrade php failed ======[0m
[0;31mupgrade php log: /root/upgrade_lnmp_php.log[0m
You upload upgrade_lnmp_php.log to LNMP Forum for help.
页:
[1]