make
make install
echo "AddType application/x-httpd-php .php" >;>; /usr/local/apache/conf/httpd.conf
sed -i 's/"DirectoryIndex index.html index.html.var"/"DirectoryIndex index.htm index.html index.php index.html.var"/g' /usr/local/apache/conf/httpd.conf
/usr/local/apache/bin/apachectl -k start
# Apache2.0.x End
# PHP4.0.x Start
/bin/tar xzvf php-*.tar.gz
cd php-*
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --mandir=/usr/share/man --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php/etc
make
make install
/bin/cp php.ini-recommended /etc/php.ini
sed -i 's/"register_globals = Off"/"register_globals = On"/g' /etc/php.ini
/usr/local/apache/bin/apachectl -k restart
# PHP4.0.x End
评论加载中…
![]() |