Prepare the APACHEMYSQLPHP Environment In debian

Source: Internet
Author: User
Prepare the APACHEMYSQLPHP Environment In debian-Linux Enterprise Application-Linux server application information. For details, refer to the following section. The debian version is a stable version. Only the first disk is installed, which only contains the basic information. If you want to compile and install APACHE and other programs, you need to download

Libc6, c standard library file

G ++, GNUc ++ Compiler

Gcc, gnu c Compiler

Curses, compatible with libraries of various SHELL platforms (not to mention this)

Libxml, XML library

Gd. GD Image Library

The above library files are directly installed with APT.

Install APACHE MYSQL PHP

Apache installation and compilation options:

./Configure -- prefix =/usr/local/apache -- enable-so

MYSQL installation and compilation options

. /Configure -- prefix =/usr/local/mysql -- with-extra-charsets = all -- with-unix-socket-path =/usr/local/mysql/var/mysql. sock

Cp/opt/mysql/share/mysql/my-medium.cnf/etc/my. cnf

Mysql_install_db

Chmod 755 mysql/var
Chown-R mysql: mysql/var

/Opt/mysql/share/mysql. service start service

PHP compilation options

. /Configure -- prefix =/usr/local/php -- with-apxs2 =/usr/local/apache/bin/apxs -- with-mysql =/usr/local/mysql -- with-mysqli = /usr/local/mysql/bin/mys
Ql_config -- with-gd -- enable-mbstring = all

Change the HTTPD. CONF file

LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php. php. phtml

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.