简体   繁体   English

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

[英]Digital Ocean LAMP stack not working

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 ) 我创建了一个Ubuntu 1GB / 30GB Droplet with Ubuntu 16.10 x64 MYSQL:mysql Ver 14.14 Distrib 5.7.16,for Linux(x86_64)使用EditLine包装器APACHE VERSION:Apache / 2.4.18(Ubuntu)PHP:PHP 7.0.13-0ubuntu0。 16.10.1(cli)(NTS)

Created SSH Login for SuperUser. 为SuperUser创建SSH登录。 Installed LAMP using,the following steps: 安装LAMP使用,步骤如下:

  1. sudo apt-get update sudo apt-get update
  2. sudo apt-get install tasksel sudo apt-get install tasksel
  3. sudo tasksel install lamp-server sudo tasksel安装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) 我在/ etc / apache2 /文件夹中没有文件尝试使用sudo apt-get install apache2安装(说我已经有了最新版本)

The index.html does not appear, just get "site cannot be reached" index.html没有出现,只是得到“网站无法到达”

Also when trying mysql -vi get a message "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)" 此外,当尝试mysql -vi时收到消息“ERROR 1045(28000):拒绝用户'root'@'localhost'(使用密码:NO)”

PHP is installed fine at PHP 7.0.13 PHP安装在PHP 7.0.13上

I have been searching through various places, youbtube, digital ocean forums etc.. but no luck for a few days now. 我一直在搜索各个地方,youbtube,数字海洋论坛等..但现在几天没有运气。

checked memory and i have enough, there are no errors for memory shortages. 检查内存,我有足够的,内存短缺没有错误。

why are you installing lampp when you are running Ubuntu server. 为什么在运行Ubuntu服务器时安装lampp。 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 它将安装所有必要的东西来运行PHP

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM