In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article shares with you the content of the sample analysis of apahce+mysql+php+gd+zend install. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Install Mysql
# tar zvxf mysql-4.1.15.tar.gz
# mv mysql-4.1.15 mysql
Install 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 authorizes and adds users to users
Grant all on *. * to user@ "hostip" identified by 'passwd' with grant option
Flush privileges
Close MYSQL
/ data/mysql/bin/mysqladmin-u root shutdown
Modify mysql user password
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 (must be above this version)
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
Thank you for reading! This is the end of this article on "sample Analysis of apahce+mysql+php+gd+zend install". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.