|
$ mkdir /usr/src/mysql
|
|
$ cp mysql-VERSION.tar.gz /usr/src/mysql
|
|
$ cd /usr/src/mysql
|
|
$ gunzip < mysql-VERSION.tar.gz | tar -xvf -
|
|
$ cd mysql-VERSION
|
|
$ groupadd mysql
|
|
$ useradd -g mysql mysql
|
|
$ ./configure --prefix=/usr/local/mysql [add the necessary extra options here]
|
|
$ make
|
|
$ make install
|
|
$ cp support-files/my-medium.cnf /etc/my.cnf
|
|
$ cd /usr/local/mysql
|
|
$ bin/mysql_install_db --user=mysql
|
|
$ chown -R root .
|
|
$ chown -R mysql lib
|
|
$ chgrp -R mysql .
|
|
$ bin/mysqld_safe --user=mysql &
|
|
$ mysql
|
|
SHOW DATABASES;
|
|
cd /usr/local/mysql ; bin/mysqld_safe --user=mysql &
|
|
$ mkdir /usr/src/httpd
|
|
$ cp httpd-VERSION.tar.gz /usr/src/httpd
|
|
$ cd /usr/src/httpd
|
|
$ gunzip < httpd-VERSION.tar.gz | tar -xvf -
|
|
$ cd httpd-VERSION
|
|
$ ./configure --prefix=/usr/local/apache2 [add extra options here]
|
|
$ make
|
|
$ make install
|
|
$ mkdir /usr/src/php5
|
|
$ cp php-VERSION.tar.gz /usr/src/php5
|
|
$ cd /usr/src/php5
|
|
$ gunzip < php-VERSION.tar.gz | tar -xvf -
|
|
$ cd php-VERSION
|
|
$ ./configure \
|
|
$ --prefix=/usr/local/php5 \
|
|
$ --with-apxs2=/usr/local/apache2/bin/apxs \
|
|
$ --with-mysql=shared,/usr/local/mysql [add your options here]
|
|
$ make
|
|
$ make install
|
|
cp php.ini-dist /usr/local/php5/lib
|
|
DocumentRoot "/usr/local/apache2/htdocs"
|
|
DocumentRoot "/var/www/htdocs"
|
|
<Directory "/usr/local/apache2/htdocs">
|
|
<Directory "/var/www/htdocs">
|
|
AllowOverride None
|
|
AllowOverride All
|
|
DirectoryIndex index.php index.html index.html.var
|
|
/usr/local/apache2/bin/apachectl start
|
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.