An article explains how to deploy apache and php on Linux server

藏色散人
Release: 2021-10-21 15:28:48
forward
2263 people have browsed it

The following column linux system tutorial will introduce to you the method of deploying apache and php on Linux server. I hope it will be helpful to friends in need!

Mirror address

https://oneinstack.com

Download the installation package

wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz  //下载安装包
Copy after login

View the file

ls -l  //查看下载的文件
Copy after login

Unzip the compressed file

tar -xzvf oneinstack-full.tar.gz   //解压压缩包
Copy after login

cd to the compressed file

cd oneinstack  //cd到解压的文件下
Copy after login

View all files under this file

ll //查看该文件下的文件
Copy after login

Execute the installation command

./install.sh   //执行安装命令
Copy after login

Ask the interface

Please input SSH port(Default: 22)    //询问接口(回车确定)
Copy after login

Whether to install a firewall

Do you want to enable iptables?   //是否安装防火墙 (否)
Copy after login

Install service

Do you want to install Web server? [y/n]: y
Copy after login

Choose more

Please select Nginx server:
    1. Install Nginx    2. Install Tengine    3. Install OpenResty    4. Do not install
Please input a number:(Default 1 press Enter) 4
Copy after login

Select apache (apache is 4)

Please input a number:(Default 1 press Enter) 4···
Do you want to install Apache? [y/n]: y

Please select Apache mode:
    1. php-fpm    2. mod_php
Please input a number:(Default 1 press Enter) Please select Apache MPM:
    1. event    2. prefork    3. worker
Please input a number:(Default 1 press Enter) Please select tomcat server:
    1. Install Tomcat-10
    2. Install Tomcat-9
    3. Install Tomcat-8
    4. Install Tomcat-7
    5. Do not install
Please input a number:(Default 5 press Enter) 5Please input a number:(Default 1 press Enter) Please select Apache MPM:
    1. event    2. prefork    3. worker
Please input a number:(Default 1 press Enter) Please select tomcat server:
    1. Install Tomcat-10
    2. Install Tomcat-9
    3. Install Tomcat-8
    4. Install Tomcat-7
    5. Do not install
Please input a number:(Default 5 press Enter) 5Do you want to install Database? [y/n]: n

Do you want to install PHP? [y/n]: y

Please select a version of the PHP:
     1. Install php-5.3
     2. Install php-5.4
     3. Install php-5.5
     4. Install php-5.6
     5. Install php-7.0
     6. Install php-7.1
     7. Install php-7.2
     8. Install php-7.3
     9. Install php-7.4
    10. Install php-8.0Please input a number:(Default 7 press Enter) 8Do you want to install opcode cache of the PHP? [y/n]: n

Please select PHP extensions:
     0. Do not install     1. Install zendguardloader(PHP<=5.6)
     2. Install ioncube     3. Install sourceguardian(PHP<=7.2)
     4. Install imagick     5. Install gmagick     6. Install fileinfo     7. Install imap     8. Install ldap     9. Install phalcon(PHP>=5.5)
    10. Install yaf(PHP>=7.0)
    11. Install redis    12. Install memcached    13. Install memcache    14. Install mongodb    15. Install swoole    16. Install xdebug(PHP>=5.5)Please input numbers:(Default '4 11 12' press Enter)
Copy after login

Recommended learning: "linux video tutorial"

The above is the detailed content of An article explains how to deploy apache and php on Linux server. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!