[root@localhost]# wget http://mysql.holywar.net/Downloads/MySQL-4.1/mysql-4.1.20.tar.gz [root@localhost]# tar xfz mysql-4.1.20.tar.gz [root@localhost]# cd mysql-4.1.20 [root@localhost]# ./configure --prefix=/usr/local/mysql [root@localhost]# make [root@localhost]# make install |
[root@localhost]# cd /usr/local/mysql/bin [root@localhost]# ./mysql_install_db |
[root@localhost]# groupadd mysql [root@localhost]# useradd -g mysql -s /bin/false mysql |
[root@localhost]# chown -R mysql.mysql /usr/local/mysql/var |
[root@localhost]# cd /usr/local/mysql/share/mysql [root@localhost]# cp -p my-medium.cnf /etc/my.cnf |
[root@localhost]# cd /usr/local/mysql/share/mysql [root@localhost]# cp -p mysql.server /etc/rc.d/init.d/mysqld [root@localhost]# chkconfig --add mysqld [root@localhost]# chkconfig --level 345 mysqld on |
[root@localhost]# /etc/rc.d/init.d/mysqld start |
[root@localhost]# /usr/local/mysql/bin/mysqladmin -u root password 'new-password' |
[root@localhost]# wget http://mirror.apache.or.kr/httpd/apache_1.3.36.tar.gz [root@localhost]# tar xfz apache_1.3.36.tar.gz [root@localhost]# cd apache_1.3.36 [root@localhost]# ./configure \ --prefix=/usr/local/apache \ --enable-module=so \ --enable-shared=max [root@localhost]# make [root@localhost]# make install |
[root@localhost]# cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd [root@localhost]# chkconfig --add httpd [root@localhost]# chkconfig --level 345 httpd on |
[root@localhost]# wget http://kr.php.net/distributions/php-4.4.2.tar.gz [root@localhost]# tar xfz php-4.4.2.tar.gz [root@localhost]# cd php-4.4.2 [root@localhost]# ./configure \ --prefix=/usr/local/php \ --with-apxs=/usr/local/apache/bin/apxs \ --with-mysql=/usr/local/mysql \ --enable-track-vars=yes \ --disable-debug [root@localhost]# make [root@localhost]# make install |
[root@localhost]# cp php.ini-dist /usr/local/php/php.ini |
[root@localhost]# vi /usr/local/apache/conf/httpd.conf ServerName foobar.com (도메인이 없을경우 IP로 대체) ... ... <IfModule mod_dir.c> DirectoryIndex index.htm index.html index.php3 index.php </IfModule> ... ... # AddType allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # AddType application/x-tar .tgz # PHP 4.x (위 .tgz 설정 아래에 이부분을 적어주시기 바랍니다. 기본설정에 없습니다.) AddType application/x-httpd-php .php .php3 .php4 .phtml .html .htm .inc .conf AddType application/x-httpd-php-source .phps |
[root@localhost]# /etc/rc.d/init.d/httpd start |
[root@localhost]# cd /usr/local/apache/htdocs [root@localhost]# vi phpinfo.php <? phpinfo(); ?> |
SSISO Community