Install mysql + php + apache2 in freebsd and linux

Source: Internet
Author: User

I learned how to install mysql + php + apache2 in freebsd and linux.

Version: mysql: 4.0.26 apache: 2.0.59 php: 4.4.2

Freebsd:

-- MySQL

Pw groupadd mysql

Pw useradd mysql-g mysql

./Configure-prefix =/usr/local/mysql

Make

Make install

Chown-R root.

Chown-R mysql var

Chgrp-R mysql.

Bin/mysqld_safe-user = mysql &

Ps ax check whether the service is enabled

-- Apache

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

Make

Make install

-- Php

Configure-with-mysql-with-apxs =/www/bin/apxs

Make

Make install

/Usr/local/apache/htdocs/create a test. php file to test whether the file is available.

Linux:

-- MySQL

Groupadd mysql

Useradd mysql-g mysql

./Configure-prefix =/usr/local/mysql

Make

Make install

Chown-R root.

Chown-R mysql var

Chgrp-R mysql.

Bin/mysqld_safe-user = mysql &

Ps ax check whether the service is enabled

-- Apache

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

Make

Make install

-- Php

Configure-with-mysql-with-apxs =/www/bin/apxs

Make

Make install

  • 1
  • 2
  • Next Page
[Content navigation]
Page 1: Install mysql + php + apache2 in freebsd and linux Page 1: Install mysql + php + apache2 in freebsd and linux

Related Article

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.