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
相关推荐
BingoGo2 小时前
PHP 15 个高效开发的小技巧
后端·php
JaguarJack4 小时前
PHP 15 个高效开发的小技巧
后端·php
武文斌7715 小时前
项目学习总结:LVGL图形参数动态变化、开发板的GDB调试、sqlite3移植、MQTT协议、心跳包
linux·开发语言·网络·arm开发·数据库·嵌入式硬件·学习
GilgameshJSS16 小时前
STM32H743-ARM例程15-RTC
c语言·arm开发·stm32·实时音视频
魔众18 小时前
ModStartCMS v9.7.0 组件升级优化,模块升级提醒,访问明细导出
php·cms
一人の梅雨21 小时前
京东商品详情深度解析:从接口调用到商业价值挖掘的技术实现
服务器·数据库·php
szxinmai主板定制专家21 小时前
RK3588+AI算力卡替代英伟达jetson方案,大算力,支持FPGA自定义扩展
arm开发·人工智能·分布式·fpga开发
帅帅梓21 小时前
docker网络
网络·docker·php
lifallen1 天前
从Apache Doris 学习 HyperLogLog
java·大数据·数据仓库·算法·apache
DolphinScheduler社区1 天前
# 3.1.8<3.2.0<3.3.1,Apache DolphinScheduler集群升级避坑指南
java·大数据·开源·apache·任务调度·海豚调度