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
相关推荐
JoySSLLian几秒前
手把手教你安装免费SSL证书(附宝塔/Nginx/Apache配置教程)
网络·人工智能·网络协议·tcp/ip·nginx·apache·ssl
岁杪杪9 分钟前
关于运维:LINUX 零基础
运维·服务器·php
VekiSon32 分钟前
Linux内核驱动——杂项设备驱动与内核模块编译
linux·c语言·arm开发·嵌入式硬件
青茶36038 分钟前
php怎么实现订单接口状态轮询(二)
前端·php·接口
Apache Flink1 小时前
Apache Flink Agents 0.2.0 发布公告
大数据·flink·apache
AI+程序员在路上1 小时前
Nand Flash与EMMC区别及ARM开发板中的应用对比
arm开发
一分半心动2 小时前
宝塔面板lnmp架构,tp6框架网站伪静态
nginx·php
Hao.Zhou3 小时前
phpstudy 进行 composer 全局配置
php·composer
zorro_z5 小时前
ThinkPHP8学习篇(十六):错误调试与辅助组件
php
17(无规则自律)7 小时前
深入浅出 Linux 内核模块,写一个内核版的 Hello World
linux·arm开发·嵌入式硬件