Lamp installation Steps
First, install the discuz!
1. Create a new directory to store Web pages, etc.
[[email protected] ~]# mkdir/data/www[[email protected] ~]# cd/data/www[[email protected] www]# wget http://download.com Senz.com/discuzx/3.2/discuz_x3.2_sc_gbk.zip
2. Unzip
[Email protected] www]# Unzip Discuz_x3.2_sc_gbk.zip
3.
[[email protected] www]# mv upload/* ./[[email protected] www]# lsadmin.php config data group.php member.php readme static uploadapi connect.php Discuz_X3.2_SC_GBK.zip home.php misc.php robots.txt template userapp.phpapi.php cp.php favicon.ico index.php plugin.php search.php uc_client utilityarchiver crossdomain.xml forum.php install portal.php source uc_server[[email protected] www]# rm -rf readme/ utility/ upload/ discuz_x3.2_sc_gbk.zip
4. Configure a virtual host
[Email protected] www]# vim/usr/local/apache2/conf/httpd.conf
# Include conf/extra/httpd-vhosts.conf//Find, open this virtual host configuration file as follows:
Include conf/extra/httpd-vhosts.conf
[Email protected] www]# vim/usr/local/apache2/conf/extra/httpd-vhosts.conf
Edit the virtual host profile, at the end of the file there are two template cases, delete one and then modify the other as:
<virtualhost *:80># serveradmin [ email protected] //Admin Mailbox, we can remove DocumentRoot "data/www " //to the previously created directory ServerName 101.200.206.213 Because I did not record the domain name to add IP ServerAlias multiple domain names # ErrorLog "logs/ Dummy-host.example.com-error_log " //error log # customlog " logs/ Dummy-host.example.com-access_log " common //Access log
Then open port 80.
[Email protected] www]# vim/usr/local/apache2/conf/httpd.conf
<directory/>
Options FollowSymLinks
AllowOverrideNone
Order Deny,allow
DenyFrom all
</Directory>
Switch
<directory/>
Options FollowSymLinks
AllowOverride All
Order Deny,allow
AllowFrom all
</Directory>
Save exit, detect the configuration is correct, and restart
[Email protected] www]#/usr/local/apache2/bin/apachectl-tsyntax ok[[email protected] www]#/usr/local/apache2/bin/ Apachectl restart
4. Configuring the Hosts File
Locate the Hosts file under native C:\Windows\System32\drivers\etc, and then save and exit after adding the following content.
101.200.206.213 guozhenshijia.cn
5, we enter the URL on the browser www.guozhenshijia.cn then will jump to discuz! Installation interface.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7F/8C/wKioL1ciLijjSlImAAE7axoz6dM678.png "title=" 99.png "alt=" Wkiol1cilijjslimaae7axoz6dm678.png "/>
We agree that after the installation we see how many are not writable, then we will give them permission.
First look at which identity the Apache process runs
[[email protected] www]# ps aux |grep httproot 1221 0.0 0.9 197396 9724 ? ss 23:04 0:00 /usr/local/apache2/bin/httpd -k s tartdaemon 1318 0.0 0.5 197396 5552 ? s 23:30 0:00 /usr/local/apache2/bin/httpd -k s tartdaemon 1319 0.0 0.7 198256 8024 ? s 23:30 0:00 /usr/local/apache2/bin/httpd -k s tartdaemon 1320 0.0 0.5 197396 5548 ? S 23:30 0:00 /usr/local/apache2/bin/httpd -k s tartdaemon 1321 0.0 0.7 198256 7916 ? s 23:30 0:00 /usr/local/apache2/bin/httpd -k s tartdaemon 1322 0.0 0.5 197396 5108 ? S 23:30 0:00 /usr/local/apache2/bin/httpd -k s tartdaemon 1323 0.0 0.5 197396 5108 ? s 23:31 0:00 /usr/local/apache2/bin/httpd -k s tartdaemon 1324 0.0 0.5 197396 5108 ? S 23:31 0:00 /usr/local/apache2/bin/httpd -k s tartdaemon 1325 0.0 0.7 198256 7904 ? S 23:31 0:00 /usr/local/apache2/bin/httpd -k s tartroot 1335 0.0 0.0 103248 872 pts/0 S+ 23:34 0:00 Grep http
We can see that it's daemon, and we're assigning all the files that don't have permission to daemon master.
[Email protected] www]# chown-r daemon config data uc_client/data uc_server/data
After the page has been refreshed, it's all turned green. The next step is a new installation.
6. Installing the database
Before we install the database, we also need to configure the database
[Email protected] www]#/usr/local/mysql/bin/mysql
mysql> create database discuz; & nbsp //Create a database with a database named Discuz
mysql> grant all on discuz.* to ' TPP ' @ ' localhost ' identified by ' tpplinux ';
nbsp //All rights, user TPP, password tpplinux
Then we go back to the original page, fill in the database name: discuz, database user name: TPP, Database password: tpplinux, other default; Admin admin password 123456, next; After the installation is complete, click "Your forum has been installed, click this Access" in the bottom right corner.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7F/8E/wKiom1ciLqqSIQ09AAE0SIJEwSM260.png "title=" 6666666666666.png "alt=" Wkiom1cilqqsiq09aae0sijewsm260.png "/>
This article is from "Linux rookie" blog, please be sure to keep this source http://490617581.blog.51cto.com/11186315/1768845
Lamp Installation (CentOS 64-bit) Installation discuz! Forum