Ubuntu安装LAMP环境(PHP5.6) 以及下载安装phpmyadmin

参考路径:

http://blog.nciaer.com/?p=133

修改apache(2.4.18)的web路径时,

需要将 /etc/apache2/sites-available/000default.config

和   /etc/apache2/apache2.conf 中的/var/www/html 改成相应路径即可

安装phpmyadmin的方法:

1 先去官网下载phpmyadmin的压缩包

2. 解压后一般放到web目录下,然后找到phpmyadmin的libraries文件夹,找到config.default.php文件,进行一些配置文件的更改即可完成安装。

参考路径:

http://www.jb51.net/os/RedHat/1078.html

安装完成后打开phpmyadmin可能会报错,提示找不到升php_mbstring;

执行命令 # apt-get install php5.6(可替换版本)-mbstring

搞定后重启apache即可

最近买个试用的服务器,上面装的是ubuntu14.04的系统,装lamp老是遇见一些问题.

ubuntu 14.04 apache 重启报 Could not reliably determine 

系统:linux14.04
服务:apache2
重启服务时报
 * Restarting web server apache2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

解决方案:
cd /etc/apache2/sites-enabled
sudo vi 000-default.conf

打开default文件后,在default文件顶端加入:

ServerName 127.0.0.1

重启apache2 (sudo /etc/init.d/apache2 restart)就不会提示上述错误了。

还有就是刚装完apache,报找不到host的错误,

解决方法: vim /etc/hosts, 把127.0.0.1 ubuntu 的ubuntu改成你的系统名称.

原文地址:https://www.cnblogs.com/zhqBlog/p/6391771.html