Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Source code compilation and installation of LAMP

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Building Apache Services

Mount the source package to the/mnt directory on the linux system and extract it to the/opt directory. The two packages starting with apr are apache cross-platform component packages, and the package starting with h is the source package.

Place the component package in the apache code package srclib directory

Installation environment packages gcc gcc-c++(language compiler), make(convert source code to binary executable), perl,pcre-level ,expat-level

After the environment is set up, we configure it. You can see the configure execution script in the source package.

--prefix installation path

--enable-so Enable Apache core module

--enable-rewrite Enable rewriting

--enable-charset-lite Support charset

--enable-cgi universal gateway interface

! [](https://s1.51cto.com/images/blog/201910/24/c7364fa2766e5c9821b17e61fea7f8d2.png? x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

After configuration, compile and install

make,make install

Installation complete, directory in/usr/local/httpd, add startup script to/etc/init.d

Configure startup scripts, add httpd services to manager, change configuration files

Create soft links between configuration files and command files, turn off firewalls, turn on services

Building MySQL Database

Extract source code to/opt installation environment package ncurces-devel autoconf cmake

configure cmake compile, install

After installation, create a link between script and configuration file and declare it in server manager

Link command files, create users, modify owners, arrays, and change profiles

initialize the database

--user=mysql \

--ldata=/var/lib/mysql \

--basedir=/usr/local/mysql \

--datadir=/home/mysql

Change Start Script Start Service

Build PHP

Install environment package, extract php source code package

Configure, compile, install

Put the configuration file in/usr/local/php, command the file to create a soft connection, change the apache configuration file so that it recognizes php

Restart apache service, change default site format, rename

successfully built

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report