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
[Content navigation] |
Page 1: Install mysql + php + apache2 in freebsd and linux |
Page 1: Install mysql + php + apache2 in freebsd and linux |