溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

apahce+mysql+php+gd+zend install的示例分析

發(fā)布時(shí)間:2021-11-01 10:33:56 來(lái)源:億速云 閱讀:117 作者:小新 欄目:MySQL數(shù)據(jù)庫(kù)

這篇文章給大家分享的是有關(guān)apahce+mysql+php+gd+zend install的示例分析的內(nèi)容。小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過(guò)來(lái)看看吧。

Install Mysql

#tar zvxf mysql-4.1.15.tar.gz

#mv mysql-4.1.15 mysql
安裝Mysql。(
#cd mysql
#./configure --prefix=/data/mysql --with-charset=gbk
      
#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 var
#chgrp -R mysql .
#bin/mysqld_safe --user=mysql &

mysql給用戶授權(quán)和增加用戶

grant all on *.* to user@"hostip" identified by 'passwd' with grant option

flush privileges

關(guān)閉MYSQL

/data/mysql/bin/mysqladmin -u root shutdown

修改mysql用戶密碼

mysql >use mysql;
mysql> update user set password=password('passwwd') where user='root';
mysql> flush privileges;

Install apache

1.tar zxvf httpd-2.0.50.tar.gz
2.cd httpd-2.0.50
3. ./configure --prefix=/data/apache --enable-module=so
4. make
5. make install

install jpeg
1.tar zxvf jpegsrc.v6b.tar.gz
2. cd jpeg-6b
3. ./configure
4. make
5. mkdir -p /usr/local/man/man1
6. make install
7. make install-lib

install TTF
1. tar zxvf freetype-2.1.9.tar.gz
2. ./configure
3.make
4.make install

install PNG
1. tar zxvf libpng-1.2.5.tar.gz
2. cp scripts/makefile.gcmmx makefile
3.make
4. make install

install GD

1.tar zxvf gd-2.0.28.tar.gz
2. ./configure
3.make
4. make install
5. cp gd.h /usr/local/lib/

install XML
1.tar zxvf libxml2-2.6.11.tar.gz (必須這個(gè)版本以上)
2. ./configure
3. make
4. make install


install php5

1.tar zxvf php-5.0.1.tar.gz
2../configure --prefix=/data/php --with-apxs2=/data/apache/bin/apxs
--with-gd --with-jpeg-dir --with-ttf --with-zlib-dir --with-png-dir
--with-mysql=/data/mysql --enable-track-vars
3. make
4. make test
5. make install
6. libtool --finish /data/php
7. chmod 755 /data/apache/modules/libphp5.so
8. cp php.ini-dist /data/php/lib/php.ini


install Zend
1. tar zxvf ZendOptimizer-2.5.3-linux-glibc21-i386.tar.gz
2. cd ZendOptimizer-2.5.3-linux-glibc21
3. install.sh
please issue the dir of php.ini and apache base dir .


modify httpd.conf

add list

vi /data/apache/conf/httpd.conf

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

LoadModule php5_module modules/libphp5.so (system have install automatic)

DirectoryIndex index.php index.html index.htm .var


testing php work

vi info.php


php edit tool !

phpexpert

感謝各位的閱讀!關(guān)于“apahce+mysql+php+gd+zend install的示例分析”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI