LAMP

本文介绍如何解决Apache索引显示乱码的问题,并通过配置httpd.conf文件中的IndexOptions Charset参数来设置正确的字符集。此外,还介绍了Mysql字符集配置的方法,包括修改my.cnf文件中的default-character-set参数。

.Apache 索引乱码

.

.      sudo kate /usr/local/apache2/conf/httpd.conf     IndexOptions Charset = utf-8

.      对应的浏览器也应使用utf8才会解码正常,FF,Opera默认OK,IE需手动调为UTF-8解码模式(页面击右键->编码...)

.

.Apache 索引目录配置

.

.      http://blog.youkuaiyun.com/microtong/archive/2009/10/16/4683914.aspx

.

.

.

.

.Mysql 中文乱码

.

.       /etc/mysql/my.cnf

.

.

.

.

.

 




Creative Commons License
本作品采用知识共享署名-非商业性使用-相同方式共享 2.5 中国大陆许可协议 进行许可。

03-08
### LAMP Stack Information #### Definition of LAMP Stack The term **LAMP** stands for Linux, Apache, MySQL (or MariaDB), and PHP. This combination forms a powerful platform for developing dynamic websites and applications[^2]. #### Components Overview - **Linux**: The operating system layer which provides the foundation on which all other components run. - **Apache HTTP Server**: A robust, commercial-grade, featureful, and freely-available source code implementation of an HTTP (Web) server. After setting up, one can verify successful installation by accessing `http://<Your_IP_Address>/` through any web browser[^4]. - **MySQL or MariaDB Database Management System**: Used as the database management component responsible for managing data storage and retrieval. - **PHP Scripting Language**: An open-source general-purpose scripting language particularly suitable for web development due to its ability to be embedded within HTML. For enhancing functionality like handling URLs via network protocols, enabling specific modules such as cURL might become necessary; this requires modification in the configuration file (`php.ini`) followed by restarting the Apache service using commands similar to `sudo systemctl restart apache2`[^3]. #### Configuration Steps Post Installation Once these elements are properly configured together forming what's known as a 'stack', further steps involve configuring virtual hosts under Apache settings so that directories intended for hosting sites' contents get correctly mapped out ensuring optimal performance when serving pages over HTTP requests made against those locations specified during setup procedures[^1]. ```bash # Restart Apache Service Command Example sudo systemctl restart apache2 ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值