Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-01 08:06:24 10月29日 Update

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!

Tags: Domain name server service website configuration blog version path home page project publication content size password method more permissions user name error Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Redmi Shulou Technology Shulou Tech Info Microsoft