当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > Linux 网站项目发布要做哪些配置

Unix/Linux
Linux 网管 123 --- 第6章. 一般系统管理问题 -3.变更使用者密码
Linux 网管 123 --- 第6章. 一般系统管理问题 -4.关闭删除使用者帐号
Linux 网管 123 --- 第6章. 一般系统管理问题 -5.Linux 密码及 S
Linux 网管 123 --- 第6章. 一般系统管理问题 -6.关闭系统及重新启动
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -1.HTTP
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -2.DNS
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -3.使用 TACACS
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -4.使用 Samba
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -5.使用 Netata
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -6.NFS
Linux 网管 123 --- 第13章. 其他的问题 2.哪里可以找到帮助
Linux 网管 123 --- 第13章. 其他的问题 3.附带文件的指示
RedHat 6.2 中文显示与输入的设置
RedHat 6.2 中文 TrueType 字体的使用
Linux 网管 123 --- 第13章. 其他的问题 1.系统损毁
Linux系统中网络配置详解
如何配置linux与win2000/NT 双重引导
kernel hacking简单入门
Linux下如何刻录任何文件系统格式的光盘?
编译内核make dep 是啥意思 ?

Unix/Linux 中的 Linux 网站项目发布要做哪些配置


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-16   浏览: 133 ::
收藏到网摘: n/a

发布服务器:
SFTP用户名:
SFTP密码:
TelNet用户名:
TelNet密码:
MySql 5.0及以上版本
Php 5.0及以上版本
Apache 2.0及以上版本
主站绑定域名:www.v-ec.com
默认首页:index.html
设置php解析htm和html扩展名
博客绑定域名:www.w3cgroup.com
默认首页:index.php
网站目录结构:
v-ec(主站)
upload: 写权限
w3cgroup(博客)
upload: 写权限
Apache、Php及MySql设置
httpd.conf配置:
Linux路径:/usr/local/apache/conf/httpd.conf
#忽略大小写
LoadModule speling_module modules/mod_speling.so
CheckSpelling On
#设置默认首页
DirectoryIndex index.htm index.html index.php
#设置php能解析的文件
AddType application/x-httpd-php .php
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
#设置多域名绑定,请将192.168.11.11更改为真实服务器IP
NameVirtualHost 192.168.11.11:80
#绑定主域名www.v-ec.com,请将192.168.11.11更改为真实服务器IP
<VirtualHost 192.168.11.11:80>
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
</VirtualHost>
#绑定博客域名www.w3cgroup.com,请将192.168.11.11更改为真实服务器IP
<VirtualHost 192.168.11.11:80>
# ServerAdmin [email protected]
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
</VirtualHost>
php.ini设置:
Linux路径:/usr/local/Zend/etc/php.ini
;设置开始短标签模式
short_open_tag = On
;开启显示错误,调试状态设置为On,正式上线设置为Off
display_errors = Off
;设置错误报告方式
error_reporting = E_ALL & ~E_NOTICE
;启用gd库
extension=php_gd2.dll
;启用mysql
extension=php_mysql.dll
;设置时区
date.timezone = PRC



my.cnf(windows系统下名为my.ini)设置:
Linux路径:/etc/my.cnf
;默认字符
default-character-set=utf8
;表名、字段名的不区分大小写
lower_case_table_names = 1
;允许同时连接的数量
max_connections = 1024
;关闭连接前的等待时间
wait_timeout = 7200