歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> Linux資訊 >> 更多Linux

WEB開發之網站服務器端標准安裝指南

  網站服務器端標准安裝指南(v 0.1;Linux apache2 mysql PHP4)  Web Server standard install guide(v 0.1)    Install apache2 mysql php4 on linux    shell> groupadd mysql  shell> useradd -g mysql mysql  shell> gunzip < mysql-VERSION.tar.gz tar -xvf -  shell> cd mysql-VERSION  shell> ./configure --prefix=/usr/local/mysql  shell> make  shell> make install  shell> scripts/mysql_install_db  shell> chown -R root /usr/local/mysql  shell> chown -R mysql /usr/local/mysql/var  shell> chgrp -R mysql /usr/local/mysql  shell> cp support-files/my-medium.cnf /etc/my.cnf  shell> /usr/local/mysql/bin/safe_mysqld --user=mysql &  or  shell> /usr/local/mysql/bin/mysqld_safe --user=mysql &  啟動mysql服務    shell> groupadd nobody  shell> useradd -g nobody nobody  shell> gzip -d httpd-2_0_NN.tar.gz  shell> tar xvf httpd-2_0_NN.tar  shell> gunzip php-NN.tar.gz  shell> tar -xvf php-NN.tar  shell> cd httpd-2_0_NN  shell> ./configure --enable-so   shell> make    shell> cd ../php4-NN  shell> ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs  shell> make  shell> make install  shell> cp php.ini-dist /usr/local/lib/php.ini  編輯php.ini適合您的使用,可以在php的configure配置命令中加上--with-config-file-path=/path參數指定php.ini存放的位置.    shell> 編輯httpd.conf  如果裡面沒有,加入:  LoadModule php4_module modules/libphp4.so  AddType application/x-httpd-php .php    shell> /usr/local/apache2/bin/apachectl start  啟動apachectl服務.




Copyright © Linux教程網 All Rights Reserved