LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2016, 05:32 AM   #1
e_prog
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Rep: Reputation: Disabled
Web site from Linux virtual machine in Browser


Hi guys,

I have a ssh with an ip address and port, it's a linux based web server running on a virtual machine. There is a fully working web site on the server. I have root acces to the server. Since the site is running Drupal , is there a way to see the site in my browser, since I need the admin panel of Drupal to do stuff ?

Thanks
 
Old 06-17-2016, 06:15 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,648

Rep: Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568
Yes, you can.
What have you tried?
 
Old 06-17-2016, 06:46 AM   #3
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,158
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Quote:
Originally Posted by e_prog View Post
Hi guys,

I have a ssh with an ip address and port, it's a linux based web server running on a virtual machine.
How did you access this "fully working web site" ?
http://ip_add_ress or http://domain.com ?
or https too, duh.
 
Old 06-17-2016, 07:50 AM   #4
e_prog
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
Yes, you can.
What have you tried?
Well nothing yet. I've been searching for a soution but couldn't find one.

Quote:
How did you access this "fully working web site" ?
http://ip_add_ress or http://domain.com ?
or https too, duh.
I have a ssh like this:

www2.some-web-site.com:6578

When I type that in the url without the port number, I dont get anything.

Thanks for the replys guys, appreciate the help.
 
Old 06-17-2016, 10:59 AM   #5
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,158
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
6578 would be the ssh port.
apache (web) usually is port 80
Your VirtualMachine's "web site" will have to be access by http://192.168.1.x

Replacing 192.168.1.x with the IP of the Virtual Machine. No port number necessary.

Do you know how to get the IP of the VirtualMachine?
 
Old 06-17-2016, 11:19 AM   #6
e_prog
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
6578 would be the ssh port.
apache (web) usually is port 80
Your VirtualMachine's "web site" will have to be access by http://192.168.1.x

Replacing 192.168.1.x with the IP of the Virtual Machine. No port number necessary.

Do you know how to get the IP of the VirtualMachine?
I did ip addr show, and got the ip address of the server.

Thanks
 
Old 06-17-2016, 11:25 AM   #7
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,158
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
You're welcome.
So you made progress then?
 
Old 06-17-2016, 11:49 AM   #8
e_prog
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
You're welcome.
So you made progress then?
It seems to be the correct way. Now I have some apache2 errors, can't get it to start.

I updated Debian from Wheezy to Jessie and since then i can't get it to run. Still trying to figure out whats causing the problems.

Quote:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration.
 
Old 06-17-2016, 12:12 PM   #9
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,158
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Check the last apache2 file you edited for a misspelled "Order"
Code:
apache2ctl -S
will show you what conf files are being used for your web server.
One of those has a mis-spelled "Order" in it.
If not there, then an .htaccess file in /var/www/html/ or similar.
Examples:
Code:
<files wp-config.php>
        Order allow,deny
        Deny from all
</files>
### Mar. 25th, 2015
<files xmlrpc.php>
        Order allow,deny
        Deny from all
</files>
Fix the typo and restart apache2.
Re-Check.

Last edited by Habitual; 06-17-2016 at 12:13 PM.
 
Old 06-17-2016, 01:00 PM   #10
e_prog
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy all
</Files>

This is from my apache2.conf file.This is the only place where the word "Order" is used. The .htacces file has no such lines. There is no spelling errors as far as I can tell.
 
Old 06-17-2016, 01:51 PM   #11
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,158
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Did apache2.conf file come up when you ran
Code:
apache2ctl -S
?

my /etc/apache2/apache2.conf shows
Code:
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy all
</Files>
Is your site stored in /etc/apache2/apache2.conf ?
 
Old 06-17-2016, 02:26 PM   #12
e_prog
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
Did apache2.conf file come up when you ran
Code:
apache2ctl -S
?
Yes. It stated that I had the above "Order" typo in the file apache2.conf.

Quote:
Originally Posted by Habitual View Post
my /etc/apache2/apache2.conf shows
Code:
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy all
</Files>
Is your site stored in /etc/apache2/apache2.conf ?
The thing is the site worked fine before updating Debian. I googled it and it seems that apahche2 in jessie is 2.4 and it gets automaticly updated with the debian update(was 2.2 in wheezy).
 
Old 06-27-2016, 10:33 AM   #13
Tim Abracadabra
Member
 
Registered: May 2014
Location: USA, Wherever I may Roam
Distribution: Debian w/Xfce, LFS 7.9, ++
Posts: 117

Rep: Reputation: Disabled
There is new syntax between Apache 2.2 and 2.4 for the security directives.
See here: https://httpd.apache.org/docs/current/upgrading.html

Hope that helps,
Tim
 
1 members found this post helpful.
  


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
Iptables: route web traffic of virtual machine through local proxy of host machine lola.hipf Linux - Networking 1 10-26-2014 08:09 PM
web site home page displays path in browser boxenberg Linux - Server 1 02-29-2008 12:52 AM
How to setup virtual hosts for a web site? George2 Linux - Software 4 10-21-2003 04:46 AM


All times are GMT -5. The time now is 10:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration