Lamp: centos7.6 Arm 安装 php因为版本问题要单装

复制代码
-------------------------- apache setting ---------------------------

1. httpd-2.4.59
2. do_not_install

which apache you'd select (default httpd-2.4.59): 1

your selection: httpd-2.4.59

-------------------------- apache_modules install --------------------------

1. mod_wsgi-4.9.4
2. mod_security-2.9.6
3. mod_jk-1.2.48
4. do_not_install

Please input one or more number between 1 and 4 (default do_not_install) (for example: 1 2 3): 1 2 3

your selection: mod_wsgi-4.9.4 modsecurity-2.9.6 tomcat-connectors-1.2.48-src

-------------------------- mysql setting ---------------------------

1. mysql-5.7.44
2. mysql-8.0.36
3. mariadb-10.4.33
4. mariadb-10.5.24
5. mariadb-10.6.17
6. mariadb-10.11.7
7. do_not_install

which mysql you'd select (default mysql-5.7.44): 1

your selection: mysql-5.7.44

mysql data location(default:/usr/local/mysql/data, leave blank for default):

mysql data location: /usr/local/mysql/data

mysql server root password (default:lamp.sh, leave blank for default): 1qaz2wsx

mysql server root password: 1qaz2wsx

-------------------------- php setting ---------------------------

1. php-7.4.33
2. php-8.0.30
3. php-8.1.28
4. php-8.2.18
5. do_not_install

which php you'd select (default php-8.1.28): 5

your selection: do_not_install

------------------------- Install Overview --------------------------

Apache: httpd-2.4.59
Apache Location: /usr/local/apache
Apache Additional Modules:
mod_wsgi-4.9.4
modsecurity-2.9.6
tomcat-connectors-1.2.48-src

Database: mysql-5.7.44
MySQL Location: /usr/local/mysql
MySQL Data Location: /usr/local/mysql/data
MySQL Root Password: 1qaz2wsx

Database Management Modules:

PHP: do_not_install
PHP Additional Extensions: do_not_install

KodExplorer: do_not_install

---------------------------------------------------------------------

Press any key to start...or Press Ctrl+C to cancel

Installing development tools...
Installing package yum-utils
Installing package tar

Installing package gcc
Installing package gcc-c++
Installing package make
Installing package wget
Installing package perl
Installing package chkconfig
Installing package curl
Installing package bzip2
Installing package readline
Installing package readline-devel
Installing package net-tools
Installing package crontabs
Installing package ca-certificates
Installing package epel-release
Installing package python
Installing package python-devel
Installing package ntpdate
Install development tools completed...
Sync time...
Sync time completed...
Start time: 2024-06-06 11:42:49
Removing the conflict packages...
Remove the conflict packages completed...
Installing dependencies for Apache...
Installing package libnghttp2-devel
Installing package zlib-devel
Installing package openssl-devel
Installing package libxml2-devel
Installing package expat-devel
Installing package lua-devel
Installing package lua
Installing package jansson-devel
Install dependencies for Apache completed...
Installing pcre-8.45...
pcre-8.45.tar.gz [found]

.......中间编译过程略过

复制代码
no apache given
no netscape given
...Only using compatible httpd API...
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating apache-2.0/Makefile
config.status: creating apache-2.0/Makefile.apxs
config.status: creating common/Makefile
config.status: creating common/list.mk
config.status: creating common/jk_types.h
config.status: creating common/config.h
config.status: common/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
Making all in common
make[1]: Entering directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/common'
Making all in apache-2.0
make[1]: Entering directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/apache-2.0'
../scripts/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool --silent' mod_jk.la `pwd`
/usr/local/apache/build/libtool --silent --mode=install cp mod_jk.la /root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/apache-2.0/
libtool: warning: remember to run 'libtool --finish /usr/local/apache/modules'
make[1]: Leaving directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/apache-2.0'
make[1]: Entering directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native'
target="all"; \
list='common apache-2.0'; \
for i in $list; do \
    echo "Making $target in $i"; \
    if test "$i" != "."; then \
       (cd $i && make $target) || exit 1; \
    fi; \
done;
Making all in common
make[1]: Entering directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/common'
Making all in apache-2.0
make[1]: Entering directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/apache-2.0'
../scripts/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool --silent' mod_jk.la `pwd`
/usr/local/apache/build/libtool --silent --mode=install cp mod_jk.la /root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/apache-2.0/
libtool: warning: remember to run 'libtool --finish /usr/local/apache/modules'
make[1]: Leaving directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/apache-2.0'
Making install in common
make[1]: Entering directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/common'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/common'
Making install in apache-2.0
make[1]: Entering directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/apache-2.0'

Installing files to Apache Modules Directory...
/usr/local/apache/bin/apxs -i mod_jk.la
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' mod_jk.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install install mod_jk.la /usr/local/apache/modules/
libtool: install: install .libs/mod_jk.so /usr/local/apache/modules/mod_jk.so
libtool: install: install .libs/mod_jk.lai /usr/local/apache/modules/mod_jk.la
libtool: install: install .libs/mod_jk.a /usr/local/apache/modules/mod_jk.a
libtool: install: chmod 644 /usr/local/apache/modules/mod_jk.a
libtool: install: ranlib /usr/local/apache/modules/mod_jk.a
libtool: finish: PATH="/usr/local/pcre/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin:/sbin" ldconfig -n /usr/local/apache/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/apache/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/local/apache/modules/mod_jk.so

