title: Aptana 3 Studio: Can I put the www Apache folder as workspace?
body: <p>I am very new in PHP world and now I have install Apatana 3 Studio and I have some question to you about PHP configuration in this development environment.</p>
  
  <p>Seems that my configuration work well but I don't know if it is configured in a smart way...</p>
  
  <p>I use Ubuntu and I have installed Apache 2 web server</p>
  
  <p>Executing a simple php file (that is inside my /var/www folder) conteining phpinfo() function:</p>
  
  <pre><code>&lt;?php phpinfo(); ?&gt;
  </code></pre>
  
  <p>I obtain some information and seems that I have installed Apache 2 web server under this path: /etc/php5/apache2 and that the php.ini file have this path: /etc/php5/apache2/php.ini</p>
  
  <p>Infact, this is part of the phpinfo() output that I obtain:</p>
  
  <blockquote>
    <p>Configuration File (php.ini) Path   /etc/php5/apache2 Loaded</p>
    
    <p>Configuration File   /etc/php5/apache2/php.ini</p>
  </blockquote>
  
  <p>Ok, so I have configured my PHP environment settings in the following way:</p>
  
  <p>1) I have create a new WorkSpace so that it matches the folder /var/www</p>
  
  <p>2) I have set an external web server in this way: Windows ---> Preferences ---> Web Servers ---> New ---> External Web Server and I have put the following value:</p>
  
  <p>Name: Apache</p>
  
  <p>Base URL: [code]http://localhost[/code]</p>
  
  <p>Document Root: /etc/php5/apache2</p>
  
  <p>Doing so I can create a new project inside /var/www and if I execute some PHP file of this project by: Runs as ---> Php Server this file is executed in a browser windows.</p>
  
  <p>Is it a right configuration? my douts depend by the fact that I have also try to create a new workspace inside the /var/www directory, for example: /var/www/AptanaWS but if I create a new project in this workspace if I try do execute a project file I have an error because it try to open the following URL:</p>
  
  <p>[code]http://localhost/Test/test.php[/code]</p>
  
  <p>and not the right URL that is:</p>
  
  <p>[code]http://localhost/AptanaWS/Test/test.php[/code]</p>
  
  <p>So, can I put my <strong>/var/www</strong> as my Work Space or is it a bad thing?</p>