Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Web Tools Web Site Development Setup"

(Check out the files)
(System setup)
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
* You should know where the [[Phoenix Documentation]] is
 
* You should know where the [[Phoenix Documentation]] is
 
* Familiarize yourself with [[Using Phoenix]]
 
* Familiarize yourself with [[Using Phoenix]]
* Set up your [[Using Phoenix#CVS repository setup | CVS Repository]]
+
* Set up your [[Using Phoenix#CVS repository setup | CVS Repository]] (the project name will be '''webtools''')
 
* Follow the [[Configuring Eclipse with PHPEclipse]] instructions to get XAMPP.  You may choose to set up the virtual host following these directions as well.
 
* Follow the [[Configuring Eclipse with PHPEclipse]] instructions to get XAMPP.  You may choose to set up the virtual host following these directions as well.
  
 
Another way to create a Virtual Host is to open the "httpd.conf" file, scroll to the bottom and add the following section:
 
Another way to create a Virtual Host is to open the "httpd.conf" file, scroll to the bottom and add the following section:
  
<pre>&lt;Directory "[workspace_location]"&gt;
+
<pre>
 +
&lt;VirtualHost 127.0.0.1:8008&gt;
 +
    DocumentRoot [workspace_location]
 +
&lt;/VirtualHost&gt;
 +
 
 +
&lt;Directory "[workspace_location]"&gt;
 
     Options Indexes FollowSymLinks  
 
     Options Indexes FollowSymLinks  
 
     AllowOverride None  
 
     AllowOverride None  
Line 16: Line 21:
 
     Allow from all  
 
     Allow from all  
 
&lt;/Directory&gt;
 
&lt;/Directory&gt;
 
+
</pre>
&lt;VirtualHost 127.0.0.1:8008&gt;
+
    DocumentRoot [workspace_location]
+
&lt;/VirtualHost&gt;</pre>
+
  
 
Replace [workspace_location] with the path to your Eclipse workspace. Restart Apache after any changes to the "http.conf" file. You don't have to use 8008 but be careful with the port you use to avoid port conflicts with things like application servers.  This differs from the [[Configuring Eclipse with PHPEclipse]] instructions in that you don't have to edit the hosts file. To access a web page use a URL such as http://127.0.0.1:8008/webtools/main.html.
 
Replace [workspace_location] with the path to your Eclipse workspace. Restart Apache after any changes to the "http.conf" file. You don't have to use 8008 but be careful with the port you use to avoid port conflicts with things like application servers.  This differs from the [[Configuring Eclipse with PHPEclipse]] instructions in that you don't have to edit the hosts file. To access a web page use a URL such as http://127.0.0.1:8008/webtools/main.html.
Line 55: Line 57:
 
** Check out the following projects:
 
** Check out the following projects:
 
*** www/webtools  
 
*** www/webtools  
*** www/images  
+
*** www/images
*** www/community
+
 
*** www/eclipse.org-common
 
*** www/eclipse.org-common
 
** Enjoy said beverage while you wait for the check out to complete.  Sip slowly.
 
** Enjoy said beverage while you wait for the check out to complete.  Sip slowly.

Latest revision as of 15:46, 21 December 2007

Web Site Development Setup

System setup

Another way to create a Virtual Host is to open the "httpd.conf" file, scroll to the bottom and add the following section:

<VirtualHost 127.0.0.1:8008>
    DocumentRoot [workspace_location]
</VirtualHost>

<Directory "[workspace_location]">
    Options Indexes FollowSymLinks 
    AllowOverride None 
    Order allow,deny 
    Allow from all 
</Directory>

Replace [workspace_location] with the path to your Eclipse workspace. Restart Apache after any changes to the "http.conf" file. You don't have to use 8008 but be careful with the port you use to avoid port conflicts with things like application servers. This differs from the Configuring Eclipse with PHPEclipse instructions in that you don't have to edit the hosts file. To access a web page use a URL such as http://127.0.0.1:8008/webtools/main.html.

  • If necessary, make the following changes to your php.ini file:
< short_open_tag = Off 
--- 
> short_open_tag = On 
  
< extension_dir = "./" 
--- 
> extension_dir = "./ext" 
  
< ;extension=php_xsl.dll 
--- 
> extension=php_xsl.dll 

This enables short tags and turns on xslt processing.

Get the PHP development tools

Get the PHP development tools by one of the following means:

Check out the files

  • Fire up your PHP enabled Eclipse
  • Create a workspace at the [workspace_location] used when you set up your virtual host.
  • Use the CVS repository tools to check out the required projects
    • Get your favorite beverage
    • Check out the following projects:
      • www/webtools
      • www/images
      • www/eclipse.org-common
    • Enjoy said beverage while you wait for the check out to complete. Sip slowly.
  • Any files you need at the top level, such as default_style.css and nav_style.css, you will need to get and copy into your workspace manually. They will not show up in Eclipse since they are one level up from the projects we created.

Test the installation

Simple debugging

  • Look at the end of [apache-install-dir]/logs/error.log when you get a blank PHP page to see the error.

Go for it

  • Use the PHP tools
  • Submit patches or do your own checkins
  • Have fun!
  • Thanks for the help

Back to the top