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

How to build ShowDoc in centos7

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

Share

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

In this issue, the editor will bring you about how to build ShowDoc in centos7. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

1 、 nginx

Yum install-y epel-release

Yum install-y nginx

Cp / etc/nginx/nginx.conf / etc/nginx/nginx.conf.bak

# modify nginx configuration file

Vim / etc/nginx/nginx.conf

38 server {

39 listen 80 default_server

40 listen [::]: 80 default_server

41 server_name _

42 root / var/www/html

43 index index.php index.html

forty-four

45 # Load configuration files for the default server block.

46 include / etc/nginx/default.d/*.conf

forty-seven

48 location / {

49}

fifty

51 error_page 404 / 404.html

52 location = / 40x.html {

53}

fifty-four

55 error_page 500 502 503 504 / 50x.html

56 location = / 50x.html {

57}

58 location ~ .php ${

59 root / var/www/html

60 fastcgi_pass 127.0.0.1:9000

61 fastcgi_index index.php

62 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name

63 include fastcgi_params

64}

65 location ~ / .ht {

66 deny all

67}

68}

Systemctl start nginx

Systemctl enable nginx

2 、 PHP

Yum install-y php php-gd php-fpm php-mcrypt php-mbstring php-mysql php-pdo

Systemctl start php-fpm

Systemctl enable php-fpm

# download and install the dependency management tool for PHP, Composer

Curl-sS https://getcomposer.org/installer | php

Cp composer.phar / usr/local/bin/composer

Composer config-g repo.packagist composer https://packagist.phpcomposer.com

Cd / var/www/html

Composer create-project showdoc/showdoc

Chmod Aguilw showdoc/install

Chmod Aguilw showdoc/Sqlite

Chmod Aguilw showdoc/Sqlite/showdoc.db.php

Chmod Aguilw showdoc/Public/Uploads/

Chmod Aguilw showdoc/Application/Runtime/

Chmod Aguilw showdoc/server/Application/Runtime

Chmod Aguilw showdoc/Application/Common/Conf/config.php

Chmod Aguilw showdoc/Application/Home/Conf/config.php

3. Visit

Http://host-ip/showdoc/install

4. Prohibition of registration

Cp / var/www/html/showdoc/server/Application/Api/Controller/UserController.class.php {, .bak}

Vim / var/www/html/showdoc/server/Application/Api/Controller/UserController.class.php

7 / / Registration

8 public function register () {

9$ this- > sendError (10101 dagger no register')

10 return

The above is how to build ShowDoc in the centos7 shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

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

Servers

Wechat

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

12
Report