Linux apache + mysql + php development environment pure source code compilation build _ PHP Tutorial

Source: Internet
Author: User
Tags php development environment
In linux, the apache + mysql + php development environment is built with pure source code. Record all the processes of the apache + mysql + php development environment compiled by source code under fedoracore1. it is most convenient to install a server, of course, using rpm, you do not need to record all the processes of the apache + mysql + php development environment compiled by source code under fedora core 1.
Generally, installing a server with rpm is the most convenient. you can easily obtain the desired environment without considering too many configurations. However, it is not so easy to solve the issue of the Association of rpm packages.
Apache, mysql, and php are simple to compile and install from source code. the configuration parameters are not complex and there is not much dependency between them, the system compiled from the source code is also relatively stable, facilitating future patching and upgrading.
The premise for compiling and installation is that the system has installed the corresponding compilation tool. Generally, when installing the system, I prefer to select a custom system and only the development kit, none of the other software packages are installed. If you do not select to install all development tools, you must install at least the following rpm Package
Autoconf-2.57-3.noarch.rpm
Automake-1.7.8-1.noarch.rpm
Binutils-2.14.90.0.6-3.i386.rpm
Bison-1.875-5.i386.rpm
Byacc-1.9-26.i386.rpm
Cpp-3.3.2-1.i386.rpm
Flex-2.5.4a-30.i386.rpm
Gcc-3.3.2-1.i386.rpm
Gcc-c ++-3.3.2-1. i386.rpm
Glibc-devel-2.3.2-101.i386.rpm
Glibc-headers-2.3.2-101.i386.rpm
Glibc-kernheaders-2.4-8.36.i386.rpm
Libstdc +-devel-3.3.2-1.i386.rpm
M4-1.4.1-14.i386.rpm
The procedure is as follows:
1. install mysql
Download a target version
Tar-xzvf mysql-4.0.xx.tar.gz
Cd mysql-4.0.xx
./Configure -- prefix =/usr/local/mysql <-- This path is a habit of me. you can also choose another installation path
Make
Make install
In the support-files directory, select an appropriate. cnf file, cp to/etc/my. cnf
Cd/usr/local/mysql/bin
./Mysql_install_db
../Share/mysql. server start
./Mysqladmin-uroot password 'XXX' <-- change the default password
./Mysql-uroot-p try to log on to mysql. it should be okay.
The mysql. server file can be copied to the/etc/rc. d/init. d Directory and set to automatically start the mysql service when the system starts.
2. install apache
Download a target version
Tar-xzvf httpd-2.0.xx.tar.gz
Cd httpd-2.0.xx
./Configure -- prefix =/usr/local/apache -- enable-so <-- modularization
Make
Make install
Cd/usr/local/apache/conf
Modify httpd. conf. because php will be configured later, you can configure User, Group, ServerName, DocumentRoot, and DirectoryIndex parameters for the moment.

The whole process of the apache + mysql + php development environment compiled by source code in javascore 1 is usually the most convenient to install a server, of course, using rpm. you do not need to consider it...

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.