When I started playing Linux, I tried the discuz Forum environment. I felt so tired, but it was so nice.
For personal installation process, refer to: Nanu's
Http://www.discuz.net/thread-209728-1-1.html content too. Thanks to Nanu, please forgive me for plagiarism
I am a cainiao, so I have encountered many problems. You may not use them, but some people will need them.
######################################## ###############
Preparation Procedure:
Apache-2.2.4
: Http://www.ititgo.com/news_view.asp? Newsid= 622
PHP-4.4.7
: Http://www.ititgo.com/news_view.asp? Newsid= 623
MySQL-5.1.7-0
: Http://www.ititgo.com/news_view.asp? Newsid= 624
Zend optimizer v2.6.0
: Http://www.ititgo.com/news_view.asp? Newsid= 625
PhpMyAdmin-2.7.0-pl2
: Http://www.ititgo.com/news_view.asp? Newsid= 626
Zlib-1.1.4
: Http://www.ititgo.com/news_view.asp? Newsid= 628
Libpng-1.2.5
: Http://www.ititgo.com/news_view.asp? Newsid= 629
Freetype-2.1.9
: Http://www.ititgo.com/news_view.asp? Newsid= 630
Using SRC. v6b
: Http://www.ititgo.com/news_view.asp? Newsid= 627
Gd-2.0.33
: Http://www.ititgo.com/news_view.asp? Newsid= 631
Preparations
Check the GD environment. If the system already comes with it, you do not need to install it. However, if the system prompts that a component cannot be found in the subsequent installation, for example, if PNG is not supported, it indicates that libpng has not been installed successfully, we recommend that you uninstall libpng and reinstall the source code. for common faults in the installation tutorial, see !)
# Rpm-Qa | grep zlib
# Rpm-Qa | grep libpng
# Rpm-Qa | grep FreeType
# Rpm-Qa | grep JPEG
# Rpm-Qa | grep GD
If the following software is not installed, perform the following installation:
(1) install zlib
# Tar zxvf zlib -...
# Cd zlib...
#./Configure
# Make
# Make install
(2) install libpng
# Tar zxvf libpng...
# Cd libpng -...
# Cd scripts/
# Mv
Makefile. Linux ../makefile
# CD ..
# Make
# Make install
Note that the makefile here is not generated using./configure, but copied directly from scripts.
(3) install FreeType
# Tar zxvf FreeType -...
# Cd FreeType -...
#./Configure -... Perform the following steps)
# Make
# Make install
(4) install JPEG
# Tar zxvf restart src.v6b.tar.gz
# Cd jpeg-6b/
#./Configure -- enable-shared
# Make
# Make Test
# Make install
Note: Here, configure must include the -- enable-shared parameter. Otherwise, the shared library will not be generated.
(5) install GD
# Tar zxvf Gd -...
# Cd Gd -...
#./Configure -- With-PNG -- With-FreeType -- With-JPEG
# Make install
### FAQs during installation ###
Install and configure MySQL
Check whether the system is installed
# Rpm-Qa | grep MySQL and # rpm-Qa | grep MySQL
If the information headers with MySQL or MySQL are not returned, it indicates that it is not installed. If it has been installed, you can directly use or change the new version. For FAQs, see.
Uninstall method:
# Rpm-e mysql-xxxxxx
You can use -- nodeps or-force to forcibly Uninstall a dependency. However, it is best to use it with caution.
Installation:
# Rpm-IVH mysql-client -.... Rpm
# Rpm-IVH mysql-server -.... Rpm
For FAQs, see.
Start MySQL
#/Etc/rc. d/init. d/MySQL start or service MySQL start
Set the root password:
# Mysqladmin-u Root Password new_password_for_root
Create a MySQL database, username, and password.
Mysql-u root-P press enter to enter MySQL
Grant permission on role name. Table name to new role name @ host name identified by 'password secret ';
Create Database zoneidc; (database creation)
Grant all on zoneidc. * To zoneidc @ localhost identified by 'zoneid ';
Show databases;
Note that each sentence is followed by)
Then fill in the corresponding configuration file in discuz.
Install and configure Apache
# Tar xzvf httpd -.....
# Cd httpd-2 .....
#./Configure -- prefix =/usr/local/Apache -- enable-So (prefix =/usr/local/Apache specifies the installation path)
# Make
# Make install
Configure Apache:
# Vi/usr/local/Apache/CONF/httpd. conf (if it comes with the system, the path may be under/etc)
Serveradmin changes this to the server administrator's e-mail address (for example, webmaster@yourdomain.com)
Change servername to the server domain name (for example, www.ititgo.com: 80)
Change DocumentRoot to the root directory of your website (for example, "/var/www ")
Install and configure PHP
# Tar xzvf php-4.4.1.tar.gz
# Cd php-4.4.1
#. /Configure -- prefix =/usr/local/PHP -- with-apxs2 =/usr/local/Apache/bin/apxs -- With-mysql -- With-config-file-Path =/usr/ local/PHP/etc -- With-Gd -- enable-Gd-native-TTF -- enable-Gd-JIS-Conv -- With-FreeType-dir -- With-JPEG-dir --- PNG-dir -- With-zlib -- enable-XML -- enable-mbstring
# Make
# Make install
# Cp PHP. ini-recommend/usr/local/PHP/etc/PHP. ini
(If you're using a php-5... The MySQL database path is not found, so we recommend that you use version 4)
Edit the httpd. conf file:
# Vi/usr/local/Apache/CONF/httpd. conf (if it comes with the system, the path may be under/etc)
Find: directoryindex
Add index. php to the default file.
Find addtype application/X-gzip. GZ. tgz.
Add a line below: addtype application/X-httpd-PHP. php (note that there is a space before. php)
Save and exit
Install Zend Optimizer
# Tar xzvf Zend *. GZ
# Cd Zend *
#./Install. Sh
The premise is that PHP is successfully installed. The installation process is simple and friendly. The path to the php. ini file must be entered correctly. You can use find/-name PHP. ini to search for the PHP Probe:
Zend optimizer v2.6.0 and copyright (c) indicate that the installation is successful.
Install and configure phpMyAdmin
# Tar xzvf phpMyAdmin-2.7.0 -...
Move the extracted directory to the root directory of the server website (set the root directory of the website to/var/www)
# Music phpMyAdmin-2.7.0-pl1/var/www/phpMyAdmin
Configure phpMyAdmin:
# Cd/var/www/phpMyAdmin
# Vi config. Inc. php (some versions are config. Default. php)
Modify:
$ Cfg ['pmaabsoluteuri '] = 'HTTP: // www.yourdomain.com/phpmyadmin'; (write the absolute URL for accessing phpMyAdmin)
$ Cfg ['blowfish _ secret'] = 'cookies'; (use cookie encryption)
$ Cfg ['servers'] [$ I] ['connect _ type'] = 'socket'; (connect to MySQL through socket)
$ Cfg ['servers'] [$ I] ['compus'] = true; (enable compression to increase the speed. If the access is abnormal, change it to false)
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'cookies'; (use cookies for authentication)
############## Attached. frequently asked questions during the installation process. I may have a few questions, so I have encountered many problems ##############
Unable to compile.
Install the GCC compiler first.
/////////////////////////////
Prompt when extracting with tar:
Tar: Unexpected EOF in archive
Tar: Unexpected EOF in archive
Tar: error is not recoverable: exiting now
Cause: the source code package is damaged during download.
/////////////////////////////////
How to start Apache?
/Usr/local/Apache/bin/apachectl start (depending on the installation path)
/////////////////////////////////
If you use the RPM package to install Apache, the following error message may appear: (98 )!!!!!!!!!!!! : Make_sock: cocould not bind to address 0.0.0.0: 443?
Maybe you have already opened the HTTPd service, right?
Chkconfig -- level 35 httpd off
/Etc/rc. d/init. d/httpd stop
Then in apachectl start
////////////////////////////////////
Sometimes you are prompted to install kernel-headers during the installation process
For the RedHat system, find glibc-kernheaders-… on the disc -... Rpm installation.
///////////////////////////////////
Config. Inc. php not found
Some versions are the same as config. Default. php.
///////////////////////////
If: libtcl8.3.so is needed...
RedHat system, install the tcl-8.3.5-88.i386.rpm version.
/////////////////////
If the message "libmysqlclient. so.10" is displayed
Download and install the mysql-shared version at the top.
/////////////////////////////////
What does mysqld mean?
MySQL daemon!
You must use MySQL before using MySQL.
/////////////////////////////////
If you are prompted to install kernel-headers
RedHat system install: glibc-kernheaders-2.4-8.10.i386.rpm version
////////////////////////////////
Tip: Error 1045: Access denied for user: root @ localhost (using password: No)
Reference: http://www.ititgo.com/news_view.asp? Newsid= 598
//////////////////////////////////
Apache cannot display Chinese characters (garbled characters)
The adddefadefacharset ISO-8859-1 is changed to adddefadefacharset off in the httpd. conf configuration file of Apache.
///////////////////////////////////
When installing the forum, the following message is displayed: the MySQL database is not supported. If you cannot install the Forum program or phpMyAdmin, the following message is displayed: Why ?? Busy busy MySQL? Why ?? <Br/> Why? Why does PHP already have-enabled ??
Install the corresponding PHP-mysql version.
//////////////////////////////////
An error occurred while using the database:
Error 1064: You have an error in your SQL syntax.
Cause: syntax error. Note the case sensitivity of SQL syntax and add the; sign at the end.
/////////////////////////////////
During installation, the following message is displayed:/usr/bin/install: The general file '/usr/local/man/Man1/c0000.1' cannot be created: the file or directory does not exist.
Create a new Man1. Note that it is followed by a number 1.
//////////////////////////////////
Tip: PNG. h: 329: 18: zlib. h: the file or directory does not exist.
Zlib-devel-1.1.4-8.i386.rpm Not Installed
/////////////////////////
An error occurred while installing libjpeg. (A | so) not found.
Please ensure that the installation of unzip src.v6b.tar.gz and libpng-1.2.8-config.tar.gz may not be successful, if the system comes with RPM installation, please uninstall, follow the above method to install the source code.
//////////////////////////////////////// /////
After logging on to phpMyAdmin, the system prompts:
No extension settings for PHP are found, but the current system seems to be using the wide character set. PhpMyAdmin without mbstring Extensions cannot correctly identify strings and may produce unexpected results
The reason is that when the source code is installed, no -- enable-mbstring is used or the RPM package or the system comes with it. (what is the impact? Thank you)
/////////////////////////////////////
It works!
The installation is successful. In some versions, the history page is displayed, indicating that the file is successfully installed.
//////////////////////////////////////// /////////
Multiple databases are found: information_schema
See: http://www.ititgo.com/news_view.asp? Newsid= 620
======================================
What's the problem with the big birds? post it to everyone to study it together...