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

What are the configurations for the project release of Linux website?

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

Share

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

Linux website project release to do what to configure, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Publisher:

SFTP user name:

SFTP password:

TelNet user name:

TelNet password:

MySql version 5.0 and above

Php version 5.0 and above

Apache 2.0 and above

Binding domain name of master station: www.v-ec.com

Default home page: index.html

Set up php to resolve htm and html extensions

Blog binding domain name: www.w3cgroup.com

Default home page: index.php

Website directory structure:

V-ec (master station)

Upload: write permission

W3cgroup (blog)

Upload: write permission

Apache, Php and MySql settings

Httpd.conf configuration:

Linux path: / usr/local/apache/conf/httpd.conf

# ignore case

LoadModule speling_module modules/mod_speling.so

CheckSpelling On

# set the default home page

DirectoryIndex index.htm index.html index.php

# set files that can be parsed by php

AddType application/x-httpd-php .php

AddType application/x-httpd-php .htm

AddType application/x-httpd-php .html

# to set multiple domain name bindings, please change 192.168.11.11 to the real server IP

NameVirtualHost 192.168.11.11:80

# bind the main domain name www.v-ec.com, please change 192.168.11.11 to the real server IP

DocumentRoot / www/docs/v-ec

ServerName www.v-ec.com

ServerAlias www.v-ec.com

# ErrorLog logs/www.v-ec.com-error_log

# CustomLog logs/www.v-ec.com-access_log common

# bind blog domain name www.w3cgroup.com, please change 192.168.11.11 to real server IP

# ServerAdmin webmaster@mail.veriyou.com

DocumentRoot / www/docs/w3cgroup

ServerName www.w3cgroup.com

ServerAlias www.w3cgroup.com

# ErrorLog logs/www.w3cgroup.com-error_log

# CustomLog logs/www.w3cgroup.com-access_log common

Php.ini settings:

Linux path: / usr/local/Zend/etc/php.ini

; set the start short label mode

Short_open_tag = On

Enable error display, debug status is set to On, and official launch is set to Off

Display_errors = Off

; set the error reporting method

Error_reporting = E_ALL & ~ E_NOTICE

; enable gd library

Extension=php_gd2.dll

; enable mysql

Extension=php_mysql.dll

; set the time zone

Date.timezone = PRC

My.cnf (called my.ini under the windows system) setting:

Linux path: / etc/my.cnf

; default character

Default-character-set=utf8

Case-insensitive table and field names

Lower_case_table_names = 1

; the number of simultaneous connections allowed

Max_connections = 1024

Wait time before closing the connection

Wait_timeout = 7200

After reading the above, have you mastered the ways to configure the project release of Linux website? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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