Ubuntu下LAMP配置文件路径

运维 系统运维
Ubuntu下LAMP配置文件路径:LAMP的配置不仅仅需要的是一系列的命令符号,还有最基本的配置路径,否则LAMP的相关配置无从谈起,本文就此指出LAMP下各个程序的配置文件路径

  Ubuntu LAMP 的配置文件路径

  配置文件路径:

  1>apache 的配置文件路径 /etc/apache2/apache2.conf

  2>apache 网站字符编码配置路径 /etc/apache2/conf.d/charset

  3>php.ini 路径 /etc/php5/apache2/php.ini

  4>mysql配置文件 路径 /etc/mysql/my.cnf 一般不要使用,尤其是新手

  5>phpmyadmin配置文件路径 /etc/phpmyadmin/apache.conf

  6>默认网站根目录路径 /var/www

  常用命令:

  1.重启apache

  1.   sudo /etc/init.d/apache2 restart  
  2.  
  3.   sudo /etc/init.d/apache2 restart  
  4.  

  2.重启mysql

  1.   sudo /etc/init.d/mysql restart  

  以上就是Ubuntu下LAMP配置文件路径和基本的操作命令。大家看懂了没呢?

【编辑推荐】

  1. Ubuntu server上搭建LAMP:安装apache和mysql
  2. Ubuntu server上搭建LAMP:MySQL的配置和使用
  3. Ubuntu server上搭建LAMP:apache的配置和使用
责任编辑:zhaolei 来源: javaeye
相关推荐

2011-03-09 15:13:00

UbuntuLAMP配置

2011-03-11 10:27:45

UbuntuLAMP配置

2011-03-14 11:29:43

2011-03-09 15:25:36

UbuntuLAMPPHPadmin

2011-03-14 13:07:23

Ubuntu安装LAMP

2010-01-08 13:54:33

Ubuntu vimr

2010-01-07 17:16:19

Ubuntu MySQ

2010-01-08 17:32:11

Ubuntu samb

2011-03-10 08:59:04

Ubuntu安装LAMP

2011-03-10 10:09:09

UbuntuLAMP搭建

2011-03-09 15:44:14

UbuntuLAMP

2011-03-11 16:42:38

Ubuntu安装LAMP

2011-03-22 12:53:35

UbuntuLAMPApache

2010-01-08 16:55:04

Ubuntu vim

2010-01-04 10:28:47

Ubuntu Apac

2011-03-21 16:37:57

2011-03-08 10:35:23

2010-02-05 09:31:23

Ubuntu 配置文件

2011-03-21 16:21:21

ubuntulamp

2011-03-22 10:25:54

UbuntuLAMP
点赞
收藏

51CTO技术栈公众号