Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Using lnmp to build discuz Forum

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Set up Discuz

The required software is LNMP Cenos6.5 nginx php php-fpm mysql php-mysql.

1.

Pay attention to installing nginx

1.wget online download nginx address: wget http://mirrors.sohu.com/nginx/nginx-1.8.1.tar.gz

two。 Decompress nginx package tar-zxvf nginx-1.8.1.tar.gz

3. Check the configuration file by performing. / configure in the / nginx-1.8.1 directory

4. If a prce zlib error is reported after checking the configuration file, yum install-y pcre-devel zlib-devel, execute. / configure again

5.make compilation

6.make install installation

7. Confirm whether nginx has successfully installed cd / usr/local/nginx/sbin. / nginx

8.netstat-ntlp to see if the default port number of nginx is 80

9.service nginx start failed. There is no nginx startup file under / etc/init.d, and nginx startup file under rz window.

10. Restart service nginx start

Nginx profile modification

1.vim / usr/local/nginx/conf/niginx.conf

two。 Pay attention to installing php

1.yum install-y php

two。 Check the php version: php-v

3. Confirm that php is installed successfully: create a new phpinfo.php and view it in the browser. You can open it to show that php has been installed successfully.

Install php configuration file path online: / etc/php.ini

3. Pay attention to installing php-fpm

1.yum install php-fpm

2.vim / etc/php-fpm.d/www.conf modifies php-fpm users and user groups to nginx

3.service php-fpm start

4.useradd nginx restart failure report failed to find uid nginx. You need to create a new nginx user.

4. Pay attention to installing mysql

1.rpm-qa | grep mysql to view the installed mysql

two。 Delete all mysql

3.yum install-y mysql mysql-server mysql-devel online installation

4.service mysqld start restart service

5.mysql-uroot-p enter into mysql

6.set password=password ("123456")

5. Pay attention to installing php-mysql

6. Pay attention to installing Discuz

1.cd / usr/local/nginx/html wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip

2.cp upload bbs chown-R nginx.nginx bbs assigns nginx users and nginx user groups to the bbs directory

3. Enter ip+/bbs in the browser

4. If it is prompted that there is no permission, the bbs directory subfile is not assigned a nginx user, and the user group is successful.

5. If you are prompted that mysql cannot connect, you can try to restart nginx,php-fpm,mysql.

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.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report