加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_泰州站长网 (http://www.0523zz.com/)- 视觉智能、AI应用、CDN、行业物联网、智能数字人!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

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

发布时间:2022-01-11 02:17:32 所属栏目:MySql教程 来源:互联网
导读:这篇文章给大家分享的是有关apahce+mysql+php+gd+zend install的示例分析的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。 Install Mysql #tar zvxf mysql-4.1.15.tar.gz #mv mysql-4.1.15 mysql 安装Mysql。( #cd mysql #./
         这篇文章给大家分享的是有关apahce+mysql+php+gd+zend install的示例分析的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。
 
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给用户授权和增加用户
 
grant all on *.* to user@"hostip" identified by 'passwd' with grant option
 
flush privileges
 
关闭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 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
 
感谢各位的阅读!关于“apahce+mysql+php+gd+zend install的示例分析”这篇文章就分享到这里了。

(编辑:云计算网_泰州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读