LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-30-2016, 10:45 PM   #1
andymc3
LQ Newbie
 
Registered: May 2016
Posts: 1

Rep: Reputation: Disabled
Setting up DVWA with XAMPP


This could go in several categories, such as newbie or vitualization, but I think this is the best fit.

I have a virtual Ubuntu on VMware that I'm trying to set up XAMPP and DVWA on. I found several sets of instructions that essentially boil down to "copy the dvwa folder to htdocs in lampp, then go to localhost/dvwa in web browser."

It appeared to be working successfully (yes I made sure to start all of the XAMPP services), except that as I'm trying to follow a recorded online lecture, I could see that my screen and the instructor's did not match at all. I should see a page with the DVWA logo and prompts to log in and set up the database. What I do see is a page titled "Index of /dvwa" with all the contents listed (clicking on most or all causes a different error message to be displayed).

How did I mess up a simple copy and paste? Has anyone experienced this before or does anyone have any clue what to do? This is my first time using Linux or setting up a server, so I'm totally lost.
 
Old 06-01-2016, 12:04 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,294
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719
Quote:
Originally Posted by andymc3 View Post
I have a virtual Ubuntu on VMware ...
This is my first time using Linux or setting up a server, so I'm totally lost.
I'd rewind the VM to a snapshot prior to XAMPP, or just erase it, and then deploy a normal LAMP stack. XAMPP does everything in strange ways and puts things in strange places. By doing things the "Linux way" instead you gain the benefit of the package management system and the benefit of as good as all the guides or tutorials. It will also make it easier for others to help you since they expect files and directories to be in standard places and so on.

LAMP is what you will find out in the market.

It's also far easier to install. You will find a quick guide here: https://help.ubuntu.com/community/ApacheMySQLPHP

But the gist is:

Code:
sudo apt-get update;
sudo apt-get install lamp-server^
Yes, there is a caret in the package name. That will add what you need. Perl and Python are already there on your system.
 
1 members found this post helpful.
Old 06-01-2016, 12:22 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
I'd rewind the VM to a snapshot prior to XAMPP, or just erase it, and then deploy a normal LAMP stack. XAMPP does everything in strange ways and puts things in strange places. By doing things the "Linux way" instead you gain the benefit of the package management system and the benefit of as good as all the guides or tutorials. It will also make it easier for others to help you since they expect files and directories to be in standard places and so on.

LAMP is what you will find out in the market.

It's also far easier to install. You will find a quick guide here: https://help.ubuntu.com/community/ApacheMySQLPHP

But the gist is:

Code:
sudo apt-get update;
sudo apt-get install lamp-server^
Yes, there is a caret in the package name. That will add what you need. Perl and Python are already there on your system.
Excellent.
Also, Don't forget the "mysql root user" password if/when you are prompted to secure mysql/mariadb during the install of the LAMP Stack.
It will ask you twice for the same password.
This is NOT the system "root" password, or even your password (but it can be) but the privileged mysql "root user"

It can be as easy or difficult as you like, but I suggest using complex passwords from the very beginning.
Keep a log.

Up to you.

Last edited by Habitual; 06-01-2016 at 01:08 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
about the db in xampp byran cheung Linux - Newbie 5 04-28-2014 05:30 AM
XAMPP installation siawash Ubuntu 2 06-23-2012 05:50 PM
XAMPP 1.7.7 - XAMPP: Couldn't start MySQL sonic656 Linux - Software 2 10-09-2011 12:43 PM
Xampp kscallions Linux - Newbie 1 02-17-2008 09:14 PM
xampp charnel Programming 0 07-15-2005 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration