environment
linuxAS4 2.6.9
1.Install mysql
Use version mysql5.1.22-rc.tar.gz
Copy the installation package to the /usr/local directory and execute the following command:
groupadd mysql useradd -g mysql mysql cd mysql scripts/mysql_install_db --user=mysql chown -R mysql:mysql . cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf cp /usr/local/mysql/support-files/mysql.server /etc/rc.d/init.d/mysqld chmod +x /etc/rc.d/init.d/mysqld ln -s /usr/local/mysql/bin/mysql /usr/sbin/mysql chkconfig --add mysqld
Start mysql
service mysqld start
Enter mysql
mysql
2.Install apache
Version httpd-2.0.61.tar.gz
./configure --prefix=/usr/local/apache --enable-module=so
make
make install
cd /usr/local/apache/bin
./apachectl start
If the gcc compilation tool is not installed, there will be a prompt during installation. Can be found on CD!
3.Install php
Version php-4.4.7.tar.gz
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/lib --enable-track -vars --with-xml --with-mysql=/usr/local/mysql --with-mbstring --enable-mbstring=all
make
make install
Note:
--with-apxs=dir Compile as an apache module
--with-config-file-path=dir The directory where php.ini is located
--enable-track-vars track variables
--with-xml xml support
--with-mysql=dir mysql support
[Cut-Page]4. Test mysql, php, apache
cp /php directory/php.ini-dist /usr/local/lib
cd /usr/local/lib
mv php.ini-dist php.ini
viphp.ini
Revise
register_globals=On
:wq
cd /usr/local/apache/conf
vi httpd.conf
Find DirectoryIndex index.html
Change to DirectoryIndex index.php index.html
FindOptions Indexes FollowSymLinks MultiViews
Change to Options FollowSymLinks MultiViews
Join where appropriate
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps :wq cd ../bin apachectl restart
Okay, let's test
cd /usr/local/apache/htdocs vitest.php phpinfo(); ?> :wq
Open IE and enter http://IP/test.php
If you can see the php test page, you're done!
Install ZEND
VersionZend Optimizer v3.0.gz
./install.sh
This is very simple. During the installation, you will be asked to specify the php.ini and apache/bin paths. Just adjust it yourself.
Then edit php.ini and change the optimization value from 15 to 1023 to enable all optimization threads. Join again
zend_optimizer.enable_loader=0
Turn off zend optimizer's transparent reading of zend encode's encryption code and save it. Restart apache.
Install phpmyadmin
Version phpMyAdmin v2.10.0.gz
After unzipping, copy it to the htdocs directory under apache.
When accessing, enter http://localhost/phpmyadmin/index.php
Install discuzz
Versiondiscuz6.0
a. Decompress first
b.Upload:
Use ftp to upload the decompressed file. Upload all files and directory structures in Discuz!6 and put them in a directory that can be accessed by web requests (I am using SSH Secure Shell Client)
c. Set directory permissions
Add 777 permissions to the following files
./templates ./templates/default ./templates/default/*.* ./attachments ./customavatar ./forumdata ./forumdata/cache ./forumdata/templates
d.Configure database information
Open config.inc.php in the upload file uploaded to the server
$dbhost = 'localhost'; // database server
// database server
$dbuser = 'dbuser'; // database username
//Database username
$dbpw = 'dbpw'; // database password
// Database password
$dbname = 'discuz'; // database name
// database name
$adminemail = [email protected]'">'[email protected]'; // admin email
// Forum system Email
$dbreport = 0; // send db error report? 1=yes
//Send database error report? 0=No, 1=Yes
Fill in the above information according to the actual situation
Note: The database does not need to be created in advance, it will be created automatically when installing the forum!
e. Execute the installation script
Enter http://yourdomain name/forum directory/install.php in the browser to complete the final installation.
After successful installation, please delete the installation script (install.php) to avoid being installed again. If you do not delete it, you will find that it cannot be set when you enter the forum backend.
Notice:
Generally, the failure to install normally is caused by the lack of compilation software! The above operations have been tested.
[Cut-Page]4. Test mysql, php, apache
cp /php directory/php.ini-dist /usr/local/lib
cd /usr/local/lib
mv php.ini-dist php.ini
viphp.ini
Revise
register_globals=On
:wq
cd /usr/local/apache/conf
vi httpd.conf
Find DirectoryIndex index.html
Change to DirectoryIndex index.php index.html
FindOptions Indexes FollowSymLinks MultiViews
Change to Options FollowSymLinks MultiViews
Join where appropriate
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps :wq cd ../bin apachectl restart
Okay, let's test
cd /usr/local/apache/htdocs vitest.php phpinfo(); ?> :wq
Open IE and enter http://IP/test.php
If you can see the php test page, you're done!
Install ZEND
VersionZend Optimizer v3.0.gz
./install.sh
This is very simple. During the installation, you will be asked to specify the php.ini and apache/bin paths. Just adjust it yourself.
Then edit php.ini and change the optimization value from 15 to 1023 to enable all optimization threads. Join again
zend_optimizer.enable_loader=0
Turn off zend optimizer's transparent reading of zend encode's encryption code and save it. Restart apache.
Install phpmyadmin
Version phpMyAdmin v2.10.0.gz
After unzipping, copy it to the htdocs directory under apache.
When accessing, enter http://localhost/phpmyadmin/index.php
Install discuzz
Versiondiscuz6.0
a. Decompress first
b.Upload:
Use ftp to upload the decompressed file. Upload all files and directory structures in Discuz!6 and put them in a directory that can be accessed by web requests (I am using SSH Secure Shell Client)
c. Set directory permissions
Add 777 permissions to the following files
./templates ./templates/default ./templates/default/*.* ./attachments ./customavatar ./forumdata ./forumdata/cache ./forumdata/templates
d.Configure database information
Open config.inc.php in the upload file uploaded to the server
$dbhost = 'localhost'; // database server
// database server
$dbuser = 'dbuser'; // database username
//Database username
$dbpw = 'dbpw'; // database password
// Database password
$dbname = 'discuz'; // database name
// database name
$adminemail = [email protected]'">'[email protected]'; // admin email
// Forum system Email
$dbreport = 0; // send db error report? 1=yes
//Send database error report? 0=No, 1=Yes
Fill in the above information according to the actual situation
Note: The database does not need to be created in advance, it will be created automatically when installing the forum!
e. Execute the installation script
Enter http://yourdomain name/forum directory/install.php in the browser to complete the final installation.
After successful installation, please delete the installation script (install.php) to avoid being installed again. If you do not delete it, you will find that it cannot be set when you enter the forum backend.
Notice:
Generally, the failure to install normally is caused by the lack of compilation software! The above operations have been tested.