Linux配置LMAP环境

LMAP
yum install mysql*
yum install php*
yum install httpd
yum install php-mbstring php-gd
 
修改 /etc/php.ini加入
extension=php_mbstring.so
extension=php_gd.so
 
修改 /etc/httpd/conf/httpd.conf,单主机多域名
NameVirtualHost 10.132.1.42
<VirtualHost 10.132.1.42>
DocumentRoot /123
ServerName www.wahaha1.com
</VirtualHost>
<VirtualHost 10.132.1.42>
DocumentRoot /234
ServerName www.wahaha2.com
</VirtualHost>
 
 
检查 php环境
创建 php.php
<?php
Phpinfo();
?>
 
修改数据库 密码 访问
Mysql �Cu root �Cp
mysql>create database xxx;
mysql>grant all privileges on xxx.* to user@localhost identified by ‘ 123456’ ;
mysql>grant all privileges on xxx.* to user@IP identified by ‘ 123456’ ;
 
\q
 

你可能感兴趣的:(linux,配置,环境,lmap)