doufuxi7093 2017-01-18 13:16
浏览 58

数字海洋LAMP堆栈无法正常工作

I created a Ubuntu 1GB/30GB Droplet with Ubuntu 16.10 x64 MYSQL: mysql Ver 14.14 Distrib 5.7.16, for Linux (x86_64) using EditLine wrapper APACHE VERSION: Apache/2.4.18 (Ubuntu) PHP: PHP 7.0.13-0ubuntu0.16.10.1 (cli) ( NTS )

Created SSH Login for SuperUser. Installed LAMP using,the following steps:

  1. sudo apt-get update
  2. sudo apt-get install tasksel
  3. sudo tasksel install lamp-server

I have no files in the /etc/apache2/ folder Tried installing with sudo apt-get install apache2 (says i already have newest version)

The index.html does not appear, just get "site cannot be reached"

Also when trying mysql -v i get a message "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)"

PHP is installed fine at PHP 7.0.13

I have been searching through various places, youbtube, digital ocean forums etc.. but no luck for a few days now.

checked memory and i have enough, there are no errors for memory shortages.

  • 写回答

1条回答 默认 最新

  • dpleylxzx47207117 2017-01-18 13:32
    关注

    why are you installing lampp when you are running Ubuntu server. just run this commands and you are good to go

    sudo apt-get update
    
    sudo apt-get install apache2
    
    sudo apt-get install php mysql-server mysql-client php5-mysql libapache2-mod-auth-mysql php-mbstring php5-gd libapache2-mod-php5
    

    it will install all necessary things to run php

    评论

报告相同问题?

悬赏问题

  • ¥15 请提供一个符合要求的网页链接。
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码