LAMP deployment notes, lamp deployment

Source: Internet
Author: User

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:

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.