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
相关推荐
t198751286 小时前
使用深度神经网络解决无线网络资源分配问题的MATLAB实现
matlab·php·dnn
m0_459252467 小时前
fastadmin动态渲染统计信息
开发语言·前端·javascript·php
AI成长日志7 小时前
【实用工具教程】Linux常用命令速查与实战场景:文件操作、进程管理与网络调试高频命令解析
linux·php
ccchen8888 小时前
适配帝国CMS 8.0:全新帝国CMS免登录采集发布插件
经验分享·爬虫·php·帝国cms自动采集发布插件·帝国cms8.0·帝国cms自动采集插件·帝国cms采集发布模块
Suchadar8 小时前
源码编译Apache
apache
梦..8 小时前
Allegro学习记录(一)
arm开发·单片机·嵌入式硬件·学习·硬件架构·硬件工程·pcb工艺
vx-程序开发10 小时前
springboot在线装修管理系统-计算机毕业设计源码56278
java·c语言·spring boot·python·spring·django·php
幽络源小助理10 小时前
网页软件库源码(带1153条资源)-含详细搭建教程
php
EnglishJun11 小时前
ARM嵌入式学习(七)--- 汇编基础(数据指令、函数调用原理、中断原理)
arm开发·学习
Nan_Feng_ya11 小时前
基于STM32的智能手表复刻成功(完全开源)
arm开发·stm32·pcb工艺·智能手表