Answers.Body: <p>It might be easier for you to set up a local domain and access it via my-site.dev rather than localhost/public/admin.</p>
  
  <p>Using xampp this is a bit of a manual process. You'll need to go into:
  xampp/apache/conf/extra/httpd-vhosts.conf and the following </p>
  
  <pre><code>## my site name Site  
  &lt;VirtualHost *:80&gt; 
      DocumentRoot "D:/xampp/htdocs/my-site"
      ServerName my-site.dev
      ServerAlias www.my-site.dev
      &lt;Directory "d:/xampp/htdocs/my-site"&gt;
          Order allow,deny
          Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The open your text editor with administrator rights and go to: c:\windows\system32\drivers\etc\hosts and add the following:</p>
  
  <pre><code>127.0.0.1 my-site.dev
  </code></pre>
  
  <p>For an easier process to set this up use <a href="http://www.ampps.com/" rel="nofollow">Ampps instead</a> the gui is simpler and everything is automated. Though you may still need to open your hosts file with your text editor if you haven't set up ampps to run with administrator privileges.</p>
  
  <p>I used to use xampps, but now much prefer ampps on windows.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-12T08:55:28.727Z
Answers.Text: Oops didn't mean to just post thanks! I'm working on both Linux and Windows, hence reaching for Xampp as something I could use on both. But chatting about it in the craft devops slack, Vagrant seems strongly recommended (and some kind soul has already built a box). So am probably going to switch to that.
Answers.UserDisplayName: Starfall Projects
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-11T14:01:55.460Z
Answers.LastActivityDate: 2016-10-11T14:01:55.460Z
Answers.UserDisplayName: CreateSean
Body: <p>I'm trying to get a dev environment set up and have got stuck.</p>
  
  <p>I use Linux in the office and Windows at home. I simply wanted a basic LAMP stack to run craft on so I could develop locally. Given the two OSs, I figured I'd use Xampp.</p>
  
  <p>I've installed Xampp on my Linux Mint PC. localhost seems to take me to htdocs, which I understand is normal? I've put Craft in htdocs, and then created a folder called public and put the index.php etc. in there.</p>
  
  <p>So we have:</p>
  
  <p>htdocs
   - craft
   - public
     - index.php</p>
  
  <p>However, when I then do localhost/public/admin, I get
  Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /opt/lampp/htdocs/public/index.php</p>
  
  <p>My craft path is set to ../craft (i.e. the default)</p>
  
  <p>I've had a google, and there do seem to be similar questions, but mostly on Windows. </p>
  
  <p>Should I move everything up a level? Or am I doing something else wrong?</p>
  
Tags: <setup>
Title: Installing Craft on Xampp
ThreadText: # Installing Craft on Xampp
  
  (Asked by: username_0 on 2016-10-11)
  
  I'm trying to get a dev environment set up and have got stuck.
  
  I use Linux in the office and Windows at home. I simply wanted a basic LAMP stack to run craft on so I could develop locally. Given the two OSs, I figured I'd use Xampp.
  
  I've installed Xampp on my Linux Mint PC. localhost seems to take me to htdocs, which I understand is normal? I've put Craft in htdocs, and then created a folder called public and put the index.php etc. in there.
  
  So we have:
  
  htdocs
  - craft
  - public
  - index.php
  
  However, when I then do localhost/public/admin, I get
  Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /opt/lampp/htdocs/public/index.php
  
  My craft path is set to ../craft (i.e. the default)
  
  I've had a google, and there do seem to be similar questions, but mostly on Windows.
  
  Should I move everything up a level? Or am I doing something else wrong?
  
  **Tags:** setup
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-10-11. Score: 1
  
  It might be easier for you to set up a local domain and access it via my-site.dev rather than localhost/public/admin.
  
  Using xampp this is a bit of a manual process. You'll need to go into:
  xampp/apache/conf/extra/httpd-vhosts.conf and the following
  
  ```
  ## my site name Site  
  <VirtualHost *:80> 
      DocumentRoot "D:/xampp/htdocs/my-site"
      ServerName my-site.dev
      ServerAlias www.my-site.dev
      <Directory "d:/xampp/htdocs/my-site">
          Order allow,deny
          Allow from all
      </Directory>
  </VirtualHost>
  
  ```
  
  The open your text editor with administrator rights and go to: c:\windows\system32\drivers\etc\hosts and add the following:
  
  ```
  127.0.0.1 my-site.dev
  
  ```
  
  For an easier process to set this up use [Ampps instead](http://www.ampps.com/) the gui is simpler and everything is automated. Though you may still need to open your hosts file with your text editor if you haven't set up ampps to run with administrator privileges.
  
  I used to use xampps, but now much prefer ampps on windows.
  
  > **Comments:**
  > **username_0**: Oops didn't mean to just post thanks! I'm working on both Linux and Windows, hence reaching for Xampp as something I could use on both. But chatting about it in the craft devops slack, Vagrant seems strongly recommended (and some kind soul has already built a box). So am probably going to switch to that.  
  
  ---
  
  