LAMP deployment notes, lamp deployment
Advantages of source code software:
Get the latest version to fix bugs in time;
Can be modified and customized by yourself;
Source code packaging:
Most .tar.gzand .tar.bz2 formats;
Integrity Verification:
Md5sum verification tool
Confirm the Source Code compiling environment:
You must install a compiler that supports the C/C ++ programming language.
Compilation and installation process:
Download and decompress the package->./configure configuration (installation directory, installation module, etc.) à make compilation-> make install installation (copy the binary file to the system and configure the application environment)
Configuration
Compile
Install
To compile, you must first install gcc:
Uninstall the original httpd:
Decompress the package (first install apr and httpd dependent package ):
Enter the apr decompression Directory, which contains the./configure configuration script. You can execute:
./Configure-help query related options. For example:
This option indicates the installation location.
Set the installation directory:
After configuration, execute the make command in this directory to start Compilation:
Install:
Install the apr-util software by following the steps above.
Install the pcre package. (The following process is omitted)
Install the apache Software Package:
Make install
Set the soft link so that apache can directly execute:
Check whether apache is installed successfully:
The apache service script requires this command to install it:
After installation, copy the service script:
Configuration Service:
Run setup to set the network:
Restart the network service:
Check whether eth0 Nic is activated:
If no, run the following command:
Check whether the IP address is configured:
Modify the website configuration file:
Check whether the configuration file is correct:
Start the service:
If you need to access through a domain name, you can modify:
Install mysql:
Check whether mysql is installed:
Decompress and install the cmake package:
Install the dependency package:
Create a user who runs the service:
Compile mysql:
Configuration file:
Modify the configuration file:
Database initialization:
Optimized execution path:
Add System Service:
Start the database:
Install the PHP software package:
Install zlib (supports compression)
Check whether the library file is installed:
Install libxml2 (xml parsing ):
If an error occurs during installation, install python:
Install libmcrypt extension tool:
Install mhash:
Install mcrypt:
Install libpng:
Install iconv:
Install freetype:
Install autoconf:
Install jpeg:
Install gd2:
Install xpm (supports reading xpm ):
Install gettext:
Install PHP:
Configuration File Configuration:
Test PHP: