LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-02-2017, 01:11 PM   #1
oguruma
LQ Newbie
 
Registered: Feb 2017
Posts: 23

Rep: Reputation: Disabled
Need Help with Wordpress/Virtualhosts


I want to put together a machine for experimenting with wordpress. I want at least 2 sites to be hosted locally.

LAMP is already installed. One Wordpress is already set up and I can load the default twentyseventeen theme.

I want to access websites by entering serverip/website name. For example 192.168.1.14/site1

My directory structure is /var/www/site1.com/html
/var/www/site2.com/html

I understand the basic concept of virtualhost files and how to create them, but I don't know which fields needs to be populated. All of the guides seem to be set up for installs on VPS, not machines on a lan.
 
Old 04-02-2017, 03:04 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by oguruma View Post
For example 192.168.1.14/site1
that's just a subfolder, so you don't even need to tell apache about it; you can just install wp1 to /site1 and wp 2 to /site2 etc.
you could, however, host instances on different ports, e.g.:
wp 1: 192.168.1.14:8000
wp 2: 192.168.1.14:8001
 
  


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
LXer: WordPress Plugin Tutorial — How To Install WordPress Plugins LXer Syndicated Linux News 0 12-09-2015 09:10 AM
Apache2 Configuration or Wordpress Configuration: Wordpress index.php not loading khun Linux - Newbie 5 05-18-2012 08:26 AM
how to install pre existing wordpress directory on a existing wordpress to run a web ajbardhan Linux - Software 3 04-28-2012 07:01 PM
VirtualHosts amdathlonboy Linux - Networking 6 06-21-2004 01:59 PM
Virtualhosts + firewall Syncrm Linux - Networking 9 05-21-2002 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 AM.

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