Please be sure to arrange /usr/local/apache/conf/httpd.conf...

make[1]: Leaving directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native/apache-2.0'
make[1]: Entering directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native'
make[2]: Entering directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native'
make[1]: Leaving directory `/root/lamp1/lamp/software/tomcat-connectors-1.2.48-src/native'
Install tomcat-connectors-1.2.48-src completed...
Installing dependencies for Database...
Installing package ncurses-devel
Installing package cmake
Installing package m4
Installing package bison
Installing package libaio
Installing package libaio-devel
Installing package numactl-devel
Installing package libevent
Installing package perl-Data-Dumper
Install dependencies for Database completed...
Downloading and Extracting MySQL files...
mysql-5.7.44-linux-glibc2.12-x86_64.tar.gz [found]
Moving MySQL files...
create my.cnf file...
create my.cnf file at /etc/my.cnf completed.
/root/lamp1/lamp/include/mysql.sh: line 376: /usr/local/mysql/bin/mysqld: cannot execute binary file
Starting MySQL...
/root/lamp1/lamp/include/mysql.sh: line 310: /usr/bin/mysql: cannot execute binary file
/root/lamp1/lamp/include/mysql.sh: line 311: /usr/bin/mysql: cannot execute binary file
Shutting down MySQL...
Cleaning up...
Clean up completed...
Setting Firewall...
firewalld looks like not running, please manually set if necessary.
Set Firewall completed...

Congratulations, LAMP install completed!

------------------------ Installed Overview -------------------------

Apache: httpd-2.4.59
Default Website: http://36.112.103.202
Apache Location: /usr/local/apache
Apache Additional Modules:
mod_wsgi-4.9.4
modsecurity-2.9.6
tomcat-connectors-1.2.48-src

Database: mysql-5.7.44
MySQL Location: /usr/local/mysql
MySQL Data Location: /usr/local/mysql/data
MySQL Root Password: 1qaz2wsx

Database Management Modules:

PHP: do_not_install
PHP Additional Extensions: do_not_install

KodExplorer: do_not_install

---------------------------------------------------------------------

Starting Apache...
Starting Database...
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      706/master
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      68380/httpd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      339/sshd
tcp6       0      0 ::1:25                  :::*                    LISTEN      706/master
tcp6       0      0 :::22                   :::*                    LISTEN      339/sshd
udp        0      0 0.0.0.0:68              0.0.0.0:*                           126/dhclient

Start time     : 2024-06-06 11:42:49
Completion time: 2024-06-06 11:47:01 (Use:4 minutes)
Welcome to visit our website: https://lamp.sh
Enjoy it

[root@localhost lamp]# yum install -y php php-mysqlnd php-xml php-fpm

.......

bash 复制代码
Installed:
  php.aarch64 0:5.4.16-48.el7                   php-fpm.aarch64 0:5.4.16-48.el7                   php-mysqlnd.aarch64 0:5.4.16-48.el7                   php-xml.aarch64 0:5.4.16-48.el7

Dependency Installed:
  apr.aarch64 0:1.4.8-7.el7          apr-util.aarch64 0:1.5.2-6.el7_9.1      httpd.aarch64 0:2.4.6-99.el7.centos.1      httpd-tools.aarch64 0:2.4.6-99.el7.centos.1      libzip.aarch64 0:0.10.1-8.el7
  mailcap.noarch 0:2.1.41-2.el7      php-cli.aarch64 0:5.4.16-48.el7         php-common.aarch64 0:5.4.16-48.el7         php-pdo.aarch64 0:5.4.16-48.el7

Complete!
[root@localhost lamp]# php -v
PHP 5.4.16 (cli) (built: Apr  1 2020 16:45:34)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
相关推荐
nzz_1712142 小时前
PHP程序员转型AI岗位指南:核心技能、北京就业市场与转型路径分析
开发语言·人工智能·php
4311媒体网4 小时前
帝国CMS安装避坑指南
php
风华圆舞5 小时前
鸿蒙HarmonyOS 多模态输入实战 —— 图片与文档输入智谱/DeepSeek
开发语言·人工智能·华为·php·harmonyos·arkts·arkui
2601_954706495 小时前
算力上云革新移动终端:ARM 虚拟化云手机底层原理、API 自动化实战与 2026 选型全解
arm开发·智能手机·自动化
似璟如你6 小时前
IoTDB 从零入门:安装、部署与第一个时序数据写入(Windows版本)
apache·时序数据库·iotdb
CHY_1286 小时前
Arm Ethos‑U65:YOLOv8n 模型准备与 Vela 编译
arm开发·人工智能·yolo·目标检测
WHS-_-20227 小时前
CL-SEC: Cross-Layer Semantic Error Correction Empowered byLanguage Models
人工智能·语言模型·php
码农学院8 小时前
电子产品企业泉州网络推广如何精准触达目标采购商
开发语言·php
Dlrb12111 天前
ARM架构---Cortex系列寄存器,重要内部模块,工作模式,异常处理等
arm开发·arm·指令集·arm工作模式·soc片上系统·ram与rom
广州灵眸科技有限公司1 天前
瑞芯微RV1126B开发板(EASY-EAI-PI2) 系统操作-线进程操作
数据库·单片机·嵌入式硬件·算法·php